├── Example with everything ├── Library └── README.md /Example with everything: -------------------------------------------------------------------------------- 1 | --[[ 2 | ui-engine-v2 3 | version 1.3a 4 | by Singularity (V3rm @ King Singularity) (Discord @ Singularity#5490) 5 | --]] 6 | 7 | local ui_options = { 8 | main_color = Color3.fromRGB(41, 74, 122), 9 | min_size = Vector2.new(400, 300), 10 | toggle_key = Enum.KeyCode.RightShift, 11 | can_resize = true, 12 | } 13 | 14 | do 15 | local imgui = game:GetService("CoreGui"):FindFirstChild("imgui") 16 | if imgui then imgui:Destroy() end 17 | end 18 | 19 | local imgui = Instance.new("ScreenGui") 20 | local Prefabs = Instance.new("Frame") 21 | local Label = Instance.new("TextLabel") 22 | local Window = Instance.new("ImageLabel") 23 | local Resizer = Instance.new("Frame") 24 | local Bar = Instance.new("Frame") 25 | local Toggle = Instance.new("ImageButton") 26 | local Base = Instance.new("ImageLabel") 27 | local Top = Instance.new("ImageLabel") 28 | local Tabs = Instance.new("Frame") 29 | local Title = Instance.new("TextLabel") 30 | local TabSelection = Instance.new("ImageLabel") 31 | local TabButtons = Instance.new("Frame") 32 | local UIListLayout = Instance.new("UIListLayout") 33 | local Frame = Instance.new("Frame") 34 | local Tab = Instance.new("Frame") 35 | local UIListLayout_2 = Instance.new("UIListLayout") 36 | local TextBox = Instance.new("TextBox") 37 | local TextBox_Roundify_4px = Instance.new("ImageLabel") 38 | local Slider = Instance.new("ImageLabel") 39 | local Title_2 = Instance.new("TextLabel") 40 | local Indicator = Instance.new("ImageLabel") 41 | local Value = Instance.new("TextLabel") 42 | local TextLabel = Instance.new("TextLabel") 43 | local TextLabel_2 = Instance.new("TextLabel") 44 | local Circle = Instance.new("ImageLabel") 45 | local UIListLayout_3 = Instance.new("UIListLayout") 46 | local Dropdown = Instance.new("TextButton") 47 | local Indicator_2 = Instance.new("ImageLabel") 48 | local Box = Instance.new("ImageButton") 49 | local Objects = Instance.new("ScrollingFrame") 50 | local UIListLayout_4 = Instance.new("UIListLayout") 51 | local TextButton_Roundify_4px = Instance.new("ImageLabel") 52 | local TabButton = Instance.new("TextButton") 53 | local TextButton_Roundify_4px_2 = Instance.new("ImageLabel") 54 | local Folder = Instance.new("ImageLabel") 55 | local Button = Instance.new("TextButton") 56 | local TextButton_Roundify_4px_3 = Instance.new("ImageLabel") 57 | local Toggle_2 = Instance.new("ImageLabel") 58 | local Objects_2 = Instance.new("Frame") 59 | local UIListLayout_5 = Instance.new("UIListLayout") 60 | local HorizontalAlignment = Instance.new("Frame") 61 | local UIListLayout_6 = Instance.new("UIListLayout") 62 | local Console = Instance.new("ImageLabel") 63 | local ScrollingFrame = Instance.new("ScrollingFrame") 64 | local Source = Instance.new("TextBox") 65 | local Comments = Instance.new("TextLabel") 66 | local Globals = Instance.new("TextLabel") 67 | local Keywords = Instance.new("TextLabel") 68 | local RemoteHighlight = Instance.new("TextLabel") 69 | local Strings = Instance.new("TextLabel") 70 | local Tokens = Instance.new("TextLabel") 71 | local Numbers = Instance.new("TextLabel") 72 | local Info = Instance.new("TextLabel") 73 | local Lines = Instance.new("TextLabel") 74 | local ColorPicker = Instance.new("ImageLabel") 75 | local Palette = Instance.new("ImageLabel") 76 | local Indicator_3 = Instance.new("ImageLabel") 77 | local Sample = Instance.new("ImageLabel") 78 | local Saturation = Instance.new("ImageLabel") 79 | local Indicator_4 = Instance.new("Frame") 80 | local Switch = Instance.new("TextButton") 81 | local TextButton_Roundify_4px_4 = Instance.new("ImageLabel") 82 | local Title_3 = Instance.new("TextLabel") 83 | local Button_2 = Instance.new("TextButton") 84 | local TextButton_Roundify_4px_5 = Instance.new("ImageLabel") 85 | local DropdownButton = Instance.new("TextButton") 86 | local Keybind = Instance.new("ImageLabel") 87 | local Title_4 = Instance.new("TextLabel") 88 | local Input = Instance.new("TextButton") 89 | local Input_Roundify_4px = Instance.new("ImageLabel") 90 | local Windows = Instance.new("Frame") 91 | 92 | imgui.Name = "imgui" 93 | imgui.Parent = game:GetService("CoreGui") 94 | 95 | Prefabs.Name = "Prefabs" 96 | Prefabs.Parent = imgui 97 | Prefabs.BackgroundColor3 = Color3.new(1, 1, 1) 98 | Prefabs.Size = UDim2.new(0, 100, 0, 100) 99 | Prefabs.Visible = false 100 | 101 | Label.Name = "Label" 102 | Label.Parent = Prefabs 103 | Label.BackgroundColor3 = Color3.new(1, 1, 1) 104 | Label.BackgroundTransparency = 1 105 | Label.Size = UDim2.new(0, 200, 0, 20) 106 | Label.Font = Enum.Font.GothamSemibold 107 | Label.Text = "Hello, world 123" 108 | Label.TextColor3 = Color3.new(1, 1, 1) 109 | Label.TextSize = 14 110 | Label.TextXAlignment = Enum.TextXAlignment.Left 111 | 112 | Window.Name = "Window" 113 | Window.Parent = Prefabs 114 | Window.Active = true 115 | Window.BackgroundColor3 = Color3.new(1, 1, 1) 116 | Window.BackgroundTransparency = 1 117 | Window.ClipsDescendants = true 118 | Window.Position = UDim2.new(0, 20, 0, 20) 119 | Window.Selectable = true 120 | Window.Size = UDim2.new(0, 200, 0, 200) 121 | Window.Image = "rbxassetid://2851926732" 122 | Window.ImageColor3 = Color3.new(0.0823529, 0.0862745, 0.0901961) 123 | Window.ScaleType = Enum.ScaleType.Slice 124 | Window.SliceCenter = Rect.new(12, 12, 12, 12) 125 | 126 | Resizer.Name = "Resizer" 127 | Resizer.Parent = Window 128 | Resizer.Active = true 129 | Resizer.BackgroundColor3 = Color3.new(1, 1, 1) 130 | Resizer.BackgroundTransparency = 1 131 | Resizer.BorderSizePixel = 0 132 | Resizer.Position = UDim2.new(1, -20, 1, -20) 133 | Resizer.Size = UDim2.new(0, 20, 0, 20) 134 | 135 | Bar.Name = "Bar" 136 | Bar.Parent = Window 137 | Bar.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 138 | Bar.BorderSizePixel = 0 139 | Bar.Position = UDim2.new(0, 0, 0, 5) 140 | Bar.Size = UDim2.new(1, 0, 0, 15) 141 | 142 | Toggle.Name = "Toggle" 143 | Toggle.Parent = Bar 144 | Toggle.BackgroundColor3 = Color3.new(1, 1, 1) 145 | Toggle.BackgroundTransparency = 1 146 | Toggle.Position = UDim2.new(0, 5, 0, -2) 147 | Toggle.Rotation = 90 148 | Toggle.Size = UDim2.new(0, 20, 0, 20) 149 | Toggle.ZIndex = 2 150 | Toggle.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541" 151 | 152 | Base.Name = "Base" 153 | Base.Parent = Bar 154 | Base.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 155 | Base.BorderSizePixel = 0 156 | Base.Position = UDim2.new(0, 0, 0.800000012, 0) 157 | Base.Size = UDim2.new(1, 0, 0, 10) 158 | Base.Image = "rbxassetid://2851926732" 159 | Base.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 160 | Base.ScaleType = Enum.ScaleType.Slice 161 | Base.SliceCenter = Rect.new(12, 12, 12, 12) 162 | 163 | Top.Name = "Top" 164 | Top.Parent = Bar 165 | Top.BackgroundColor3 = Color3.new(1, 1, 1) 166 | Top.BackgroundTransparency = 1 167 | Top.Position = UDim2.new(0, 0, 0, -5) 168 | Top.Size = UDim2.new(1, 0, 0, 10) 169 | Top.Image = "rbxassetid://2851926732" 170 | Top.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 171 | Top.ScaleType = Enum.ScaleType.Slice 172 | Top.SliceCenter = Rect.new(12, 12, 12, 12) 173 | 174 | Tabs.Name = "Tabs" 175 | Tabs.Parent = Window 176 | Tabs.BackgroundColor3 = Color3.new(1, 1, 1) 177 | Tabs.BackgroundTransparency = 1 178 | Tabs.Position = UDim2.new(0, 15, 0, 60) 179 | Tabs.Size = UDim2.new(1, -30, 1, -60) 180 | 181 | Title.Name = "Title" 182 | Title.Parent = Window 183 | Title.BackgroundColor3 = Color3.new(1, 1, 1) 184 | Title.BackgroundTransparency = 1 185 | Title.Position = UDim2.new(0, 30, 0, 3) 186 | Title.Size = UDim2.new(0, 200, 0, 20) 187 | Title.Font = Enum.Font.GothamBold 188 | Title.Text = "Gamer Time" 189 | Title.TextColor3 = Color3.new(1, 1, 1) 190 | Title.TextSize = 14 191 | Title.TextXAlignment = Enum.TextXAlignment.Left 192 | 193 | TabSelection.Name = "TabSelection" 194 | TabSelection.Parent = Window 195 | TabSelection.BackgroundColor3 = Color3.new(1, 1, 1) 196 | TabSelection.BackgroundTransparency = 1 197 | TabSelection.Position = UDim2.new(0, 15, 0, 30) 198 | TabSelection.Size = UDim2.new(1, -30, 0, 25) 199 | TabSelection.Visible = false 200 | TabSelection.Image = "rbxassetid://2851929490" 201 | TabSelection.ImageColor3 = Color3.new(0.145098, 0.14902, 0.156863) 202 | TabSelection.ScaleType = Enum.ScaleType.Slice 203 | TabSelection.SliceCenter = Rect.new(4, 4, 4, 4) 204 | 205 | TabButtons.Name = "TabButtons" 206 | TabButtons.Parent = TabSelection 207 | TabButtons.BackgroundColor3 = Color3.new(1, 1, 1) 208 | TabButtons.BackgroundTransparency = 1 209 | TabButtons.Size = UDim2.new(1, 0, 1, 0) 210 | 211 | UIListLayout.Parent = TabButtons 212 | UIListLayout.FillDirection = Enum.FillDirection.Horizontal 213 | UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder 214 | UIListLayout.Padding = UDim.new(0, 2) 215 | 216 | Frame.Parent = TabSelection 217 | Frame.BackgroundColor3 = Color3.new(0.12549, 0.227451, 0.372549) 218 | Frame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) 219 | Frame.BorderSizePixel = 0 220 | Frame.Position = UDim2.new(0, 0, 1, 0) 221 | Frame.Size = UDim2.new(1, 0, 0, 2) 222 | 223 | Tab.Name = "Tab" 224 | Tab.Parent = Prefabs 225 | Tab.BackgroundColor3 = Color3.new(1, 1, 1) 226 | Tab.BackgroundTransparency = 1 227 | Tab.Size = UDim2.new(1, 0, 1, 0) 228 | Tab.Visible = false 229 | 230 | UIListLayout_2.Parent = Tab 231 | UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder 232 | UIListLayout_2.Padding = UDim.new(0, 5) 233 | 234 | TextBox.Parent = Prefabs 235 | TextBox.BackgroundColor3 = Color3.new(1, 1, 1) 236 | TextBox.BackgroundTransparency = 1 237 | TextBox.BorderSizePixel = 0 238 | TextBox.Size = UDim2.new(1, 0, 0, 20) 239 | TextBox.ZIndex = 2 240 | TextBox.Font = Enum.Font.GothamSemibold 241 | TextBox.PlaceholderColor3 = Color3.new(0.698039, 0.698039, 0.698039) 242 | TextBox.PlaceholderText = "Input Text" 243 | TextBox.Text = "" 244 | TextBox.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 245 | TextBox.TextSize = 14 246 | 247 | TextBox_Roundify_4px.Name = "TextBox_Roundify_4px" 248 | TextBox_Roundify_4px.Parent = TextBox 249 | TextBox_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1) 250 | TextBox_Roundify_4px.BackgroundTransparency = 1 251 | TextBox_Roundify_4px.Size = UDim2.new(1, 0, 1, 0) 252 | TextBox_Roundify_4px.Image = "rbxassetid://2851929490" 253 | TextBox_Roundify_4px.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 254 | TextBox_Roundify_4px.ScaleType = Enum.ScaleType.Slice 255 | TextBox_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4) 256 | 257 | Slider.Name = "Slider" 258 | Slider.Parent = Prefabs 259 | Slider.BackgroundColor3 = Color3.new(1, 1, 1) 260 | Slider.BackgroundTransparency = 1 261 | Slider.Position = UDim2.new(0, 0, 0.178571433, 0) 262 | Slider.Size = UDim2.new(1, 0, 0, 20) 263 | Slider.Image = "rbxassetid://2851929490" 264 | Slider.ImageColor3 = Color3.new(0.145098, 0.14902, 0.156863) 265 | Slider.ScaleType = Enum.ScaleType.Slice 266 | Slider.SliceCenter = Rect.new(4, 4, 4, 4) 267 | 268 | Title_2.Name = "Title" 269 | Title_2.Parent = Slider 270 | Title_2.BackgroundColor3 = Color3.new(1, 1, 1) 271 | Title_2.BackgroundTransparency = 1 272 | Title_2.Position = UDim2.new(0.5, 0, 0.5, -10) 273 | Title_2.Size = UDim2.new(0, 0, 0, 20) 274 | Title_2.ZIndex = 2 275 | Title_2.Font = Enum.Font.GothamBold 276 | Title_2.Text = "Slider" 277 | Title_2.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 278 | Title_2.TextSize = 14 279 | 280 | Indicator.Name = "Indicator" 281 | Indicator.Parent = Slider 282 | Indicator.BackgroundColor3 = Color3.new(1, 1, 1) 283 | Indicator.BackgroundTransparency = 1 284 | Indicator.Size = UDim2.new(0, 0, 0, 20) 285 | Indicator.Image = "rbxassetid://2851929490" 286 | Indicator.ImageColor3 = Color3.new(0.254902, 0.262745, 0.278431) 287 | Indicator.ScaleType = Enum.ScaleType.Slice 288 | Indicator.SliceCenter = Rect.new(4, 4, 4, 4) 289 | 290 | Value.Name = "Value" 291 | Value.Parent = Slider 292 | Value.BackgroundColor3 = Color3.new(1, 1, 1) 293 | Value.BackgroundTransparency = 1 294 | Value.Position = UDim2.new(1, -55, 0.5, -10) 295 | Value.Size = UDim2.new(0, 50, 0, 20) 296 | Value.Font = Enum.Font.GothamBold 297 | Value.Text = "0%" 298 | Value.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 299 | Value.TextSize = 14 300 | 301 | TextLabel.Parent = Slider 302 | TextLabel.BackgroundColor3 = Color3.new(1, 1, 1) 303 | TextLabel.BackgroundTransparency = 1 304 | TextLabel.Position = UDim2.new(1, -20, -0.75, 0) 305 | TextLabel.Size = UDim2.new(0, 26, 0, 50) 306 | TextLabel.Font = Enum.Font.GothamBold 307 | TextLabel.Text = "]" 308 | TextLabel.TextColor3 = Color3.new(0.627451, 0.627451, 0.627451) 309 | TextLabel.TextSize = 14 310 | 311 | TextLabel_2.Parent = Slider 312 | TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1) 313 | TextLabel_2.BackgroundTransparency = 1 314 | TextLabel_2.Position = UDim2.new(1, -65, -0.75, 0) 315 | TextLabel_2.Size = UDim2.new(0, 26, 0, 50) 316 | TextLabel_2.Font = Enum.Font.GothamBold 317 | TextLabel_2.Text = "[" 318 | TextLabel_2.TextColor3 = Color3.new(0.627451, 0.627451, 0.627451) 319 | TextLabel_2.TextSize = 14 320 | 321 | Circle.Name = "Circle" 322 | Circle.Parent = Prefabs 323 | Circle.BackgroundColor3 = Color3.new(1, 1, 1) 324 | Circle.BackgroundTransparency = 1 325 | Circle.Image = "rbxassetid://266543268" 326 | Circle.ImageTransparency = 0.5 327 | 328 | UIListLayout_3.Parent = Prefabs 329 | UIListLayout_3.FillDirection = Enum.FillDirection.Horizontal 330 | UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder 331 | UIListLayout_3.Padding = UDim.new(0, 20) 332 | 333 | Dropdown.Name = "Dropdown" 334 | Dropdown.Parent = Prefabs 335 | Dropdown.BackgroundColor3 = Color3.new(1, 1, 1) 336 | Dropdown.BackgroundTransparency = 1 337 | Dropdown.BorderSizePixel = 0 338 | Dropdown.Position = UDim2.new(-0.055555556, 0, 0.0833333284, 0) 339 | Dropdown.Size = UDim2.new(0, 200, 0, 20) 340 | Dropdown.ZIndex = 2 341 | Dropdown.Font = Enum.Font.GothamBold 342 | Dropdown.Text = " Dropdown" 343 | Dropdown.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 344 | Dropdown.TextSize = 14 345 | Dropdown.TextXAlignment = Enum.TextXAlignment.Left 346 | 347 | Indicator_2.Name = "Indicator" 348 | Indicator_2.Parent = Dropdown 349 | Indicator_2.BackgroundColor3 = Color3.new(1, 1, 1) 350 | Indicator_2.BackgroundTransparency = 1 351 | Indicator_2.Position = UDim2.new(0.899999976, -10, 0.100000001, 0) 352 | Indicator_2.Rotation = -90 353 | Indicator_2.Size = UDim2.new(0, 15, 0, 15) 354 | Indicator_2.ZIndex = 2 355 | Indicator_2.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4744658743" 356 | 357 | Box.Name = "Box" 358 | Box.Parent = Dropdown 359 | Box.BackgroundColor3 = Color3.new(1, 1, 1) 360 | Box.BackgroundTransparency = 1 361 | Box.Position = UDim2.new(0, 0, 0, 25) 362 | Box.Size = UDim2.new(1, 0, 0, 150) 363 | Box.ZIndex = 3 364 | Box.Image = "rbxassetid://2851929490" 365 | Box.ImageColor3 = Color3.new(0.129412, 0.133333, 0.141176) 366 | Box.ScaleType = Enum.ScaleType.Slice 367 | Box.SliceCenter = Rect.new(4, 4, 4, 4) 368 | 369 | Objects.Name = "Objects" 370 | Objects.Parent = Box 371 | Objects.BackgroundColor3 = Color3.new(1, 1, 1) 372 | Objects.BackgroundTransparency = 1 373 | Objects.BorderSizePixel = 0 374 | Objects.Size = UDim2.new(1, 0, 1, 0) 375 | Objects.ZIndex = 3 376 | Objects.CanvasSize = UDim2.new(0, 0, 0, 0) 377 | Objects.ScrollBarThickness = 8 378 | 379 | UIListLayout_4.Parent = Objects 380 | UIListLayout_4.SortOrder = Enum.SortOrder.LayoutOrder 381 | 382 | TextButton_Roundify_4px.Name = "TextButton_Roundify_4px" 383 | TextButton_Roundify_4px.Parent = Dropdown 384 | TextButton_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1) 385 | TextButton_Roundify_4px.BackgroundTransparency = 1 386 | TextButton_Roundify_4px.Size = UDim2.new(1, 0, 1, 0) 387 | TextButton_Roundify_4px.Image = "rbxassetid://2851929490" 388 | TextButton_Roundify_4px.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 389 | TextButton_Roundify_4px.ScaleType = Enum.ScaleType.Slice 390 | TextButton_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4) 391 | 392 | TabButton.Name = "TabButton" 393 | TabButton.Parent = Prefabs 394 | TabButton.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 395 | TabButton.BackgroundTransparency = 1 396 | TabButton.BorderSizePixel = 0 397 | TabButton.Position = UDim2.new(0.185185179, 0, 0, 0) 398 | TabButton.Size = UDim2.new(0, 71, 0, 20) 399 | TabButton.ZIndex = 2 400 | TabButton.Font = Enum.Font.GothamSemibold 401 | TabButton.Text = "Test tab" 402 | TabButton.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 403 | TabButton.TextSize = 14 404 | 405 | TextButton_Roundify_4px_2.Name = "TextButton_Roundify_4px" 406 | TextButton_Roundify_4px_2.Parent = TabButton 407 | TextButton_Roundify_4px_2.BackgroundColor3 = Color3.new(1, 1, 1) 408 | TextButton_Roundify_4px_2.BackgroundTransparency = 1 409 | TextButton_Roundify_4px_2.Size = UDim2.new(1, 0, 1, 0) 410 | TextButton_Roundify_4px_2.Image = "rbxassetid://2851929490" 411 | TextButton_Roundify_4px_2.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 412 | TextButton_Roundify_4px_2.ScaleType = Enum.ScaleType.Slice 413 | TextButton_Roundify_4px_2.SliceCenter = Rect.new(4, 4, 4, 4) 414 | 415 | Folder.Name = "Folder" 416 | Folder.Parent = Prefabs 417 | Folder.BackgroundColor3 = Color3.new(1, 1, 1) 418 | Folder.BackgroundTransparency = 1 419 | Folder.Position = UDim2.new(0, 0, 0, 50) 420 | Folder.Size = UDim2.new(1, 0, 0, 20) 421 | Folder.Image = "rbxassetid://2851929490" 422 | Folder.ImageColor3 = Color3.new(0.0823529, 0.0862745, 0.0901961) 423 | Folder.ScaleType = Enum.ScaleType.Slice 424 | Folder.SliceCenter = Rect.new(4, 4, 4, 4) 425 | 426 | Button.Name = "Button" 427 | Button.Parent = Folder 428 | Button.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 429 | Button.BackgroundTransparency = 1 430 | Button.BorderSizePixel = 0 431 | Button.Size = UDim2.new(1, 0, 0, 20) 432 | Button.ZIndex = 2 433 | Button.Font = Enum.Font.GothamSemibold 434 | Button.Text = " Folder" 435 | Button.TextColor3 = Color3.new(1, 1, 1) 436 | Button.TextSize = 14 437 | Button.TextXAlignment = Enum.TextXAlignment.Left 438 | 439 | TextButton_Roundify_4px_3.Name = "TextButton_Roundify_4px" 440 | TextButton_Roundify_4px_3.Parent = Button 441 | TextButton_Roundify_4px_3.BackgroundColor3 = Color3.new(1, 1, 1) 442 | TextButton_Roundify_4px_3.BackgroundTransparency = 1 443 | TextButton_Roundify_4px_3.Size = UDim2.new(1, 0, 1, 0) 444 | TextButton_Roundify_4px_3.Image = "rbxassetid://2851929490" 445 | TextButton_Roundify_4px_3.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 446 | TextButton_Roundify_4px_3.ScaleType = Enum.ScaleType.Slice 447 | TextButton_Roundify_4px_3.SliceCenter = Rect.new(4, 4, 4, 4) 448 | 449 | Toggle_2.Name = "Toggle" 450 | Toggle_2.Parent = Button 451 | Toggle_2.BackgroundColor3 = Color3.new(1, 1, 1) 452 | Toggle_2.BackgroundTransparency = 1 453 | Toggle_2.Position = UDim2.new(0, 5, 0, 0) 454 | Toggle_2.Size = UDim2.new(0, 20, 0, 20) 455 | Toggle_2.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541" 456 | 457 | Objects_2.Name = "Objects" 458 | Objects_2.Parent = Folder 459 | Objects_2.BackgroundColor3 = Color3.new(1, 1, 1) 460 | Objects_2.BackgroundTransparency = 1 461 | Objects_2.Position = UDim2.new(0, 10, 0, 25) 462 | Objects_2.Size = UDim2.new(1, -10, 1, -25) 463 | Objects_2.Visible = false 464 | 465 | UIListLayout_5.Parent = Objects_2 466 | UIListLayout_5.SortOrder = Enum.SortOrder.LayoutOrder 467 | UIListLayout_5.Padding = UDim.new(0, 5) 468 | 469 | HorizontalAlignment.Name = "HorizontalAlignment" 470 | HorizontalAlignment.Parent = Prefabs 471 | HorizontalAlignment.BackgroundColor3 = Color3.new(1, 1, 1) 472 | HorizontalAlignment.BackgroundTransparency = 1 473 | HorizontalAlignment.Size = UDim2.new(1, 0, 0, 20) 474 | 475 | UIListLayout_6.Parent = HorizontalAlignment 476 | UIListLayout_6.FillDirection = Enum.FillDirection.Horizontal 477 | UIListLayout_6.SortOrder = Enum.SortOrder.LayoutOrder 478 | UIListLayout_6.Padding = UDim.new(0, 5) 479 | 480 | Console.Name = "Console" 481 | Console.Parent = Prefabs 482 | Console.BackgroundColor3 = Color3.new(1, 1, 1) 483 | Console.BackgroundTransparency = 1 484 | Console.Size = UDim2.new(1, 0, 0, 200) 485 | Console.Image = "rbxassetid://2851928141" 486 | Console.ImageColor3 = Color3.new(0.129412, 0.133333, 0.141176) 487 | Console.ScaleType = Enum.ScaleType.Slice 488 | Console.SliceCenter = Rect.new(8, 8, 8, 8) 489 | 490 | ScrollingFrame.Parent = Console 491 | ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1) 492 | ScrollingFrame.BackgroundTransparency = 1 493 | ScrollingFrame.BorderSizePixel = 0 494 | ScrollingFrame.Size = UDim2.new(1, 0, 1, 1) 495 | ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0) 496 | ScrollingFrame.ScrollBarThickness = 4 497 | 498 | Source.Name = "Source" 499 | Source.Parent = ScrollingFrame 500 | Source.BackgroundColor3 = Color3.new(1, 1, 1) 501 | Source.BackgroundTransparency = 1 502 | Source.Position = UDim2.new(0, 40, 0, 0) 503 | Source.Size = UDim2.new(1, -40, 0, 10000) 504 | Source.ZIndex = 3 505 | Source.ClearTextOnFocus = false 506 | Source.Font = Enum.Font.Code 507 | Source.MultiLine = true 508 | Source.PlaceholderColor3 = Color3.new(0.8, 0.8, 0.8) 509 | Source.Text = "" 510 | Source.TextColor3 = Color3.new(1, 1, 1) 511 | Source.TextSize = 15 512 | Source.TextStrokeColor3 = Color3.new(1, 1, 1) 513 | Source.TextWrapped = true 514 | Source.TextXAlignment = Enum.TextXAlignment.Left 515 | Source.TextYAlignment = Enum.TextYAlignment.Top 516 | 517 | Comments.Name = "Comments" 518 | Comments.Parent = Source 519 | Comments.BackgroundColor3 = Color3.new(1, 1, 1) 520 | Comments.BackgroundTransparency = 1 521 | Comments.Size = UDim2.new(1, 0, 1, 0) 522 | Comments.ZIndex = 5 523 | Comments.Font = Enum.Font.Code 524 | Comments.Text = "" 525 | Comments.TextColor3 = Color3.new(0.231373, 0.784314, 0.231373) 526 | Comments.TextSize = 15 527 | Comments.TextXAlignment = Enum.TextXAlignment.Left 528 | Comments.TextYAlignment = Enum.TextYAlignment.Top 529 | 530 | Globals.Name = "Globals" 531 | Globals.Parent = Source 532 | Globals.BackgroundColor3 = Color3.new(1, 1, 1) 533 | Globals.BackgroundTransparency = 1 534 | Globals.Size = UDim2.new(1, 0, 1, 0) 535 | Globals.ZIndex = 5 536 | Globals.Font = Enum.Font.Code 537 | Globals.Text = "" 538 | Globals.TextColor3 = Color3.new(0.517647, 0.839216, 0.968628) 539 | Globals.TextSize = 15 540 | Globals.TextXAlignment = Enum.TextXAlignment.Left 541 | Globals.TextYAlignment = Enum.TextYAlignment.Top 542 | 543 | Keywords.Name = "Keywords" 544 | Keywords.Parent = Source 545 | Keywords.BackgroundColor3 = Color3.new(1, 1, 1) 546 | Keywords.BackgroundTransparency = 1 547 | Keywords.Size = UDim2.new(1, 0, 1, 0) 548 | Keywords.ZIndex = 5 549 | Keywords.Font = Enum.Font.Code 550 | Keywords.Text = "" 551 | Keywords.TextColor3 = Color3.new(0.972549, 0.427451, 0.486275) 552 | Keywords.TextSize = 15 553 | Keywords.TextXAlignment = Enum.TextXAlignment.Left 554 | Keywords.TextYAlignment = Enum.TextYAlignment.Top 555 | 556 | RemoteHighlight.Name = "RemoteHighlight" 557 | RemoteHighlight.Parent = Source 558 | RemoteHighlight.BackgroundColor3 = Color3.new(1, 1, 1) 559 | RemoteHighlight.BackgroundTransparency = 1 560 | RemoteHighlight.Size = UDim2.new(1, 0, 1, 0) 561 | RemoteHighlight.ZIndex = 5 562 | RemoteHighlight.Font = Enum.Font.Code 563 | RemoteHighlight.Text = "" 564 | RemoteHighlight.TextColor3 = Color3.new(0, 0.568627, 1) 565 | RemoteHighlight.TextSize = 15 566 | RemoteHighlight.TextXAlignment = Enum.TextXAlignment.Left 567 | RemoteHighlight.TextYAlignment = Enum.TextYAlignment.Top 568 | 569 | Strings.Name = "Strings" 570 | Strings.Parent = Source 571 | Strings.BackgroundColor3 = Color3.new(1, 1, 1) 572 | Strings.BackgroundTransparency = 1 573 | Strings.Size = UDim2.new(1, 0, 1, 0) 574 | Strings.ZIndex = 5 575 | Strings.Font = Enum.Font.Code 576 | Strings.Text = "" 577 | Strings.TextColor3 = Color3.new(0.678431, 0.945098, 0.584314) 578 | Strings.TextSize = 15 579 | Strings.TextXAlignment = Enum.TextXAlignment.Left 580 | Strings.TextYAlignment = Enum.TextYAlignment.Top 581 | 582 | Tokens.Name = "Tokens" 583 | Tokens.Parent = Source 584 | Tokens.BackgroundColor3 = Color3.new(1, 1, 1) 585 | Tokens.BackgroundTransparency = 1 586 | Tokens.Size = UDim2.new(1, 0, 1, 0) 587 | Tokens.ZIndex = 5 588 | Tokens.Font = Enum.Font.Code 589 | Tokens.Text = "" 590 | Tokens.TextColor3 = Color3.new(1, 1, 1) 591 | Tokens.TextSize = 15 592 | Tokens.TextXAlignment = Enum.TextXAlignment.Left 593 | Tokens.TextYAlignment = Enum.TextYAlignment.Top 594 | 595 | Numbers.Name = "Numbers" 596 | Numbers.Parent = Source 597 | Numbers.BackgroundColor3 = Color3.new(1, 1, 1) 598 | Numbers.BackgroundTransparency = 1 599 | Numbers.Size = UDim2.new(1, 0, 1, 0) 600 | Numbers.ZIndex = 4 601 | Numbers.Font = Enum.Font.Code 602 | Numbers.Text = "" 603 | Numbers.TextColor3 = Color3.new(1, 0.776471, 0) 604 | Numbers.TextSize = 15 605 | Numbers.TextXAlignment = Enum.TextXAlignment.Left 606 | Numbers.TextYAlignment = Enum.TextYAlignment.Top 607 | 608 | Info.Name = "Info" 609 | Info.Parent = Source 610 | Info.BackgroundColor3 = Color3.new(1, 1, 1) 611 | Info.BackgroundTransparency = 1 612 | Info.Size = UDim2.new(1, 0, 1, 0) 613 | Info.ZIndex = 5 614 | Info.Font = Enum.Font.Code 615 | Info.Text = "" 616 | Info.TextColor3 = Color3.new(0, 0.635294, 1) 617 | Info.TextSize = 15 618 | Info.TextXAlignment = Enum.TextXAlignment.Left 619 | Info.TextYAlignment = Enum.TextYAlignment.Top 620 | 621 | Lines.Name = "Lines" 622 | Lines.Parent = ScrollingFrame 623 | Lines.BackgroundColor3 = Color3.new(1, 1, 1) 624 | Lines.BackgroundTransparency = 1 625 | Lines.BorderSizePixel = 0 626 | Lines.Size = UDim2.new(0, 40, 0, 10000) 627 | Lines.ZIndex = 4 628 | Lines.Font = Enum.Font.Code 629 | Lines.Text = "1\n" 630 | Lines.TextColor3 = Color3.new(1, 1, 1) 631 | Lines.TextSize = 15 632 | Lines.TextWrapped = true 633 | Lines.TextYAlignment = Enum.TextYAlignment.Top 634 | 635 | ColorPicker.Name = "ColorPicker" 636 | ColorPicker.Parent = Prefabs 637 | ColorPicker.BackgroundColor3 = Color3.new(1, 1, 1) 638 | ColorPicker.BackgroundTransparency = 1 639 | ColorPicker.Size = UDim2.new(0, 180, 0, 110) 640 | ColorPicker.Image = "rbxassetid://2851929490" 641 | ColorPicker.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 642 | ColorPicker.ScaleType = Enum.ScaleType.Slice 643 | ColorPicker.SliceCenter = Rect.new(4, 4, 4, 4) 644 | 645 | Palette.Name = "Palette" 646 | Palette.Parent = ColorPicker 647 | Palette.BackgroundColor3 = Color3.new(1, 1, 1) 648 | Palette.BackgroundTransparency = 1 649 | Palette.Position = UDim2.new(0.0500000007, 0, 0.0500000007, 0) 650 | Palette.Size = UDim2.new(0, 100, 0, 100) 651 | Palette.Image = "rbxassetid://698052001" 652 | Palette.ScaleType = Enum.ScaleType.Slice 653 | Palette.SliceCenter = Rect.new(4, 4, 4, 4) 654 | 655 | Indicator_3.Name = "Indicator" 656 | Indicator_3.Parent = Palette 657 | Indicator_3.BackgroundColor3 = Color3.new(1, 1, 1) 658 | Indicator_3.BackgroundTransparency = 1 659 | Indicator_3.Size = UDim2.new(0, 5, 0, 5) 660 | Indicator_3.ZIndex = 2 661 | Indicator_3.Image = "rbxassetid://2851926732" 662 | Indicator_3.ImageColor3 = Color3.new(0, 0, 0) 663 | Indicator_3.ScaleType = Enum.ScaleType.Slice 664 | Indicator_3.SliceCenter = Rect.new(12, 12, 12, 12) 665 | 666 | Sample.Name = "Sample" 667 | Sample.Parent = ColorPicker 668 | Sample.BackgroundColor3 = Color3.new(1, 1, 1) 669 | Sample.BackgroundTransparency = 1 670 | Sample.Position = UDim2.new(0.800000012, 0, 0.0500000007, 0) 671 | Sample.Size = UDim2.new(0, 25, 0, 25) 672 | Sample.Image = "rbxassetid://2851929490" 673 | Sample.ScaleType = Enum.ScaleType.Slice 674 | Sample.SliceCenter = Rect.new(4, 4, 4, 4) 675 | 676 | Saturation.Name = "Saturation" 677 | Saturation.Parent = ColorPicker 678 | Saturation.BackgroundColor3 = Color3.new(1, 1, 1) 679 | Saturation.Position = UDim2.new(0.649999976, 0, 0.0500000007, 0) 680 | Saturation.Size = UDim2.new(0, 15, 0, 100) 681 | Saturation.Image = "rbxassetid://3641079629" 682 | 683 | Indicator_4.Name = "Indicator" 684 | Indicator_4.Parent = Saturation 685 | Indicator_4.BackgroundColor3 = Color3.new(1, 1, 1) 686 | Indicator_4.BorderSizePixel = 0 687 | Indicator_4.Size = UDim2.new(0, 20, 0, 2) 688 | Indicator_4.ZIndex = 2 689 | 690 | Switch.Name = "Switch" 691 | Switch.Parent = Prefabs 692 | Switch.BackgroundColor3 = Color3.new(1, 1, 1) 693 | Switch.BackgroundTransparency = 1 694 | Switch.BorderSizePixel = 0 695 | Switch.Position = UDim2.new(0.229411766, 0, 0.20714286, 0) 696 | Switch.Size = UDim2.new(0, 20, 0, 20) 697 | Switch.ZIndex = 2 698 | Switch.Font = Enum.Font.SourceSans 699 | Switch.Text = "" 700 | Switch.TextColor3 = Color3.new(1, 1, 1) 701 | Switch.TextSize = 18 702 | 703 | TextButton_Roundify_4px_4.Name = "TextButton_Roundify_4px" 704 | TextButton_Roundify_4px_4.Parent = Switch 705 | TextButton_Roundify_4px_4.BackgroundColor3 = Color3.new(1, 1, 1) 706 | TextButton_Roundify_4px_4.BackgroundTransparency = 1 707 | TextButton_Roundify_4px_4.Size = UDim2.new(1, 0, 1, 0) 708 | TextButton_Roundify_4px_4.Image = "rbxassetid://2851929490" 709 | TextButton_Roundify_4px_4.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 710 | TextButton_Roundify_4px_4.ImageTransparency = 0.5 711 | TextButton_Roundify_4px_4.ScaleType = Enum.ScaleType.Slice 712 | TextButton_Roundify_4px_4.SliceCenter = Rect.new(4, 4, 4, 4) 713 | 714 | Title_3.Name = "Title" 715 | Title_3.Parent = Switch 716 | Title_3.BackgroundColor3 = Color3.new(1, 1, 1) 717 | Title_3.BackgroundTransparency = 1 718 | Title_3.Position = UDim2.new(1.20000005, 0, 0, 0) 719 | Title_3.Size = UDim2.new(0, 20, 0, 20) 720 | Title_3.Font = Enum.Font.GothamSemibold 721 | Title_3.Text = "Switch" 722 | Title_3.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 723 | Title_3.TextSize = 14 724 | Title_3.TextXAlignment = Enum.TextXAlignment.Left 725 | 726 | Button_2.Name = "Button" 727 | Button_2.Parent = Prefabs 728 | Button_2.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 729 | Button_2.BackgroundTransparency = 1 730 | Button_2.BorderSizePixel = 0 731 | Button_2.Size = UDim2.new(0, 91, 0, 20) 732 | Button_2.ZIndex = 2 733 | Button_2.Font = Enum.Font.GothamSemibold 734 | Button_2.TextColor3 = Color3.new(1, 1, 1) 735 | Button_2.TextSize = 14 736 | 737 | TextButton_Roundify_4px_5.Name = "TextButton_Roundify_4px" 738 | TextButton_Roundify_4px_5.Parent = Button_2 739 | TextButton_Roundify_4px_5.BackgroundColor3 = Color3.new(1, 1, 1) 740 | TextButton_Roundify_4px_5.BackgroundTransparency = 1 741 | TextButton_Roundify_4px_5.Size = UDim2.new(1, 0, 1, 0) 742 | TextButton_Roundify_4px_5.Image = "rbxassetid://2851929490" 743 | TextButton_Roundify_4px_5.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 744 | TextButton_Roundify_4px_5.ScaleType = Enum.ScaleType.Slice 745 | TextButton_Roundify_4px_5.SliceCenter = Rect.new(4, 4, 4, 4) 746 | 747 | DropdownButton.Name = "DropdownButton" 748 | DropdownButton.Parent = Prefabs 749 | DropdownButton.BackgroundColor3 = Color3.new(0.129412, 0.133333, 0.141176) 750 | DropdownButton.BorderSizePixel = 0 751 | DropdownButton.Size = UDim2.new(1, 0, 0, 20) 752 | DropdownButton.ZIndex = 3 753 | DropdownButton.Font = Enum.Font.GothamBold 754 | DropdownButton.Text = " Button" 755 | DropdownButton.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 756 | DropdownButton.TextSize = 14 757 | DropdownButton.TextXAlignment = Enum.TextXAlignment.Left 758 | 759 | Keybind.Name = "Keybind" 760 | Keybind.Parent = Prefabs 761 | Keybind.BackgroundColor3 = Color3.new(1, 1, 1) 762 | Keybind.BackgroundTransparency = 1 763 | Keybind.Size = UDim2.new(0, 200, 0, 20) 764 | Keybind.Image = "rbxassetid://2851929490" 765 | Keybind.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 766 | Keybind.ScaleType = Enum.ScaleType.Slice 767 | Keybind.SliceCenter = Rect.new(4, 4, 4, 4) 768 | 769 | Title_4.Name = "Title" 770 | Title_4.Parent = Keybind 771 | Title_4.BackgroundColor3 = Color3.new(1, 1, 1) 772 | Title_4.BackgroundTransparency = 1 773 | Title_4.Size = UDim2.new(0, 0, 1, 0) 774 | Title_4.Font = Enum.Font.GothamBold 775 | Title_4.Text = "Keybind" 776 | Title_4.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 777 | Title_4.TextSize = 14 778 | Title_4.TextXAlignment = Enum.TextXAlignment.Left 779 | 780 | Input.Name = "Input" 781 | Input.Parent = Keybind 782 | Input.BackgroundColor3 = Color3.new(1, 1, 1) 783 | Input.BackgroundTransparency = 1 784 | Input.BorderSizePixel = 0 785 | Input.Position = UDim2.new(1, -85, 0, 2) 786 | Input.Size = UDim2.new(0, 80, 1, -4) 787 | Input.ZIndex = 2 788 | Input.Font = Enum.Font.GothamSemibold 789 | Input.Text = "RShift" 790 | Input.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 791 | Input.TextSize = 12 792 | Input.TextWrapped = true 793 | 794 | Input_Roundify_4px.Name = "Input_Roundify_4px" 795 | Input_Roundify_4px.Parent = Input 796 | Input_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1) 797 | Input_Roundify_4px.BackgroundTransparency = 1 798 | Input_Roundify_4px.Size = UDim2.new(1, 0, 1, 0) 799 | Input_Roundify_4px.Image = "rbxassetid://2851929490" 800 | Input_Roundify_4px.ImageColor3 = Color3.new(0.290196, 0.294118, 0.313726) 801 | Input_Roundify_4px.ScaleType = Enum.ScaleType.Slice 802 | Input_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4) 803 | 804 | Windows.Name = "Windows" 805 | Windows.Parent = imgui 806 | Windows.BackgroundColor3 = Color3.new(1, 1, 1) 807 | Windows.BackgroundTransparency = 1 808 | Windows.Position = UDim2.new(0, 20, 0, 20) 809 | Windows.Size = UDim2.new(1, 20, 1, -20) 810 | 811 | --[[ Script ]]-- 812 | script.Parent = imgui 813 | 814 | local UIS = game:GetService("UserInputService") 815 | local TweenService = game:GetService("TweenService") 816 | local RS = game:GetService("RunService") 817 | local ps = game:GetService("Players") 818 | 819 | local p = ps.LocalPlayer 820 | local mouse = p:GetMouse() 821 | 822 | local Prefabs = script.Parent:WaitForChild("Prefabs") 823 | local Windows = script.Parent:FindFirstChild("Windows") 824 | 825 | local checks = { 826 | ["binding"] = false, 827 | } 828 | 829 | UIS.InputBegan:Connect(function(input, gameProcessed) 830 | if input.KeyCode == ((typeof(ui_options.toggle_key) == "EnumItem") and ui_options.toggle_key or Enum.KeyCode.RightShift) then 831 | if script.Parent then 832 | if not checks.binding then 833 | script.Parent.Enabled = not script.Parent.Enabled 834 | end 835 | end 836 | end 837 | end) 838 | 839 | local function Resize(part, new, _delay) 840 | _delay = _delay or 0.5 841 | local tweenInfo = TweenInfo.new(_delay, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) 842 | local tween = TweenService:Create(part, tweenInfo, new) 843 | tween:Play() 844 | end 845 | 846 | local function rgbtohsv(r, g, b) -- idk who made this function, but thanks 847 | r, g, b = r / 255, g / 255, b / 255 848 | local max, min = math.max(r, g, b), math.min(r, g, b) 849 | local h, s, v 850 | v = max 851 | 852 | local d = max - min 853 | if max == 0 then 854 | s = 0 855 | else 856 | s = d / max 857 | end 858 | 859 | if max == min then 860 | h = 0 861 | else 862 | if max == r then 863 | h = (g - b) / d 864 | if g < b then 865 | h = h + 6 866 | end 867 | elseif max == g then 868 | h = (b - r) / d + 2 869 | elseif max == b then 870 | h = (r - g) / d + 4 871 | end 872 | h = h / 6 873 | end 874 | 875 | return h, s, v 876 | end 877 | 878 | local function hasprop(object, prop) 879 | local a, b = pcall(function() 880 | return object[tostring(prop)] 881 | end) 882 | if a then 883 | return b 884 | end 885 | end 886 | 887 | local function gNameLen(obj) 888 | return obj.TextBounds.X + 15 889 | end 890 | 891 | local function gMouse() 892 | return Vector2.new(UIS:GetMouseLocation().X + 1, UIS:GetMouseLocation().Y - 35) 893 | end 894 | 895 | local function ripple(button, x, y) 896 | spawn(function() 897 | button.ClipsDescendants = true 898 | 899 | local circle = Prefabs:FindFirstChild("Circle"):Clone() 900 | 901 | circle.Parent = button 902 | circle.ZIndex = 1000 903 | 904 | local new_x = x - circle.AbsolutePosition.X 905 | local new_y = y - circle.AbsolutePosition.Y 906 | circle.Position = UDim2.new(0, new_x, 0, new_y) 907 | 908 | local size = 0 909 | if button.AbsoluteSize.X > button.AbsoluteSize.Y then 910 | size = button.AbsoluteSize.X * 1.5 911 | elseif button.AbsoluteSize.X < button.AbsoluteSize.Y then 912 | size = button.AbsoluteSize.Y * 1.5 913 | elseif button.AbsoluteSize.X == button.AbsoluteSize.Y then 914 | size = button.AbsoluteSize.X * 1.5 915 | end 916 | 917 | circle:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, -size / 2, 0.5, -size / 2), "Out", "Quad", 0.5, false, nil) 918 | Resize(circle, {ImageTransparency = 1}, 0.5) 919 | 920 | wait(0.5) 921 | circle:Destroy() 922 | end) 923 | end 924 | 925 | local windows = 0 926 | local library = {} 927 | 928 | local function format_windows() 929 | local ull = Prefabs:FindFirstChild("UIListLayout"):Clone() 930 | ull.Parent = Windows 931 | local data = {} 932 | 933 | for i,v in next, Windows:GetChildren() do 934 | if not (v:IsA("UIListLayout")) then 935 | data[v] = v.AbsolutePosition 936 | end 937 | end 938 | 939 | ull:Destroy() 940 | 941 | for i,v in next, data do 942 | i.Position = UDim2.new(0, v.X, 0, v.Y) 943 | end 944 | end 945 | 946 | function library:FormatWindows() 947 | format_windows() 948 | end 949 | 950 | function library:AddWindow(title, options) 951 | windows = windows + 1 952 | local dropdown_open = false 953 | title = tostring(title or "New Window") 954 | options = (typeof(options) == "table") and options or ui_options 955 | options.tween_time = 0.1 956 | 957 | local Window = Prefabs:FindFirstChild("Window"):Clone() 958 | Window.Parent = Windows 959 | Window:FindFirstChild("Title").Text = title 960 | Window.Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y) 961 | Window.ZIndex = Window.ZIndex + (windows * 10) 962 | 963 | do -- Altering Window Color 964 | local Title = Window:FindFirstChild("Title") 965 | local Bar = Window:FindFirstChild("Bar") 966 | local Base = Bar:FindFirstChild("Base") 967 | local Top = Bar:FindFirstChild("Top") 968 | local SplitFrame = Window:FindFirstChild("TabSelection"):FindFirstChild("Frame") 969 | local Toggle = Bar:FindFirstChild("Toggle") 970 | 971 | spawn(function() 972 | while true do 973 | Bar.BackgroundColor3 = options.main_color 974 | Base.BackgroundColor3 = options.main_color 975 | Base.ImageColor3 = options.main_color 976 | Top.ImageColor3 = options.main_color 977 | SplitFrame.BackgroundColor3 = options.main_color 978 | 979 | RS.Heartbeat:Wait() 980 | end 981 | end) 982 | 983 | end 984 | 985 | local Resizer = Window:WaitForChild("Resizer") 986 | 987 | local window_data = {} 988 | Window.Draggable = true 989 | 990 | do -- Resize Window 991 | local oldIcon = mouse.Icon 992 | local Entered = false 993 | Resizer.MouseEnter:Connect(function() 994 | Window.Draggable = false 995 | if options.can_resize then 996 | oldIcon = mouse.Icon 997 | -- mouse.Icon = "http://www.roblox.com/asset?id=4745131330" 998 | end 999 | Entered = true 1000 | end) 1001 | 1002 | Resizer.MouseLeave:Connect(function() 1003 | Entered = false 1004 | if options.can_resize then 1005 | mouse.Icon = oldIcon 1006 | end 1007 | Window.Draggable = true 1008 | end) 1009 | 1010 | local Held = false 1011 | UIS.InputBegan:Connect(function(inputObject) 1012 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1013 | Held = true 1014 | 1015 | spawn(function() -- Loop check 1016 | if Entered and Resizer.Active and options.can_resize then 1017 | while Held and Resizer.Active do 1018 | 1019 | local mouse_location = gMouse() 1020 | local x = mouse_location.X - Window.AbsolutePosition.X 1021 | local y = mouse_location.Y - Window.AbsolutePosition.Y 1022 | 1023 | -- 1024 | if x >= options.min_size.X and y >= options.min_size.Y then 1025 | Resize(Window, {Size = UDim2.new(0, x, 0, y)}, options.tween_time) 1026 | elseif x >= options.min_size.X then 1027 | Resize(Window, {Size = UDim2.new(0, x, 0, options.min_size.Y)}, options.tween_time) 1028 | elseif y >= options.min_size.Y then 1029 | Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, y)}, options.tween_time) 1030 | else 1031 | Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y)}, options.tween_time) 1032 | end 1033 | 1034 | RS.Heartbeat:Wait() 1035 | end 1036 | end 1037 | end) 1038 | end 1039 | end) 1040 | UIS.InputEnded:Connect(function(inputObject) 1041 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1042 | Held = false 1043 | end 1044 | end) 1045 | end 1046 | 1047 | do -- [Open / Close] Window 1048 | local open_close = Window:FindFirstChild("Bar"):FindFirstChild("Toggle") 1049 | local open = true 1050 | local canopen = true 1051 | 1052 | local oldwindowdata = {} 1053 | local oldy = Window.AbsoluteSize.Y 1054 | open_close.MouseButton1Click:Connect(function() 1055 | if canopen then 1056 | canopen = false 1057 | 1058 | if open then 1059 | -- Close 1060 | 1061 | oldwindowdata = {} 1062 | for i,v in next, Window:FindFirstChild("Tabs"):GetChildren() do 1063 | oldwindowdata[v] = v.Visible 1064 | v.Visible = false 1065 | end 1066 | 1067 | Resizer.Active = false 1068 | 1069 | oldy = Window.AbsoluteSize.Y 1070 | Resize(open_close, {Rotation = 0}, options.tween_time) 1071 | Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, 26)}, options.tween_time) 1072 | open_close.Parent:FindFirstChild("Base").Transparency = 1 1073 | 1074 | else 1075 | -- Open 1076 | 1077 | for i,v in next, oldwindowdata do 1078 | i.Visible = v 1079 | end 1080 | 1081 | Resizer.Active = true 1082 | 1083 | Resize(open_close, {Rotation = 90}, options.tween_time) 1084 | Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, oldy)}, options.tween_time) 1085 | open_close.Parent:FindFirstChild("Base").Transparency = 0 1086 | 1087 | end 1088 | 1089 | open = not open 1090 | wait(options.tween_time) 1091 | canopen = true 1092 | 1093 | end 1094 | end) 1095 | end 1096 | 1097 | do -- UI Elements 1098 | local tabs = Window:FindFirstChild("Tabs") 1099 | local tab_selection = Window:FindFirstChild("TabSelection") 1100 | local tab_buttons = tab_selection:FindFirstChild("TabButtons") 1101 | 1102 | do -- Add Tab 1103 | function window_data:AddTab(tab_name) 1104 | local tab_data = {} 1105 | tab_name = tostring(tab_name or "New Tab") 1106 | tab_selection.Visible = true 1107 | 1108 | local new_button = Prefabs:FindFirstChild("TabButton"):Clone() 1109 | new_button.Parent = tab_buttons 1110 | new_button.Text = tab_name 1111 | new_button.Size = UDim2.new(0, gNameLen(new_button), 0, 20) 1112 | new_button.ZIndex = new_button.ZIndex + (windows * 10) 1113 | new_button:GetChildren()[1].ZIndex = new_button:GetChildren()[1].ZIndex + (windows * 10) 1114 | 1115 | local new_tab = Prefabs:FindFirstChild("Tab"):Clone() 1116 | new_tab.Parent = tabs 1117 | new_tab.ZIndex = new_tab.ZIndex + (windows * 10) 1118 | 1119 | local function show() 1120 | if dropdown_open then return end 1121 | for i, v in next, tab_buttons:GetChildren() do 1122 | if not (v:IsA("UIListLayout")) then 1123 | v:GetChildren()[1].ImageColor3 = Color3.fromRGB(52, 53, 56) 1124 | Resize(v, {Size = UDim2.new(0, v.AbsoluteSize.X, 0, 20)}, options.tween_time) 1125 | end 1126 | end 1127 | for i, v in next, tabs:GetChildren() do 1128 | v.Visible = false 1129 | end 1130 | 1131 | Resize(new_button, {Size = UDim2.new(0, new_button.AbsoluteSize.X, 0, 25)}, options.tween_time) 1132 | new_button:GetChildren()[1].ImageColor3 = Color3.fromRGB(73, 75, 79) 1133 | new_tab.Visible = true 1134 | end 1135 | 1136 | new_button.MouseButton1Click:Connect(function() 1137 | show() 1138 | end) 1139 | 1140 | function tab_data:Show() 1141 | show() 1142 | end 1143 | 1144 | do -- Tab Elements 1145 | 1146 | function tab_data:AddLabel(label_text) -- [Label] 1147 | label_text = tostring(label_text or "New Label") 1148 | 1149 | local label = Prefabs:FindFirstChild("Label"):Clone() 1150 | 1151 | label.Parent = new_tab 1152 | label.Text = label_text 1153 | label.Size = UDim2.new(0, gNameLen(label), 0, 20) 1154 | label.ZIndex = label.ZIndex + (windows * 10) 1155 | 1156 | return label 1157 | end 1158 | 1159 | function tab_data:AddButton(button_text, callback) -- [Button] 1160 | button_text = tostring(button_text or "New Button") 1161 | callback = typeof(callback) == "function" and callback or function()end 1162 | 1163 | local button = Prefabs:FindFirstChild("Button"):Clone() 1164 | 1165 | button.Parent = new_tab 1166 | button.Text = button_text 1167 | button.Size = UDim2.new(0, gNameLen(button), 0, 20) 1168 | button.ZIndex = button.ZIndex + (windows * 10) 1169 | button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10) 1170 | 1171 | spawn(function() 1172 | while true do 1173 | if button and button:GetChildren()[1] then 1174 | button:GetChildren()[1].ImageColor3 = options.main_color 1175 | end 1176 | RS.Heartbeat:Wait() 1177 | end 1178 | end) 1179 | 1180 | button.MouseButton1Click:Connect(function() 1181 | ripple(button, mouse.X, mouse.Y) 1182 | pcall(callback) 1183 | end) 1184 | 1185 | return button 1186 | end 1187 | 1188 | function tab_data:AddSwitch(switch_text, callback) -- [Switch] 1189 | local switch_data = {} 1190 | 1191 | switch_text = tostring(switch_text or "New Switch") 1192 | callback = typeof(callback) == "function" and callback or function()end 1193 | 1194 | local switch = Prefabs:FindFirstChild("Switch"):Clone() 1195 | 1196 | switch.Parent = new_tab 1197 | switch:FindFirstChild("Title").Text = switch_text 1198 | 1199 | switch:FindFirstChild("Title").ZIndex = switch:FindFirstChild("Title").ZIndex + (windows * 10) 1200 | switch.ZIndex = switch.ZIndex + (windows * 10) 1201 | switch:GetChildren()[1].ZIndex = switch:GetChildren()[1].ZIndex + (windows * 10) 1202 | 1203 | spawn(function() 1204 | while true do 1205 | if switch and switch:GetChildren()[1] then 1206 | switch:GetChildren()[1].ImageColor3 = options.main_color 1207 | end 1208 | RS.Heartbeat:Wait() 1209 | end 1210 | end) 1211 | 1212 | local toggled = false 1213 | switch.MouseButton1Click:Connect(function() 1214 | toggled = not toggled 1215 | switch.Text = toggled and utf8.char(10003) or "" 1216 | pcall(callback, toggled) 1217 | end) 1218 | 1219 | function switch_data:Set(bool) 1220 | toggled = (typeof(bool) == "boolean") and bool or false 1221 | switch.Text = toggled and utf8.char(10003) or "" 1222 | pcall(callback,toggled) 1223 | end 1224 | 1225 | return switch_data, switch 1226 | end 1227 | 1228 | function tab_data:AddTextBox(textbox_text, callback, textbox_options) 1229 | textbox_text = tostring(textbox_text or "New TextBox") 1230 | callback = typeof(callback) == "function" and callback or function()end 1231 | textbox_options = typeof(textbox_options) == "table" and textbox_options or {["clear"] = true} 1232 | textbox_options = { 1233 | ["clear"] = ((textbox_options.clear) == true) 1234 | } 1235 | 1236 | local textbox = Prefabs:FindFirstChild("TextBox"):Clone() 1237 | 1238 | textbox.Parent = new_tab 1239 | textbox.PlaceholderText = textbox_text 1240 | textbox.ZIndex = textbox.ZIndex + (windows * 10) 1241 | textbox:GetChildren()[1].ZIndex = textbox:GetChildren()[1].ZIndex + (windows * 10) 1242 | 1243 | textbox.FocusLost:Connect(function(ep) 1244 | if ep then 1245 | if #textbox.Text > 0 then 1246 | pcall(callback, textbox.Text) 1247 | if textbox_options.clear then 1248 | textbox.Text = "" 1249 | end 1250 | end 1251 | end 1252 | end) 1253 | 1254 | return textbox 1255 | end 1256 | 1257 | function tab_data:AddSlider(slider_text, callback, slider_options) 1258 | local slider_data = {} 1259 | 1260 | slider_text = tostring(slider_text or "New Slider") 1261 | callback = typeof(callback) == "function" and callback or function()end 1262 | slider_options = typeof(slider_options) == "table" and slider_options or {} 1263 | slider_options = { 1264 | ["min"] = slider_options.min or 0, 1265 | ["max"] = slider_options.max or 100, 1266 | ["readonly"] = slider_options.readonly or false, 1267 | } 1268 | 1269 | local slider = Prefabs:FindFirstChild("Slider"):Clone() 1270 | 1271 | slider.Parent = new_tab 1272 | slider.ZIndex = slider.ZIndex + (windows * 10) 1273 | 1274 | local title = slider:FindFirstChild("Title") 1275 | local indicator = slider:FindFirstChild("Indicator") 1276 | local value = slider:FindFirstChild("Value") 1277 | title.ZIndex = title.ZIndex + (windows * 10) 1278 | indicator.ZIndex = indicator.ZIndex + (windows * 10) 1279 | value.ZIndex = value.ZIndex + (windows * 10) 1280 | 1281 | title.Text = slider_text 1282 | 1283 | do -- Slider Math 1284 | local Entered = false 1285 | slider.MouseEnter:Connect(function() 1286 | Entered = true 1287 | Window.Draggable = false 1288 | end) 1289 | slider.MouseLeave:Connect(function() 1290 | Entered = false 1291 | Window.Draggable = true 1292 | end) 1293 | 1294 | local Held = false 1295 | UIS.InputBegan:Connect(function(inputObject) 1296 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1297 | Held = true 1298 | 1299 | spawn(function() -- Loop check 1300 | if Entered and not slider_options.readonly then 1301 | while Held and (not dropdown_open) do 1302 | local mouse_location = gMouse() 1303 | local x = (slider.AbsoluteSize.X - (slider.AbsoluteSize.X - ((mouse_location.X - slider.AbsolutePosition.X)) + 1)) / slider.AbsoluteSize.X 1304 | 1305 | local min = 0 1306 | local max = 1 1307 | 1308 | local size = min 1309 | if x >= min and x <= max then 1310 | size = x 1311 | elseif x < min then 1312 | size = min 1313 | elseif x > max then 1314 | size = max 1315 | end 1316 | 1317 | Resize(indicator, {Size = UDim2.new(size or min, 0, 0, 20)}, options.tween_time) 1318 | local p = math.floor((size or min) * 100) 1319 | 1320 | local maxv = slider_options.max 1321 | local minv = slider_options.min 1322 | local diff = maxv - minv 1323 | 1324 | local sel_value = math.floor(((diff / 100) * p) + minv) 1325 | 1326 | value.Text = tostring(sel_value) 1327 | pcall(callback, sel_value) 1328 | 1329 | RS.Heartbeat:Wait() 1330 | end 1331 | end 1332 | end) 1333 | end 1334 | end) 1335 | UIS.InputEnded:Connect(function(inputObject) 1336 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1337 | Held = false 1338 | end 1339 | end) 1340 | 1341 | function slider_data:Set(new_value) 1342 | new_value = tonumber(new_value) or 0 1343 | new_value = (((new_value >= 0 and new_value <= 100) and new_value) / 100) 1344 | 1345 | Resize(indicator, {Size = UDim2.new(new_value or 0, 0, 0, 20)}, options.tween_time) 1346 | local p = math.floor((new_value or 0) * 100) 1347 | 1348 | local maxv = slider_options.max 1349 | local minv = slider_options.min 1350 | local diff = maxv - minv 1351 | 1352 | local sel_value = math.floor(((diff / 100) * p) + minv) 1353 | 1354 | value.Text = tostring(sel_value) 1355 | pcall(callback, sel_value) 1356 | end 1357 | 1358 | slider_data:Set(slider_options["min"]) 1359 | end 1360 | 1361 | return slider_data, slider 1362 | end 1363 | 1364 | function tab_data:AddKeybind(keybind_name, callback, keybind_options) 1365 | local keybind_data = {} 1366 | 1367 | keybind_name = tostring(keybind_name or "New Keybind") 1368 | callback = typeof(callback) == "function" and callback or function()end 1369 | keybind_options = typeof(keybind_options) == "table" and keybind_options or {} 1370 | keybind_options = { 1371 | ["standard"] = keybind_options.standard or Enum.KeyCode.RightShift, 1372 | } 1373 | 1374 | local keybind = Prefabs:FindFirstChild("Keybind"):Clone() 1375 | local input = keybind:FindFirstChild("Input") 1376 | local title = keybind:FindFirstChild("Title") 1377 | keybind.ZIndex = keybind.ZIndex + (windows * 10) 1378 | input.ZIndex = input.ZIndex + (windows * 10) 1379 | input:GetChildren()[1].ZIndex = input:GetChildren()[1].ZIndex + (windows * 10) 1380 | title.ZIndex = title.ZIndex + (windows * 10) 1381 | 1382 | keybind.Parent = new_tab 1383 | title.Text = " " .. keybind_name 1384 | keybind.Size = UDim2.new(0, gNameLen(title) + 80, 0, 20) 1385 | 1386 | local shortkeys = { -- thanks to stroketon for helping me out with this 1387 | RightControl = 'RightCtrl', 1388 | LeftControl = 'LeftCtrl', 1389 | LeftShift = 'LShift', 1390 | RightShift = 'RShift', 1391 | MouseButton1 = "Mouse1", 1392 | MouseButton2 = "Mouse2" 1393 | } 1394 | 1395 | local keybind = keybind_options.standard 1396 | 1397 | function keybind_data:SetKeybind(Keybind) 1398 | local key = shortkeys[Keybind.Name] or Keybind.Name 1399 | input.Text = key 1400 | keybind = Keybind 1401 | end 1402 | 1403 | UIS.InputBegan:Connect(function(a, b) 1404 | if checks.binding then 1405 | spawn(function() 1406 | wait() 1407 | checks.binding = false 1408 | end) 1409 | return 1410 | end 1411 | if a.KeyCode == keybind and not b then 1412 | pcall(callback, keybind) 1413 | end 1414 | end) 1415 | 1416 | keybind_data:SetKeybind(keybind_options.standard) 1417 | 1418 | input.MouseButton1Click:Connect(function() 1419 | if checks.binding then return end 1420 | input.Text = "..." 1421 | checks.binding = true 1422 | local a, b = UIS.InputBegan:Wait() 1423 | keybind_data:SetKeybind(a.KeyCode) 1424 | end) 1425 | 1426 | return keybind_data, keybind 1427 | end 1428 | 1429 | function tab_data:AddDropdown(dropdown_name, callback) 1430 | local dropdown_data = {} 1431 | dropdown_name = tostring(dropdown_name or "New Dropdown") 1432 | callback = typeof(callback) == "function" and callback or function()end 1433 | 1434 | local dropdown = Prefabs:FindFirstChild("Dropdown"):Clone() 1435 | local box = dropdown:FindFirstChild("Box") 1436 | local objects = box:FindFirstChild("Objects") 1437 | local indicator = dropdown:FindFirstChild("Indicator") 1438 | dropdown.ZIndex = dropdown.ZIndex + (windows * 10) 1439 | box.ZIndex = box.ZIndex + (windows * 10) 1440 | objects.ZIndex = objects.ZIndex + (windows * 10) 1441 | indicator.ZIndex = indicator.ZIndex + (windows * 10) 1442 | dropdown:GetChildren()[3].ZIndex = dropdown:GetChildren()[3].ZIndex + (windows * 10) 1443 | 1444 | dropdown.Parent = new_tab 1445 | dropdown.Text = " " .. dropdown_name 1446 | box.Size = UDim2.new(1, 0, 0, 0) 1447 | 1448 | local open = false 1449 | dropdown.MouseButton1Click:Connect(function() 1450 | open = not open 1451 | 1452 | local len = (#objects:GetChildren() - 1) * 20 1453 | if #objects:GetChildren() - 1 >= 10 then 1454 | len = 10 * 20 1455 | objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0) 1456 | end 1457 | 1458 | if open then -- Open 1459 | if dropdown_open then return end 1460 | dropdown_open = true 1461 | Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time) 1462 | Resize(indicator, {Rotation = 90}, options.tween_time) 1463 | else -- Close 1464 | dropdown_open = false 1465 | Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time) 1466 | Resize(indicator, {Rotation = -90}, options.tween_time) 1467 | end 1468 | 1469 | end) 1470 | 1471 | function dropdown_data:Add(n) 1472 | local object_data = {} 1473 | n = tostring(n or "New Object") 1474 | 1475 | local object = Prefabs:FindFirstChild("DropdownButton"):Clone() 1476 | 1477 | object.Parent = objects 1478 | object.Text = n 1479 | object.ZIndex = object.ZIndex + (windows * 10) 1480 | 1481 | object.MouseEnter:Connect(function() 1482 | object.BackgroundColor3 = options.main_color 1483 | end) 1484 | object.MouseLeave:Connect(function() 1485 | object.BackgroundColor3 = Color3.fromRGB(33, 34, 36) 1486 | end) 1487 | 1488 | if open then 1489 | local len = (#objects:GetChildren() - 1) * 20 1490 | if #objects:GetChildren() - 1 >= 10 then 1491 | len = 10 * 20 1492 | objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0) 1493 | end 1494 | Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time) 1495 | end 1496 | 1497 | object.MouseButton1Click:Connect(function() 1498 | if dropdown_open then 1499 | dropdown.Text = " [ " .. n .. " ]" 1500 | dropdown_open = false 1501 | open = false 1502 | Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time) 1503 | Resize(indicator, {Rotation = -90}, options.tween_time) 1504 | pcall(callback, n) 1505 | end 1506 | end) 1507 | 1508 | function object_data:Remove() 1509 | object:Destroy() 1510 | end 1511 | 1512 | return object, object_data 1513 | end 1514 | 1515 | return dropdown_data, dropdown 1516 | end 1517 | 1518 | function tab_data:AddColorPicker(callback) 1519 | local color_picker_data = {} 1520 | callback = typeof(callback) == "function" and callback or function()end 1521 | 1522 | local color_picker = Prefabs:FindFirstChild("ColorPicker"):Clone() 1523 | 1524 | color_picker.Parent = new_tab 1525 | color_picker.ZIndex = color_picker.ZIndex + (windows * 10) 1526 | 1527 | local palette = color_picker:FindFirstChild("Palette") 1528 | local sample = color_picker:FindFirstChild("Sample") 1529 | local saturation = color_picker:FindFirstChild("Saturation") 1530 | palette.ZIndex = palette.ZIndex + (windows * 10) 1531 | sample.ZIndex = sample.ZIndex + (windows * 10) 1532 | saturation.ZIndex = saturation.ZIndex + (windows * 10) 1533 | 1534 | do -- Color Picker Math 1535 | local h = 0 1536 | local s = 1 1537 | local v = 1 1538 | 1539 | local function update() 1540 | local color = Color3.fromHSV(h, s, v) 1541 | sample.ImageColor3 = color 1542 | saturation.ImageColor3 = Color3.fromHSV(h, 1, 1) 1543 | pcall(callback, color) 1544 | end 1545 | 1546 | do 1547 | local color = Color3.fromHSV(h, s, v) 1548 | sample.ImageColor3 = color 1549 | saturation.ImageColor3 = Color3.fromHSV(h, 1, 1) 1550 | end 1551 | 1552 | local Entered1, Entered2 = false, false 1553 | palette.MouseEnter:Connect(function() 1554 | Window.Draggable = false 1555 | Entered1 = true 1556 | end) 1557 | palette.MouseLeave:Connect(function() 1558 | Window.Draggable = true 1559 | Entered1 = false 1560 | end) 1561 | saturation.MouseEnter:Connect(function() 1562 | Window.Draggable = false 1563 | Entered2 = true 1564 | end) 1565 | saturation.MouseLeave:Connect(function() 1566 | Window.Draggable = true 1567 | Entered2 = false 1568 | end) 1569 | 1570 | local palette_indicator = palette:FindFirstChild("Indicator") 1571 | local saturation_indicator = saturation:FindFirstChild("Indicator") 1572 | palette_indicator.ZIndex = palette_indicator.ZIndex + (windows * 10) 1573 | saturation_indicator.ZIndex = saturation_indicator.ZIndex + (windows * 10) 1574 | 1575 | local Held = false 1576 | UIS.InputBegan:Connect(function(inputObject) 1577 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1578 | Held = true 1579 | 1580 | spawn(function() -- Loop check 1581 | while Held and Entered1 and (not dropdown_open) do -- Palette 1582 | local mouse_location = gMouse() 1583 | 1584 | local x = ((palette.AbsoluteSize.X - (mouse_location.X - palette.AbsolutePosition.X)) + 1) 1585 | local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5) 1586 | 1587 | local color = Color3.fromHSV(x / 100, y / 100, 0) 1588 | h = x / 100 1589 | s = y / 100 1590 | 1591 | Resize(palette_indicator, {Position = UDim2.new(0, math.abs(x - 100) - (palette_indicator.AbsoluteSize.X / 2), 0, math.abs(y - 100) - (palette_indicator.AbsoluteSize.Y / 2))}, options.tween_time) 1592 | 1593 | update() 1594 | RS.Heartbeat:Wait() 1595 | end 1596 | 1597 | while Held and Entered2 and (not dropdown_open) do -- Saturation 1598 | local mouse_location = gMouse() 1599 | local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5) 1600 | v = y / 100 1601 | 1602 | Resize(saturation_indicator, {Position = UDim2.new(0, 0, 0, math.abs(y - 100))}, options.tween_time) 1603 | 1604 | update() 1605 | RS.Heartbeat:Wait() 1606 | end 1607 | end) 1608 | end 1609 | end) 1610 | UIS.InputEnded:Connect(function(inputObject) 1611 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1612 | Held = false 1613 | end 1614 | end) 1615 | 1616 | function color_picker_data:Set(color) 1617 | color = typeof(color) == "Color3" and color or Color3.new(1, 1, 1) 1618 | local h2, s2, v2 = rgbtohsv(color.r * 255, color.g * 255, color.b * 255) 1619 | sample.ImageColor3 = color 1620 | saturation.ImageColor3 = Color3.fromHSV(h2, 1, 1) 1621 | pcall(callback, color) 1622 | end 1623 | end 1624 | 1625 | return color_picker_data, color_picker 1626 | end 1627 | 1628 | function tab_data:AddConsole(console_options) 1629 | local console_data = {} 1630 | 1631 | console_options = typeof(console_options) == "table" and console_options or {["readonly"] = true,["full"] = false,} 1632 | console_options = { 1633 | ["y"] = tonumber(console_options.y) or 200, 1634 | ["source"] = console_options.source or "Logs", 1635 | ["readonly"] = ((console_options.readonly) == true), 1636 | ["full"] = ((console_options.full) == true), 1637 | } 1638 | 1639 | local console = Prefabs:FindFirstChild("Console"):Clone() 1640 | 1641 | console.Parent = new_tab 1642 | console.ZIndex = console.ZIndex + (windows * 10) 1643 | console.Size = UDim2.new(1, 0, console_options.full and 1 or 0, console_options.y) 1644 | 1645 | local sf = console:GetChildren()[1] 1646 | local Source = sf:FindFirstChild("Source") 1647 | local Lines = sf:FindFirstChild("Lines") 1648 | Source.ZIndex = Source.ZIndex + (windows * 10) 1649 | Lines.ZIndex = Lines.ZIndex + (windows * 10) 1650 | 1651 | Source.TextEditable = not console_options.readonly 1652 | 1653 | do -- Syntax Zindex 1654 | for i,v in next, Source:GetChildren() do 1655 | v.ZIndex = v.ZIndex + (windows * 10) + 1 1656 | end 1657 | end 1658 | Source.Comments.ZIndex = Source.Comments.ZIndex + 1 1659 | 1660 | do -- Highlighting (thanks to whoever made this) 1661 | local lua_keywords = {"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"} 1662 | local global_env = {"getrawmetatable", "newcclosure", "islclosure", "setclipboard", "game", "workspace", "script", "math", "string", "table", "print", "wait", "BrickColor", "Color3", "next", "pairs", "ipairs", "select", "unpack", "Instance", "Vector2", "Vector3", "CFrame", "Ray", "UDim2", "Enum", "assert", "error", "warn", "tick", "loadstring", "_G", "shared", "getfenv", "setfenv", "newproxy", "setmetatable", "getmetatable", "os", "debug", "pcall", "ypcall", "xpcall", "rawequal", "rawset", "rawget", "tonumber", "tostring", "type", "typeof", "_VERSION", "coroutine", "delay", "require", "spawn", "LoadLibrary", "settings", "stats", "time", "UserSettings", "version", "Axes", "ColorSequence", "Faces", "ColorSequenceKeypoint", "NumberRange", "NumberSequence", "NumberSequenceKeypoint", "gcinfo", "elapsedTime", "collectgarbage", "PhysicalProperties", "Rect", "Region3", "Region3int16", "UDim", "Vector2int16", "Vector3int16", "load", "fire", "Fire"} 1663 | 1664 | local Highlight = function(string, keywords) 1665 | local K = {} 1666 | local S = string 1667 | local Token = 1668 | { 1669 | ["="] = true, 1670 | ["."] = true, 1671 | [","] = true, 1672 | ["("] = true, 1673 | [")"] = true, 1674 | ["["] = true, 1675 | ["]"] = true, 1676 | ["{"] = true, 1677 | ["}"] = true, 1678 | [":"] = true, 1679 | ["*"] = true, 1680 | ["/"] = true, 1681 | ["+"] = true, 1682 | ["-"] = true, 1683 | ["%"] = true, 1684 | [";"] = true, 1685 | ["~"] = true 1686 | } 1687 | for i, v in pairs(keywords) do 1688 | K[v] = true 1689 | end 1690 | S = S:gsub(".", function(c) 1691 | if Token[c] ~= nil then 1692 | return "\32" 1693 | else 1694 | return c 1695 | end 1696 | end) 1697 | S = S:gsub("%S+", function(c) 1698 | if K[c] ~= nil then 1699 | return c 1700 | else 1701 | return (" "):rep(#c) 1702 | end 1703 | end) 1704 | 1705 | return S 1706 | end 1707 | 1708 | local hTokens = function(string) 1709 | local Token = 1710 | { 1711 | ["="] = true, 1712 | ["."] = true, 1713 | [","] = true, 1714 | ["("] = true, 1715 | [")"] = true, 1716 | ["["] = true, 1717 | ["]"] = true, 1718 | ["{"] = true, 1719 | ["}"] = true, 1720 | [":"] = true, 1721 | ["*"] = true, 1722 | ["/"] = true, 1723 | ["+"] = true, 1724 | ["-"] = true, 1725 | ["%"] = true, 1726 | [";"] = true, 1727 | ["~"] = true 1728 | } 1729 | local A = "" 1730 | string:gsub(".", function(c) 1731 | if Token[c] ~= nil then 1732 | A = A .. c 1733 | elseif c == "\n" then 1734 | A = A .. "\n" 1735 | elseif c == "\t" then 1736 | A = A .. "\t" 1737 | else 1738 | A = A .. "\32" 1739 | end 1740 | end) 1741 | 1742 | return A 1743 | end 1744 | 1745 | local strings = function(string) 1746 | local highlight = "" 1747 | local quote = false 1748 | string:gsub(".", function(c) 1749 | if quote == false and c == "\34" then 1750 | quote = true 1751 | elseif quote == true and c == "\34" then 1752 | quote = false 1753 | end 1754 | if quote == false and c == "\34" then 1755 | highlight = highlight .. "\34" 1756 | elseif c == "\n" then 1757 | highlight = highlight .. "\n" 1758 | elseif c == "\t" then 1759 | highlight = highlight .. "\t" 1760 | elseif quote == true then 1761 | highlight = highlight .. c 1762 | elseif quote == false then 1763 | highlight = highlight .. "\32" 1764 | end 1765 | end) 1766 | 1767 | return highlight 1768 | end 1769 | 1770 | local info = function(string) 1771 | local highlight = "" 1772 | local quote = false 1773 | string:gsub(".", function(c) 1774 | if quote == false and c == "[" then 1775 | quote = true 1776 | elseif quote == true and c == "]" then 1777 | quote = false 1778 | end 1779 | if quote == false and c == "\]" then 1780 | highlight = highlight .. "\]" 1781 | elseif c == "\n" then 1782 | highlight = highlight .. "\n" 1783 | elseif c == "\t" then 1784 | highlight = highlight .. "\t" 1785 | elseif quote == true then 1786 | highlight = highlight .. c 1787 | elseif quote == false then 1788 | highlight = highlight .. "\32" 1789 | end 1790 | end) 1791 | 1792 | return highlight 1793 | end 1794 | 1795 | local comments = function(string) 1796 | local ret = "" 1797 | string:gsub("[^\r\n]+", function(c) 1798 | local comm = false 1799 | local i = 0 1800 | c:gsub(".", function(n) 1801 | i = i + 1 1802 | if c:sub(i, i + 1) == "--" then 1803 | comm = true 1804 | end 1805 | if comm == true then 1806 | ret = ret .. n 1807 | else 1808 | ret = ret .. "\32" 1809 | end 1810 | end) 1811 | ret = ret 1812 | end) 1813 | 1814 | return ret 1815 | end 1816 | 1817 | local numbers = function(string) 1818 | local A = "" 1819 | string:gsub(".", function(c) 1820 | if tonumber(c) ~= nil then 1821 | A = A .. c 1822 | elseif c == "\n" then 1823 | A = A .. "\n" 1824 | elseif c == "\t" then 1825 | A = A .. "\t" 1826 | else 1827 | A = A .. "\32" 1828 | end 1829 | end) 1830 | 1831 | return A 1832 | end 1833 | 1834 | local highlight_lua = function(type) 1835 | if type == "Text" then 1836 | Source.Text = Source.Text:gsub("\13", "") 1837 | Source.Text = Source.Text:gsub("\t", " ") 1838 | local s = Source.Text 1839 | 1840 | Source.Keywords.Text = Highlight(s, lua_keywords) 1841 | Source.Globals.Text = Highlight(s, global_env) 1842 | Source.RemoteHighlight.Text = Highlight(s, {"FireServer", "fireServer", "InvokeServer", "invokeServer"}) 1843 | Source.Tokens.Text = hTokens(s) 1844 | Source.Numbers.Text = numbers(s) 1845 | Source.Strings.Text = strings(s) 1846 | Source.Comments.Text = comments(s) 1847 | 1848 | local lin = 1 1849 | s:gsub("\n", function() 1850 | lin = lin + 1 1851 | end) 1852 | 1853 | Lines.Text = "" 1854 | for i = 1, lin do 1855 | Lines.Text = Lines.Text .. i .. "\n" 1856 | end 1857 | 1858 | sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0) 1859 | end 1860 | 1861 | local highlight_logs = function(type) 1862 | end 1863 | if type == "Text" then 1864 | Source.Text = Source.Text:gsub("\13", "") 1865 | Source.Text = Source.Text:gsub("\t", " ") 1866 | local s = Source.Text 1867 | 1868 | Source.Info.Text = info(s) 1869 | 1870 | local lin = 1 1871 | s:gsub("\n", function() 1872 | lin = lin + 1 1873 | end) 1874 | 1875 | sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0) 1876 | end 1877 | end 1878 | 1879 | if console_options.source == "Lua" then 1880 | highlight_lua("Text") 1881 | Source.Changed:Connect(highlight_lua) 1882 | elseif console_options.source == "Logs" then 1883 | Lines.Visible = false 1884 | 1885 | highlight_logs("Text") 1886 | Source.Changed:Connect(highlight_logs) 1887 | end 1888 | 1889 | function console_data:Set(code) 1890 | Source.Text = tostring(code) 1891 | end 1892 | 1893 | function console_data:Get() 1894 | return Source.Text 1895 | end 1896 | 1897 | function console_data:Log(msg) 1898 | Source.Text = Source.Text .. "[*] " .. tostring(msg) .. "\n" 1899 | end 1900 | 1901 | end 1902 | 1903 | return console_data, console 1904 | end 1905 | 1906 | function tab_data:AddHorizontalAlignment() 1907 | local ha_data = {} 1908 | 1909 | local ha = Prefabs:FindFirstChild("HorizontalAlignment"):Clone() 1910 | ha.Parent = new_tab 1911 | 1912 | function ha_data:AddButton(...) 1913 | local data, object 1914 | local ret = {tab_data:AddButton(...)} 1915 | if typeof(ret[1]) == "table" then 1916 | data = ret[1] 1917 | object = ret[2] 1918 | object.Parent = ha 1919 | return data, object 1920 | else 1921 | object = ret[1] 1922 | object.Parent = ha 1923 | return object 1924 | end 1925 | end 1926 | 1927 | return ha_data, ha 1928 | end 1929 | 1930 | function tab_data:AddFolder(folder_name) -- [Folder] 1931 | local folder_data = {} 1932 | 1933 | folder_name = tostring(folder_name or "New Folder") 1934 | 1935 | local folder = Prefabs:FindFirstChild("Folder"):Clone() 1936 | local button = folder:FindFirstChild("Button") 1937 | local objects = folder:FindFirstChild("Objects") 1938 | local toggle = button:FindFirstChild("Toggle") 1939 | folder.ZIndex = folder.ZIndex + (windows * 10) 1940 | button.ZIndex = button.ZIndex + (windows * 10) 1941 | objects.ZIndex = objects.ZIndex + (windows * 10) 1942 | toggle.ZIndex = toggle.ZIndex + (windows * 10) 1943 | button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10) 1944 | 1945 | folder.Parent = new_tab 1946 | button.Text = " " .. folder_name 1947 | 1948 | spawn(function() 1949 | while true do 1950 | if button and button:GetChildren()[1] then 1951 | button:GetChildren()[1].ImageColor3 = options.main_color 1952 | end 1953 | RS.Heartbeat:Wait() 1954 | end 1955 | end) 1956 | 1957 | local function gFolderLen() 1958 | local n = 25 1959 | for i,v in next, objects:GetChildren() do 1960 | if not (v:IsA("UIListLayout")) then 1961 | n = n + v.AbsoluteSize.Y + 5 1962 | end 1963 | end 1964 | return n 1965 | end 1966 | 1967 | local open = false 1968 | button.MouseButton1Click:Connect(function() 1969 | if open then -- Close 1970 | Resize(toggle, {Rotation = 0}, options.tween_time) 1971 | objects.Visible = false 1972 | else -- Open 1973 | Resize(toggle, {Rotation = 90}, options.tween_time) 1974 | objects.Visible = true 1975 | end 1976 | 1977 | open = not open 1978 | end) 1979 | 1980 | spawn(function() 1981 | while true do 1982 | Resize(folder, {Size = UDim2.new(1, 0, 0, (open and gFolderLen() or 20))}, options.tween_time) 1983 | wait() 1984 | end 1985 | end) 1986 | 1987 | for i,v in next, tab_data do 1988 | folder_data[i] = function(...) 1989 | local data, object 1990 | local ret = {v(...)} 1991 | if typeof(ret[1]) == "table" then 1992 | data = ret[1] 1993 | object = ret[2] 1994 | object.Parent = objects 1995 | return data, object 1996 | else 1997 | object = ret[1] 1998 | object.Parent = objects 1999 | return object 2000 | end 2001 | end 2002 | end 2003 | 2004 | return folder_data, folder 2005 | end 2006 | 2007 | end 2008 | 2009 | return tab_data, new_tab 2010 | end 2011 | end 2012 | end 2013 | 2014 | do 2015 | for i, v in next, Window:GetDescendants() do 2016 | if hasprop(v, "ZIndex") then 2017 | v.ZIndex = v.ZIndex + (windows * 10) 2018 | end 2019 | end 2020 | end 2021 | 2022 | return window_data, Window 2023 | end 2024 | 2025 | --script begin 2026 | local window = library:AddWindow("SkyWars GUI thing", { 2027 | main_color = Color3.fromRGB(41, 74, 122), 2028 | min_size = Vector2.new(250, 346), 2029 | can_resize = false, 2030 | }) 2031 | 2032 | local features = window:AddTab("Features") 2033 | features:Show() 2034 | 2035 | 2036 | 2037 | features:AddButton("Remove Anticheat",function() 2038 | game:GetService("Players").LocalPlayer.PlayerGui.Extra.AntiSploitClient2:Destroy() 2039 | wait(1) 2040 | game:GetService("Players").LocalPlayer.PlayerGui.Extra.AntiSploitClient:Destroy() 2041 | end) 2042 | 2043 | 2044 | 2045 | 2046 | features:AddSwitch("Infinite Jump",function(bool) 2047 | local Player = game:GetService("Players").LocalPlayer 2048 | local Mouse = Player:GetMouse() 2049 | Mouse.KeyDown:connect(function(k) 2050 | if _G.infinjump then 2051 | if k:byte() == 32 then 2052 | Humanoid = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid") 2053 | Humanoid:ChangeState("Jumping") 2054 | wait(0.1) 2055 | Humanoid:ChangeState("Seated") 2056 | end 2057 | end 2058 | end) 2059 | 2060 | if bool == true then 2061 | _G.infinjump = true 2062 | end 2063 | 2064 | if bool == false then 2065 | _G.infinjump = false 2066 | end 2067 | end) 2068 | 2069 | features:AddSwitch("Autofarm Wins",function(chickenchickench) 2070 | coolbrothatsnice = chickenchickench 2071 | 2072 | while coolbrothatsnice == true do 2073 | local oh1 = CFrame.new(0.644594908, 264, 67.4945374) 2074 | local oh2 = game:GetService("Players") 2075 | local oh3 = oh2.LocalPlayer.Character.HumanoidRootPart 2076 | 2077 | 2078 | oh3.CFrame = oh1 2079 | wait() 2080 | end 2081 | end) 2082 | 2083 | 2084 | --waypoints 2085 | local waypoints = features:AddFolder("Waypoints") 2086 | 2087 | 2088 | 2089 | 2090 | 2091 | waypoints:AddButton("VIP Room",function() 2092 | local oh1 = CFrame.new(0.129652873, 264, -72.7414246) 2093 | local oh2 = game:GetService("Players") 2094 | local oh3 = oh2.LocalPlayer.Character.HumanoidRootPart 2095 | 2096 | 2097 | oh3.CFrame = oh1 2098 | end) 2099 | 2100 | waypoints:AddButton("Mega VIP Room",function() 2101 | local oh1 = CFrame.new(0.644594908, 264, 67.4945374) 2102 | local oh2 = game:GetService("Players") 2103 | local oh3 = oh2.LocalPlayer.Character.HumanoidRootPart 2104 | 2105 | 2106 | oh3.CFrame = oh1 2107 | end) 2108 | 2109 | 2110 | waypoints:AddButton("Center Island",function() 2111 | local oh1 = CFrame.new(11.3622465, 165.000183, -0.872686088) 2112 | local oh2 = game:GetService("Players") 2113 | local oh3 = oh2.LocalPlayer.Character.HumanoidRootPart 2114 | 2115 | 2116 | oh3.CFrame = oh1 2117 | end) 2118 | waypoints:AddButton("Spawn Lobby",function() 2119 | local oh1 = CFrame.new(-0.418475986, 268, -0.111892045) 2120 | local oh2 = game:GetService("Players") 2121 | local oh3 = oh2.LocalPlayer.Character.HumanoidRootPart 2122 | 2123 | 2124 | oh3.CFrame = oh1 2125 | end) 2126 | 2127 | local second = waypoints:AddFolder("Custom Teleports") 2128 | 2129 | second:AddButton("Save down cords",function() 2130 | here = game.Players.LocalPlayer.Character.HumanoidRootPart.Position 2131 | end) 2132 | 2133 | second:AddButton("Go to saved cords",function() 2134 | game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(here) 2135 | end) 2136 | -------------------------------------------------------------------------------- /Library: -------------------------------------------------------------------------------- 1 | local ui_options = { 2 | main_color = Color3.fromRGB(41, 74, 122), 3 | min_size = Vector2.new(400, 300), 4 | toggle_key = Enum.KeyCode.RightShift, 5 | can_resize = true, 6 | } 7 | 8 | do 9 | local imgui = game:GetService("CoreGui"):FindFirstChild("imgui") 10 | if imgui then imgui:Destroy() end 11 | end 12 | 13 | local imgui = Instance.new("ScreenGui") 14 | local Prefabs = Instance.new("Frame") 15 | local Label = Instance.new("TextLabel") 16 | local Window = Instance.new("ImageLabel") 17 | local Resizer = Instance.new("Frame") 18 | local Bar = Instance.new("Frame") 19 | local Toggle = Instance.new("ImageButton") 20 | local Base = Instance.new("ImageLabel") 21 | local Top = Instance.new("ImageLabel") 22 | local Tabs = Instance.new("Frame") 23 | local Title = Instance.new("TextLabel") 24 | local TabSelection = Instance.new("ImageLabel") 25 | local TabButtons = Instance.new("Frame") 26 | local UIListLayout = Instance.new("UIListLayout") 27 | local Frame = Instance.new("Frame") 28 | local Tab = Instance.new("Frame") 29 | local UIListLayout_2 = Instance.new("UIListLayout") 30 | local TextBox = Instance.new("TextBox") 31 | local TextBox_Roundify_4px = Instance.new("ImageLabel") 32 | local Slider = Instance.new("ImageLabel") 33 | local Title_2 = Instance.new("TextLabel") 34 | local Indicator = Instance.new("ImageLabel") 35 | local Value = Instance.new("TextLabel") 36 | local TextLabel = Instance.new("TextLabel") 37 | local TextLabel_2 = Instance.new("TextLabel") 38 | local Circle = Instance.new("ImageLabel") 39 | local UIListLayout_3 = Instance.new("UIListLayout") 40 | local Dropdown = Instance.new("TextButton") 41 | local Indicator_2 = Instance.new("ImageLabel") 42 | local Box = Instance.new("ImageButton") 43 | local Objects = Instance.new("ScrollingFrame") 44 | local UIListLayout_4 = Instance.new("UIListLayout") 45 | local TextButton_Roundify_4px = Instance.new("ImageLabel") 46 | local TabButton = Instance.new("TextButton") 47 | local TextButton_Roundify_4px_2 = Instance.new("ImageLabel") 48 | local Folder = Instance.new("ImageLabel") 49 | local Button = Instance.new("TextButton") 50 | local TextButton_Roundify_4px_3 = Instance.new("ImageLabel") 51 | local Toggle_2 = Instance.new("ImageLabel") 52 | local Objects_2 = Instance.new("Frame") 53 | local UIListLayout_5 = Instance.new("UIListLayout") 54 | local HorizontalAlignment = Instance.new("Frame") 55 | local UIListLayout_6 = Instance.new("UIListLayout") 56 | local Console = Instance.new("ImageLabel") 57 | local ScrollingFrame = Instance.new("ScrollingFrame") 58 | local Source = Instance.new("TextBox") 59 | local Comments = Instance.new("TextLabel") 60 | local Globals = Instance.new("TextLabel") 61 | local Keywords = Instance.new("TextLabel") 62 | local RemoteHighlight = Instance.new("TextLabel") 63 | local Strings = Instance.new("TextLabel") 64 | local Tokens = Instance.new("TextLabel") 65 | local Numbers = Instance.new("TextLabel") 66 | local Info = Instance.new("TextLabel") 67 | local Lines = Instance.new("TextLabel") 68 | local ColorPicker = Instance.new("ImageLabel") 69 | local Palette = Instance.new("ImageLabel") 70 | local Indicator_3 = Instance.new("ImageLabel") 71 | local Sample = Instance.new("ImageLabel") 72 | local Saturation = Instance.new("ImageLabel") 73 | local Indicator_4 = Instance.new("Frame") 74 | local Switch = Instance.new("TextButton") 75 | local TextButton_Roundify_4px_4 = Instance.new("ImageLabel") 76 | local Title_3 = Instance.new("TextLabel") 77 | local Button_2 = Instance.new("TextButton") 78 | local TextButton_Roundify_4px_5 = Instance.new("ImageLabel") 79 | local DropdownButton = Instance.new("TextButton") 80 | local Keybind = Instance.new("ImageLabel") 81 | local Title_4 = Instance.new("TextLabel") 82 | local Input = Instance.new("TextButton") 83 | local Input_Roundify_4px = Instance.new("ImageLabel") 84 | local Windows = Instance.new("Frame") 85 | 86 | imgui.Name = "imgui" 87 | imgui.Parent = game:GetService("CoreGui") or gethui() 88 | 89 | Prefabs.Name = "Prefabs" 90 | Prefabs.Parent = imgui 91 | Prefabs.BackgroundColor3 = Color3.new(1, 1, 1) 92 | Prefabs.Size = UDim2.new(0, 100, 0, 100) 93 | Prefabs.Visible = false 94 | 95 | 96 | Label.Name = "Label" 97 | Label.Parent = Prefabs 98 | Label.BackgroundColor3 = Color3.new(1, 1, 1) 99 | Label.BackgroundTransparency = 1 100 | Label.Size = UDim2.new(0, 200, 0, 20) 101 | Label.Font = Enum.Font.GothamSemibold 102 | Label.Text = "Hello, world 123" 103 | Label.TextColor3 = Color3.new(1, 1, 1) 104 | Label.TextSize = 14 105 | Label.TextXAlignment = Enum.TextXAlignment.Left 106 | 107 | Window.Name = "Window" 108 | Window.Parent = Prefabs 109 | Window.Active = true 110 | Window.BackgroundColor3 = Color3.new(1, 1, 1) 111 | Window.BackgroundTransparency = 1 112 | Window.ClipsDescendants = true 113 | Window.Position = UDim2.new(0, 20, 0, 20) 114 | Window.Selectable = true 115 | Window.Size = UDim2.new(0, 200, 0, 200) 116 | Window.Image = "rbxassetid://2851926732" 117 | Window.ImageColor3 = Color3.new(0.0823529, 0.0862745, 0.0901961) 118 | Window.ScaleType = Enum.ScaleType.Slice 119 | Window.SliceCenter = Rect.new(12, 12, 12, 12) 120 | 121 | Resizer.Name = "Resizer" 122 | Resizer.Parent = Window 123 | Resizer.Active = true 124 | Resizer.BackgroundColor3 = Color3.new(1, 1, 1) 125 | Resizer.BackgroundTransparency = 1 126 | Resizer.BorderSizePixel = 0 127 | Resizer.Position = UDim2.new(1, -20, 1, -20) 128 | Resizer.Size = UDim2.new(0, 20, 0, 20) 129 | 130 | Bar.Name = "Bar" 131 | Bar.Parent = Window 132 | Bar.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 133 | Bar.BorderSizePixel = 0 134 | Bar.Position = UDim2.new(0, 0, 0, 5) 135 | Bar.Size = UDim2.new(1, 0, 0, 15) 136 | 137 | Toggle.Name = "Toggle" 138 | Toggle.Parent = Bar 139 | Toggle.BackgroundColor3 = Color3.new(1, 1, 1) 140 | Toggle.BackgroundTransparency = 1 141 | Toggle.Position = UDim2.new(0, 5, 0, -2) 142 | Toggle.Rotation = 90 143 | Toggle.Size = UDim2.new(0, 20, 0, 20) 144 | Toggle.ZIndex = 2 145 | Toggle.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541" 146 | 147 | Base.Name = "Base" 148 | Base.Parent = Bar 149 | Base.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 150 | Base.BorderSizePixel = 0 151 | Base.Position = UDim2.new(0, 0, 0.800000012, 0) 152 | Base.Size = UDim2.new(1, 0, 0, 10) 153 | Base.Image = "rbxassetid://2851926732" 154 | Base.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 155 | Base.ScaleType = Enum.ScaleType.Slice 156 | Base.SliceCenter = Rect.new(12, 12, 12, 12) 157 | 158 | Top.Name = "Top" 159 | Top.Parent = Bar 160 | Top.BackgroundColor3 = Color3.new(1, 1, 1) 161 | Top.BackgroundTransparency = 1 162 | Top.Position = UDim2.new(0, 0, 0, -5) 163 | Top.Size = UDim2.new(1, 0, 0, 10) 164 | Top.Image = "rbxassetid://2851926732" 165 | Top.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 166 | Top.ScaleType = Enum.ScaleType.Slice 167 | Top.SliceCenter = Rect.new(12, 12, 12, 12) 168 | 169 | Tabs.Name = "Tabs" 170 | Tabs.Parent = Window 171 | Tabs.BackgroundColor3 = Color3.new(1, 1, 1) 172 | Tabs.BackgroundTransparency = 1 173 | Tabs.Position = UDim2.new(0, 15, 0, 60) 174 | Tabs.Size = UDim2.new(1, -30, 1, -60) 175 | 176 | Title.Name = "Title" 177 | Title.Parent = Window 178 | Title.BackgroundColor3 = Color3.new(1, 1, 1) 179 | Title.BackgroundTransparency = 1 180 | Title.Position = UDim2.new(0, 30, 0, 3) 181 | Title.Size = UDim2.new(0, 200, 0, 20) 182 | Title.Font = Enum.Font.GothamBold 183 | Title.Text = "Gamer Time" 184 | Title.TextColor3 = Color3.new(1, 1, 1) 185 | Title.TextSize = 14 186 | Title.TextXAlignment = Enum.TextXAlignment.Left 187 | 188 | TabSelection.Name = "TabSelection" 189 | TabSelection.Parent = Window 190 | TabSelection.BackgroundColor3 = Color3.new(1, 1, 1) 191 | TabSelection.BackgroundTransparency = 1 192 | TabSelection.Position = UDim2.new(0, 15, 0, 30) 193 | TabSelection.Size = UDim2.new(1, -30, 0, 25) 194 | TabSelection.Visible = false 195 | TabSelection.Image = "rbxassetid://2851929490" 196 | TabSelection.ImageColor3 = Color3.new(0.145098, 0.14902, 0.156863) 197 | TabSelection.ScaleType = Enum.ScaleType.Slice 198 | TabSelection.SliceCenter = Rect.new(4, 4, 4, 4) 199 | 200 | TabButtons.Name = "TabButtons" 201 | TabButtons.Parent = TabSelection 202 | TabButtons.BackgroundColor3 = Color3.new(1, 1, 1) 203 | TabButtons.BackgroundTransparency = 1 204 | TabButtons.Size = UDim2.new(1, 0, 1, 0) 205 | 206 | UIListLayout.Parent = TabButtons 207 | UIListLayout.FillDirection = Enum.FillDirection.Horizontal 208 | UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder 209 | UIListLayout.Padding = UDim.new(0, 2) 210 | 211 | Frame.Parent = TabSelection 212 | Frame.BackgroundColor3 = Color3.new(0.12549, 0.227451, 0.372549) 213 | Frame.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) 214 | Frame.BorderSizePixel = 0 215 | Frame.Position = UDim2.new(0, 0, 1, 0) 216 | Frame.Size = UDim2.new(1, 0, 0, 2) 217 | 218 | Tab.Name = "Tab" 219 | Tab.Parent = Prefabs 220 | Tab.BackgroundColor3 = Color3.new(1, 1, 1) 221 | Tab.BackgroundTransparency = 1 222 | Tab.Size = UDim2.new(1, 0, 1, 0) 223 | Tab.Visible = false 224 | 225 | UIListLayout_2.Parent = Tab 226 | UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder 227 | UIListLayout_2.Padding = UDim.new(0, 5) 228 | 229 | TextBox.Parent = Prefabs 230 | TextBox.BackgroundColor3 = Color3.new(1, 1, 1) 231 | TextBox.BackgroundTransparency = 1 232 | TextBox.BorderSizePixel = 0 233 | TextBox.Size = UDim2.new(1, 0, 0, 20) 234 | TextBox.ZIndex = 2 235 | TextBox.Font = Enum.Font.GothamSemibold 236 | TextBox.PlaceholderColor3 = Color3.new(0.698039, 0.698039, 0.698039) 237 | TextBox.PlaceholderText = "Input Text" 238 | TextBox.Text = "" 239 | TextBox.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 240 | TextBox.TextSize = 14 241 | 242 | TextBox_Roundify_4px.Name = "TextBox_Roundify_4px" 243 | TextBox_Roundify_4px.Parent = TextBox 244 | TextBox_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1) 245 | TextBox_Roundify_4px.BackgroundTransparency = 1 246 | TextBox_Roundify_4px.Size = UDim2.new(1, 0, 1, 0) 247 | TextBox_Roundify_4px.Image = "rbxassetid://2851929490" 248 | TextBox_Roundify_4px.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 249 | TextBox_Roundify_4px.ScaleType = Enum.ScaleType.Slice 250 | TextBox_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4) 251 | 252 | Slider.Name = "Slider" 253 | Slider.Parent = Prefabs 254 | Slider.BackgroundColor3 = Color3.new(1, 1, 1) 255 | Slider.BackgroundTransparency = 1 256 | Slider.Position = UDim2.new(0, 0, 0.178571433, 0) 257 | Slider.Size = UDim2.new(1, 0, 0, 20) 258 | Slider.Image = "rbxassetid://2851929490" 259 | Slider.ImageColor3 = Color3.new(0.145098, 0.14902, 0.156863) 260 | Slider.ScaleType = Enum.ScaleType.Slice 261 | Slider.SliceCenter = Rect.new(4, 4, 4, 4) 262 | 263 | Title_2.Name = "Title" 264 | Title_2.Parent = Slider 265 | Title_2.BackgroundColor3 = Color3.new(1, 1, 1) 266 | Title_2.BackgroundTransparency = 1 267 | Title_2.Position = UDim2.new(0.5, 0, 0.5, -10) 268 | Title_2.Size = UDim2.new(0, 0, 0, 20) 269 | Title_2.ZIndex = 2 270 | Title_2.Font = Enum.Font.GothamBold 271 | Title_2.Text = "Slider" 272 | Title_2.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 273 | Title_2.TextSize = 14 274 | 275 | Indicator.Name = "Indicator" 276 | Indicator.Parent = Slider 277 | Indicator.BackgroundColor3 = Color3.new(1, 1, 1) 278 | Indicator.BackgroundTransparency = 1 279 | Indicator.Size = UDim2.new(0, 0, 0, 20) 280 | Indicator.Image = "rbxassetid://2851929490" 281 | Indicator.ImageColor3 = Color3.new(0.254902, 0.262745, 0.278431) 282 | Indicator.ScaleType = Enum.ScaleType.Slice 283 | Indicator.SliceCenter = Rect.new(4, 4, 4, 4) 284 | 285 | Value.Name = "Value" 286 | Value.Parent = Slider 287 | Value.BackgroundColor3 = Color3.new(1, 1, 1) 288 | Value.BackgroundTransparency = 1 289 | Value.Position = UDim2.new(1, -55, 0.5, -10) 290 | Value.Size = UDim2.new(0, 50, 0, 20) 291 | Value.Font = Enum.Font.GothamBold 292 | Value.Text = "0%" 293 | Value.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 294 | Value.TextSize = 14 295 | 296 | TextLabel.Parent = Slider 297 | TextLabel.BackgroundColor3 = Color3.new(1, 1, 1) 298 | TextLabel.BackgroundTransparency = 1 299 | TextLabel.Position = UDim2.new(1, -20, -0.75, 0) 300 | TextLabel.Size = UDim2.new(0, 26, 0, 50) 301 | TextLabel.Font = Enum.Font.GothamBold 302 | TextLabel.Text = "]" 303 | TextLabel.TextColor3 = Color3.new(0.627451, 0.627451, 0.627451) 304 | TextLabel.TextSize = 14 305 | 306 | TextLabel_2.Parent = Slider 307 | TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1) 308 | TextLabel_2.BackgroundTransparency = 1 309 | TextLabel_2.Position = UDim2.new(1, -65, -0.75, 0) 310 | TextLabel_2.Size = UDim2.new(0, 26, 0, 50) 311 | TextLabel_2.Font = Enum.Font.GothamBold 312 | TextLabel_2.Text = "[" 313 | TextLabel_2.TextColor3 = Color3.new(0.627451, 0.627451, 0.627451) 314 | TextLabel_2.TextSize = 14 315 | 316 | Circle.Name = "Circle" 317 | Circle.Parent = Prefabs 318 | Circle.BackgroundColor3 = Color3.new(1, 1, 1) 319 | Circle.BackgroundTransparency = 1 320 | Circle.Image = "rbxassetid://266543268" 321 | Circle.ImageTransparency = 0.5 322 | 323 | UIListLayout_3.Parent = Prefabs 324 | UIListLayout_3.FillDirection = Enum.FillDirection.Horizontal 325 | UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder 326 | UIListLayout_3.Padding = UDim.new(0, 20) 327 | 328 | Dropdown.Name = "Dropdown" 329 | Dropdown.Parent = Prefabs 330 | Dropdown.BackgroundColor3 = Color3.new(1, 1, 1) 331 | Dropdown.BackgroundTransparency = 1 332 | Dropdown.BorderSizePixel = 0 333 | Dropdown.Position = UDim2.new(-0.055555556, 0, 0.0833333284, 0) 334 | Dropdown.Size = UDim2.new(0, 200, 0, 20) 335 | Dropdown.ZIndex = 2 336 | Dropdown.Font = Enum.Font.GothamBold 337 | Dropdown.Text = " Dropdown" 338 | Dropdown.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 339 | Dropdown.TextSize = 14 340 | Dropdown.TextXAlignment = Enum.TextXAlignment.Left 341 | 342 | Indicator_2.Name = "Indicator" 343 | Indicator_2.Parent = Dropdown 344 | Indicator_2.BackgroundColor3 = Color3.new(1, 1, 1) 345 | Indicator_2.BackgroundTransparency = 1 346 | Indicator_2.Position = UDim2.new(0.899999976, -10, 0.100000001, 0) 347 | Indicator_2.Rotation = -90 348 | Indicator_2.Size = UDim2.new(0, 15, 0, 15) 349 | Indicator_2.ZIndex = 2 350 | Indicator_2.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4744658743" 351 | 352 | Box.Name = "Box" 353 | Box.Parent = Dropdown 354 | Box.BackgroundColor3 = Color3.new(1, 1, 1) 355 | Box.BackgroundTransparency = 1 356 | Box.Position = UDim2.new(0, 0, 0, 25) 357 | Box.Size = UDim2.new(1, 0, 0, 150) 358 | Box.ZIndex = 3 359 | Box.Image = "rbxassetid://2851929490" 360 | Box.ImageColor3 = Color3.new(0.129412, 0.133333, 0.141176) 361 | Box.ScaleType = Enum.ScaleType.Slice 362 | Box.SliceCenter = Rect.new(4, 4, 4, 4) 363 | 364 | Objects.Name = "Objects" 365 | Objects.Parent = Box 366 | Objects.BackgroundColor3 = Color3.new(1, 1, 1) 367 | Objects.BackgroundTransparency = 1 368 | Objects.BorderSizePixel = 0 369 | Objects.Size = UDim2.new(1, 0, 1, 0) 370 | Objects.ZIndex = 3 371 | Objects.CanvasSize = UDim2.new(0, 0, 0, 0) 372 | Objects.ScrollBarThickness = 8 373 | 374 | UIListLayout_4.Parent = Objects 375 | UIListLayout_4.SortOrder = Enum.SortOrder.LayoutOrder 376 | 377 | TextButton_Roundify_4px.Name = "TextButton_Roundify_4px" 378 | TextButton_Roundify_4px.Parent = Dropdown 379 | TextButton_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1) 380 | TextButton_Roundify_4px.BackgroundTransparency = 1 381 | TextButton_Roundify_4px.Size = UDim2.new(1, 0, 1, 0) 382 | TextButton_Roundify_4px.Image = "rbxassetid://2851929490" 383 | TextButton_Roundify_4px.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 384 | TextButton_Roundify_4px.ScaleType = Enum.ScaleType.Slice 385 | TextButton_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4) 386 | 387 | TabButton.Name = "TabButton" 388 | TabButton.Parent = Prefabs 389 | TabButton.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 390 | TabButton.BackgroundTransparency = 1 391 | TabButton.BorderSizePixel = 0 392 | TabButton.Position = UDim2.new(0.185185179, 0, 0, 0) 393 | TabButton.Size = UDim2.new(0, 71, 0, 20) 394 | TabButton.ZIndex = 2 395 | TabButton.Font = Enum.Font.GothamSemibold 396 | TabButton.Text = "Test tab" 397 | TabButton.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 398 | TabButton.TextSize = 14 399 | 400 | TextButton_Roundify_4px_2.Name = "TextButton_Roundify_4px" 401 | TextButton_Roundify_4px_2.Parent = TabButton 402 | TextButton_Roundify_4px_2.BackgroundColor3 = Color3.new(1, 1, 1) 403 | TextButton_Roundify_4px_2.BackgroundTransparency = 1 404 | TextButton_Roundify_4px_2.Size = UDim2.new(1, 0, 1, 0) 405 | TextButton_Roundify_4px_2.Image = "rbxassetid://2851929490" 406 | TextButton_Roundify_4px_2.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 407 | TextButton_Roundify_4px_2.ScaleType = Enum.ScaleType.Slice 408 | TextButton_Roundify_4px_2.SliceCenter = Rect.new(4, 4, 4, 4) 409 | 410 | Folder.Name = "Folder" 411 | Folder.Parent = Prefabs 412 | Folder.BackgroundColor3 = Color3.new(1, 1, 1) 413 | Folder.BackgroundTransparency = 1 414 | Folder.Position = UDim2.new(0, 0, 0, 50) 415 | Folder.Size = UDim2.new(1, 0, 0, 20) 416 | Folder.Image = "rbxassetid://2851929490" 417 | Folder.ImageColor3 = Color3.new(0.0823529, 0.0862745, 0.0901961) 418 | Folder.ScaleType = Enum.ScaleType.Slice 419 | Folder.SliceCenter = Rect.new(4, 4, 4, 4) 420 | 421 | Button.Name = "Button" 422 | Button.Parent = Folder 423 | Button.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 424 | Button.BackgroundTransparency = 1 425 | Button.BorderSizePixel = 0 426 | Button.Size = UDim2.new(1, 0, 0, 20) 427 | Button.ZIndex = 2 428 | Button.Font = Enum.Font.GothamSemibold 429 | Button.Text = " Folder" 430 | Button.TextColor3 = Color3.new(1, 1, 1) 431 | Button.TextSize = 14 432 | Button.TextXAlignment = Enum.TextXAlignment.Left 433 | 434 | TextButton_Roundify_4px_3.Name = "TextButton_Roundify_4px" 435 | TextButton_Roundify_4px_3.Parent = Button 436 | TextButton_Roundify_4px_3.BackgroundColor3 = Color3.new(1, 1, 1) 437 | TextButton_Roundify_4px_3.BackgroundTransparency = 1 438 | TextButton_Roundify_4px_3.Size = UDim2.new(1, 0, 1, 0) 439 | TextButton_Roundify_4px_3.Image = "rbxassetid://2851929490" 440 | TextButton_Roundify_4px_3.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 441 | TextButton_Roundify_4px_3.ScaleType = Enum.ScaleType.Slice 442 | TextButton_Roundify_4px_3.SliceCenter = Rect.new(4, 4, 4, 4) 443 | 444 | Toggle_2.Name = "Toggle" 445 | Toggle_2.Parent = Button 446 | Toggle_2.BackgroundColor3 = Color3.new(1, 1, 1) 447 | Toggle_2.BackgroundTransparency = 1 448 | Toggle_2.Position = UDim2.new(0, 5, 0, 0) 449 | Toggle_2.Size = UDim2.new(0, 20, 0, 20) 450 | Toggle_2.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541" 451 | 452 | Objects_2.Name = "Objects" 453 | Objects_2.Parent = Folder 454 | Objects_2.BackgroundColor3 = Color3.new(1, 1, 1) 455 | Objects_2.BackgroundTransparency = 1 456 | Objects_2.Position = UDim2.new(0, 10, 0, 25) 457 | Objects_2.Size = UDim2.new(1, -10, 1, -25) 458 | Objects_2.Visible = false 459 | 460 | UIListLayout_5.Parent = Objects_2 461 | UIListLayout_5.SortOrder = Enum.SortOrder.LayoutOrder 462 | UIListLayout_5.Padding = UDim.new(0, 5) 463 | 464 | HorizontalAlignment.Name = "HorizontalAlignment" 465 | HorizontalAlignment.Parent = Prefabs 466 | HorizontalAlignment.BackgroundColor3 = Color3.new(1, 1, 1) 467 | HorizontalAlignment.BackgroundTransparency = 1 468 | HorizontalAlignment.Size = UDim2.new(1, 0, 0, 20) 469 | 470 | UIListLayout_6.Parent = HorizontalAlignment 471 | UIListLayout_6.FillDirection = Enum.FillDirection.Horizontal 472 | UIListLayout_6.SortOrder = Enum.SortOrder.LayoutOrder 473 | UIListLayout_6.Padding = UDim.new(0, 5) 474 | 475 | Console.Name = "Console" 476 | Console.Parent = Prefabs 477 | Console.BackgroundColor3 = Color3.new(1, 1, 1) 478 | Console.BackgroundTransparency = 1 479 | Console.Size = UDim2.new(1, 0, 0, 200) 480 | Console.Image = "rbxassetid://2851928141" 481 | Console.ImageColor3 = Color3.new(0.129412, 0.133333, 0.141176) 482 | Console.ScaleType = Enum.ScaleType.Slice 483 | Console.SliceCenter = Rect.new(8, 8, 8, 8) 484 | 485 | ScrollingFrame.Parent = Console 486 | ScrollingFrame.BackgroundColor3 = Color3.new(1, 1, 1) 487 | ScrollingFrame.BackgroundTransparency = 1 488 | ScrollingFrame.BorderSizePixel = 0 489 | ScrollingFrame.Size = UDim2.new(1, 0, 1, 1) 490 | ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0) 491 | ScrollingFrame.ScrollBarThickness = 4 492 | 493 | Source.Name = "Source" 494 | Source.Parent = ScrollingFrame 495 | Source.BackgroundColor3 = Color3.new(1, 1, 1) 496 | Source.BackgroundTransparency = 1 497 | Source.Position = UDim2.new(0, 40, 0, 0) 498 | Source.Size = UDim2.new(1, -40, 0, 10000) 499 | Source.ZIndex = 3 500 | Source.ClearTextOnFocus = false 501 | Source.Font = Enum.Font.Code 502 | Source.MultiLine = true 503 | Source.PlaceholderColor3 = Color3.new(0.8, 0.8, 0.8) 504 | Source.Text = "" 505 | Source.TextColor3 = Color3.new(1, 1, 1) 506 | Source.TextSize = 15 507 | Source.TextStrokeColor3 = Color3.new(1, 1, 1) 508 | Source.TextWrapped = true 509 | Source.TextXAlignment = Enum.TextXAlignment.Left 510 | Source.TextYAlignment = Enum.TextYAlignment.Top 511 | 512 | Comments.Name = "Comments" 513 | Comments.Parent = Source 514 | Comments.BackgroundColor3 = Color3.new(1, 1, 1) 515 | Comments.BackgroundTransparency = 1 516 | Comments.Size = UDim2.new(1, 0, 1, 0) 517 | Comments.ZIndex = 5 518 | Comments.Font = Enum.Font.Code 519 | Comments.Text = "" 520 | Comments.TextColor3 = Color3.new(0.231373, 0.784314, 0.231373) 521 | Comments.TextSize = 15 522 | Comments.TextXAlignment = Enum.TextXAlignment.Left 523 | Comments.TextYAlignment = Enum.TextYAlignment.Top 524 | 525 | Globals.Name = "Globals" 526 | Globals.Parent = Source 527 | Globals.BackgroundColor3 = Color3.new(1, 1, 1) 528 | Globals.BackgroundTransparency = 1 529 | Globals.Size = UDim2.new(1, 0, 1, 0) 530 | Globals.ZIndex = 5 531 | Globals.Font = Enum.Font.Code 532 | Globals.Text = "" 533 | Globals.TextColor3 = Color3.new(0.517647, 0.839216, 0.968628) 534 | Globals.TextSize = 15 535 | Globals.TextXAlignment = Enum.TextXAlignment.Left 536 | Globals.TextYAlignment = Enum.TextYAlignment.Top 537 | 538 | Keywords.Name = "Keywords" 539 | Keywords.Parent = Source 540 | Keywords.BackgroundColor3 = Color3.new(1, 1, 1) 541 | Keywords.BackgroundTransparency = 1 542 | Keywords.Size = UDim2.new(1, 0, 1, 0) 543 | Keywords.ZIndex = 5 544 | Keywords.Font = Enum.Font.Code 545 | Keywords.Text = "" 546 | Keywords.TextColor3 = Color3.new(0.972549, 0.427451, 0.486275) 547 | Keywords.TextSize = 15 548 | Keywords.TextXAlignment = Enum.TextXAlignment.Left 549 | Keywords.TextYAlignment = Enum.TextYAlignment.Top 550 | 551 | RemoteHighlight.Name = "RemoteHighlight" 552 | RemoteHighlight.Parent = Source 553 | RemoteHighlight.BackgroundColor3 = Color3.new(1, 1, 1) 554 | RemoteHighlight.BackgroundTransparency = 1 555 | RemoteHighlight.Size = UDim2.new(1, 0, 1, 0) 556 | RemoteHighlight.ZIndex = 5 557 | RemoteHighlight.Font = Enum.Font.Code 558 | RemoteHighlight.Text = "" 559 | RemoteHighlight.TextColor3 = Color3.new(0, 0.568627, 1) 560 | RemoteHighlight.TextSize = 15 561 | RemoteHighlight.TextXAlignment = Enum.TextXAlignment.Left 562 | RemoteHighlight.TextYAlignment = Enum.TextYAlignment.Top 563 | 564 | Strings.Name = "Strings" 565 | Strings.Parent = Source 566 | Strings.BackgroundColor3 = Color3.new(1, 1, 1) 567 | Strings.BackgroundTransparency = 1 568 | Strings.Size = UDim2.new(1, 0, 1, 0) 569 | Strings.ZIndex = 5 570 | Strings.Font = Enum.Font.Code 571 | Strings.Text = "" 572 | Strings.TextColor3 = Color3.new(0.678431, 0.945098, 0.584314) 573 | Strings.TextSize = 15 574 | Strings.TextXAlignment = Enum.TextXAlignment.Left 575 | Strings.TextYAlignment = Enum.TextYAlignment.Top 576 | 577 | Tokens.Name = "Tokens" 578 | Tokens.Parent = Source 579 | Tokens.BackgroundColor3 = Color3.new(1, 1, 1) 580 | Tokens.BackgroundTransparency = 1 581 | Tokens.Size = UDim2.new(1, 0, 1, 0) 582 | Tokens.ZIndex = 5 583 | Tokens.Font = Enum.Font.Code 584 | Tokens.Text = "" 585 | Tokens.TextColor3 = Color3.new(1, 1, 1) 586 | Tokens.TextSize = 15 587 | Tokens.TextXAlignment = Enum.TextXAlignment.Left 588 | Tokens.TextYAlignment = Enum.TextYAlignment.Top 589 | 590 | Numbers.Name = "Numbers" 591 | Numbers.Parent = Source 592 | Numbers.BackgroundColor3 = Color3.new(1, 1, 1) 593 | Numbers.BackgroundTransparency = 1 594 | Numbers.Size = UDim2.new(1, 0, 1, 0) 595 | Numbers.ZIndex = 4 596 | Numbers.Font = Enum.Font.Code 597 | Numbers.Text = "" 598 | Numbers.TextColor3 = Color3.new(1, 0.776471, 0) 599 | Numbers.TextSize = 15 600 | Numbers.TextXAlignment = Enum.TextXAlignment.Left 601 | Numbers.TextYAlignment = Enum.TextYAlignment.Top 602 | 603 | Info.Name = "Info" 604 | Info.Parent = Source 605 | Info.BackgroundColor3 = Color3.new(1, 1, 1) 606 | Info.BackgroundTransparency = 1 607 | Info.Size = UDim2.new(1, 0, 1, 0) 608 | Info.ZIndex = 5 609 | Info.Font = Enum.Font.Code 610 | Info.Text = "" 611 | Info.TextColor3 = Color3.new(0, 0.635294, 1) 612 | Info.TextSize = 15 613 | Info.TextXAlignment = Enum.TextXAlignment.Left 614 | Info.TextYAlignment = Enum.TextYAlignment.Top 615 | 616 | Lines.Name = "Lines" 617 | Lines.Parent = ScrollingFrame 618 | Lines.BackgroundColor3 = Color3.new(1, 1, 1) 619 | Lines.BackgroundTransparency = 1 620 | Lines.BorderSizePixel = 0 621 | Lines.Size = UDim2.new(0, 40, 0, 10000) 622 | Lines.ZIndex = 4 623 | Lines.Font = Enum.Font.Code 624 | Lines.Text = "1\n" 625 | Lines.TextColor3 = Color3.new(1, 1, 1) 626 | Lines.TextSize = 15 627 | Lines.TextWrapped = true 628 | Lines.TextYAlignment = Enum.TextYAlignment.Top 629 | 630 | ColorPicker.Name = "ColorPicker" 631 | ColorPicker.Parent = Prefabs 632 | ColorPicker.BackgroundColor3 = Color3.new(1, 1, 1) 633 | ColorPicker.BackgroundTransparency = 1 634 | ColorPicker.Size = UDim2.new(0, 180, 0, 110) 635 | ColorPicker.Image = "rbxassetid://2851929490" 636 | ColorPicker.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 637 | ColorPicker.ScaleType = Enum.ScaleType.Slice 638 | ColorPicker.SliceCenter = Rect.new(4, 4, 4, 4) 639 | 640 | Palette.Name = "Palette" 641 | Palette.Parent = ColorPicker 642 | Palette.BackgroundColor3 = Color3.new(1, 1, 1) 643 | Palette.BackgroundTransparency = 1 644 | Palette.Position = UDim2.new(0.0500000007, 0, 0.0500000007, 0) 645 | Palette.Size = UDim2.new(0, 100, 0, 100) 646 | Palette.Image = "rbxassetid://698052001" 647 | Palette.ScaleType = Enum.ScaleType.Slice 648 | Palette.SliceCenter = Rect.new(4, 4, 4, 4) 649 | 650 | Indicator_3.Name = "Indicator" 651 | Indicator_3.Parent = Palette 652 | Indicator_3.BackgroundColor3 = Color3.new(1, 1, 1) 653 | Indicator_3.BackgroundTransparency = 1 654 | Indicator_3.Size = UDim2.new(0, 5, 0, 5) 655 | Indicator_3.ZIndex = 2 656 | Indicator_3.Image = "rbxassetid://2851926732" 657 | Indicator_3.ImageColor3 = Color3.new(0, 0, 0) 658 | Indicator_3.ScaleType = Enum.ScaleType.Slice 659 | Indicator_3.SliceCenter = Rect.new(12, 12, 12, 12) 660 | 661 | Sample.Name = "Sample" 662 | Sample.Parent = ColorPicker 663 | Sample.BackgroundColor3 = Color3.new(1, 1, 1) 664 | Sample.BackgroundTransparency = 1 665 | Sample.Position = UDim2.new(0.800000012, 0, 0.0500000007, 0) 666 | Sample.Size = UDim2.new(0, 25, 0, 25) 667 | Sample.Image = "rbxassetid://2851929490" 668 | Sample.ScaleType = Enum.ScaleType.Slice 669 | Sample.SliceCenter = Rect.new(4, 4, 4, 4) 670 | 671 | Saturation.Name = "Saturation" 672 | Saturation.Parent = ColorPicker 673 | Saturation.BackgroundColor3 = Color3.new(1, 1, 1) 674 | Saturation.Position = UDim2.new(0.649999976, 0, 0.0500000007, 0) 675 | Saturation.Size = UDim2.new(0, 15, 0, 100) 676 | Saturation.Image = "rbxassetid://3641079629" 677 | 678 | Indicator_4.Name = "Indicator" 679 | Indicator_4.Parent = Saturation 680 | Indicator_4.BackgroundColor3 = Color3.new(1, 1, 1) 681 | Indicator_4.BorderSizePixel = 0 682 | Indicator_4.Size = UDim2.new(0, 20, 0, 2) 683 | Indicator_4.ZIndex = 2 684 | 685 | Switch.Name = "Switch" 686 | Switch.Parent = Prefabs 687 | Switch.BackgroundColor3 = Color3.new(1, 1, 1) 688 | Switch.BackgroundTransparency = 1 689 | Switch.BorderSizePixel = 0 690 | Switch.Position = UDim2.new(0.229411766, 0, 0.20714286, 0) 691 | Switch.Size = UDim2.new(0, 20, 0, 20) 692 | Switch.ZIndex = 2 693 | Switch.Font = Enum.Font.SourceSans 694 | Switch.Text = "" 695 | Switch.TextColor3 = Color3.new(1, 1, 1) 696 | Switch.TextSize = 18 697 | 698 | TextButton_Roundify_4px_4.Name = "TextButton_Roundify_4px" 699 | TextButton_Roundify_4px_4.Parent = Switch 700 | TextButton_Roundify_4px_4.BackgroundColor3 = Color3.new(1, 1, 1) 701 | TextButton_Roundify_4px_4.BackgroundTransparency = 1 702 | TextButton_Roundify_4px_4.Size = UDim2.new(1, 0, 1, 0) 703 | TextButton_Roundify_4px_4.Image = "rbxassetid://2851929490" 704 | TextButton_Roundify_4px_4.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 705 | TextButton_Roundify_4px_4.ImageTransparency = 0.5 706 | TextButton_Roundify_4px_4.ScaleType = Enum.ScaleType.Slice 707 | TextButton_Roundify_4px_4.SliceCenter = Rect.new(4, 4, 4, 4) 708 | 709 | Title_3.Name = "Title" 710 | Title_3.Parent = Switch 711 | Title_3.BackgroundColor3 = Color3.new(1, 1, 1) 712 | Title_3.BackgroundTransparency = 1 713 | Title_3.Position = UDim2.new(1.20000005, 0, 0, 0) 714 | Title_3.Size = UDim2.new(0, 20, 0, 20) 715 | Title_3.Font = Enum.Font.GothamSemibold 716 | Title_3.Text = "Switch" 717 | Title_3.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 718 | Title_3.TextSize = 14 719 | Title_3.TextXAlignment = Enum.TextXAlignment.Left 720 | 721 | Button_2.Name = "Button" 722 | Button_2.Parent = Prefabs 723 | Button_2.BackgroundColor3 = Color3.new(0.160784, 0.290196, 0.478431) 724 | Button_2.BackgroundTransparency = 1 725 | Button_2.BorderSizePixel = 0 726 | Button_2.Size = UDim2.new(0, 91, 0, 20) 727 | Button_2.ZIndex = 2 728 | Button_2.Font = Enum.Font.GothamSemibold 729 | Button_2.TextColor3 = Color3.new(1, 1, 1) 730 | Button_2.TextSize = 14 731 | 732 | TextButton_Roundify_4px_5.Name = "TextButton_Roundify_4px" 733 | TextButton_Roundify_4px_5.Parent = Button_2 734 | TextButton_Roundify_4px_5.BackgroundColor3 = Color3.new(1, 1, 1) 735 | TextButton_Roundify_4px_5.BackgroundTransparency = 1 736 | TextButton_Roundify_4px_5.Size = UDim2.new(1, 0, 1, 0) 737 | TextButton_Roundify_4px_5.Image = "rbxassetid://2851929490" 738 | TextButton_Roundify_4px_5.ImageColor3 = Color3.new(0.160784, 0.290196, 0.478431) 739 | TextButton_Roundify_4px_5.ScaleType = Enum.ScaleType.Slice 740 | TextButton_Roundify_4px_5.SliceCenter = Rect.new(4, 4, 4, 4) 741 | 742 | DropdownButton.Name = "DropdownButton" 743 | DropdownButton.Parent = Prefabs 744 | DropdownButton.BackgroundColor3 = Color3.new(0.129412, 0.133333, 0.141176) 745 | DropdownButton.BorderSizePixel = 0 746 | DropdownButton.Size = UDim2.new(1, 0, 0, 20) 747 | DropdownButton.ZIndex = 3 748 | DropdownButton.Font = Enum.Font.GothamBold 749 | DropdownButton.Text = " Button" 750 | DropdownButton.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 751 | DropdownButton.TextSize = 14 752 | DropdownButton.TextXAlignment = Enum.TextXAlignment.Left 753 | 754 | Keybind.Name = "Keybind" 755 | Keybind.Parent = Prefabs 756 | Keybind.BackgroundColor3 = Color3.new(1, 1, 1) 757 | Keybind.BackgroundTransparency = 1 758 | Keybind.Size = UDim2.new(0, 200, 0, 20) 759 | Keybind.Image = "rbxassetid://2851929490" 760 | Keybind.ImageColor3 = Color3.new(0.203922, 0.207843, 0.219608) 761 | Keybind.ScaleType = Enum.ScaleType.Slice 762 | Keybind.SliceCenter = Rect.new(4, 4, 4, 4) 763 | 764 | Title_4.Name = "Title" 765 | Title_4.Parent = Keybind 766 | Title_4.BackgroundColor3 = Color3.new(1, 1, 1) 767 | Title_4.BackgroundTransparency = 1 768 | Title_4.Size = UDim2.new(0, 0, 1, 0) 769 | Title_4.Font = Enum.Font.GothamBold 770 | Title_4.Text = "Keybind" 771 | Title_4.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 772 | Title_4.TextSize = 14 773 | Title_4.TextXAlignment = Enum.TextXAlignment.Left 774 | 775 | Input.Name = "Input" 776 | Input.Parent = Keybind 777 | Input.BackgroundColor3 = Color3.new(1, 1, 1) 778 | Input.BackgroundTransparency = 1 779 | Input.BorderSizePixel = 0 780 | Input.Position = UDim2.new(1, -85, 0, 2) 781 | Input.Size = UDim2.new(0, 80, 1, -4) 782 | Input.ZIndex = 2 783 | Input.Font = Enum.Font.GothamSemibold 784 | Input.Text = "RShift" 785 | Input.TextColor3 = Color3.new(0.784314, 0.784314, 0.784314) 786 | Input.TextSize = 12 787 | Input.TextWrapped = true 788 | 789 | Input_Roundify_4px.Name = "Input_Roundify_4px" 790 | Input_Roundify_4px.Parent = Input 791 | Input_Roundify_4px.BackgroundColor3 = Color3.new(1, 1, 1) 792 | Input_Roundify_4px.BackgroundTransparency = 1 793 | Input_Roundify_4px.Size = UDim2.new(1, 0, 1, 0) 794 | Input_Roundify_4px.Image = "rbxassetid://2851929490" 795 | Input_Roundify_4px.ImageColor3 = Color3.new(0.290196, 0.294118, 0.313726) 796 | Input_Roundify_4px.ScaleType = Enum.ScaleType.Slice 797 | Input_Roundify_4px.SliceCenter = Rect.new(4, 4, 4, 4) 798 | 799 | Windows.Name = "Windows" 800 | Windows.Parent = imgui 801 | Windows.BackgroundColor3 = Color3.new(1, 1, 1) 802 | Windows.BackgroundTransparency = 1 803 | Windows.Position = UDim2.new(0, 20, 0, 20) 804 | Windows.Size = UDim2.new(1, 20, 1, -20) 805 | 806 | --[[ Script ]]-- 807 | script.Parent = imgui 808 | 809 | local UIS = game:GetService("UserInputService") 810 | local TweenService = game:GetService("TweenService") 811 | local RS = game:GetService("RunService") 812 | local ps = game:GetService("Players") 813 | 814 | local p = ps.LocalPlayer 815 | local mouse = p:GetMouse() 816 | 817 | local Prefabs = script.Parent:WaitForChild("Prefabs") 818 | local Windows = script.Parent:FindFirstChild("Windows") 819 | 820 | local checks = { 821 | ["binding"] = false, 822 | } 823 | 824 | UIS.InputBegan:Connect(function(input, gameProcessed) 825 | if input.KeyCode == ((typeof(ui_options.toggle_key) == "EnumItem") and ui_options.toggle_key or Enum.KeyCode.RightShift) then 826 | if script.Parent then 827 | if not checks.binding then 828 | script.Parent.Enabled = not script.Parent.Enabled 829 | end 830 | end 831 | end 832 | end) 833 | 834 | local function Resize(part, new, _delay) 835 | _delay = _delay or 0.5 836 | local tweenInfo = TweenInfo.new(_delay, Enum.EasingStyle.Quad, Enum.EasingDirection.Out) 837 | local tween = TweenService:Create(part, tweenInfo, new) 838 | tween:Play() 839 | end 840 | 841 | local function rgbtohsv(r, g, b) -- idk who made this function, but thanks 842 | r, g, b = r / 255, g / 255, b / 255 843 | local max, min = math.max(r, g, b), math.min(r, g, b) 844 | local h, s, v 845 | v = max 846 | 847 | local d = max - min 848 | if max == 0 then 849 | s = 0 850 | else 851 | s = d / max 852 | end 853 | 854 | if max == min then 855 | h = 0 856 | else 857 | if max == r then 858 | h = (g - b) / d 859 | if g < b then 860 | h = h + 6 861 | end 862 | elseif max == g then 863 | h = (b - r) / d + 2 864 | elseif max == b then 865 | h = (r - g) / d + 4 866 | end 867 | h = h / 6 868 | end 869 | 870 | return h, s, v 871 | end 872 | 873 | local function hasprop(object, prop) 874 | local a, b = pcall(function() 875 | return object[tostring(prop)] 876 | end) 877 | if a then 878 | return b 879 | end 880 | end 881 | 882 | local function gNameLen(obj) 883 | return obj.TextBounds.X + 15 884 | end 885 | 886 | local function gMouse() 887 | return Vector2.new(UIS:GetMouseLocation().X + 1, UIS:GetMouseLocation().Y - 35) 888 | end 889 | 890 | local function ripple(button, x, y) 891 | spawn(function() 892 | button.ClipsDescendants = true 893 | 894 | local circle = Prefabs:FindFirstChild("Circle"):Clone() 895 | 896 | circle.Parent = button 897 | circle.ZIndex = 1000 898 | 899 | local new_x = x - circle.AbsolutePosition.X 900 | local new_y = y - circle.AbsolutePosition.Y 901 | circle.Position = UDim2.new(0, new_x, 0, new_y) 902 | 903 | local size = 0 904 | if button.AbsoluteSize.X > button.AbsoluteSize.Y then 905 | size = button.AbsoluteSize.X * 1.5 906 | elseif button.AbsoluteSize.X < button.AbsoluteSize.Y then 907 | size = button.AbsoluteSize.Y * 1.5 908 | elseif button.AbsoluteSize.X == button.AbsoluteSize.Y then 909 | size = button.AbsoluteSize.X * 1.5 910 | end 911 | 912 | circle:TweenSizeAndPosition(UDim2.new(0, size, 0, size), UDim2.new(0.5, -size / 2, 0.5, -size / 2), "Out", "Quad", 0.5, false, nil) 913 | Resize(circle, {ImageTransparency = 1}, 0.5) 914 | 915 | wait(0.5) 916 | circle:Destroy() 917 | end) 918 | end 919 | 920 | local windows = 0 921 | local library = {} 922 | 923 | local function format_windows() 924 | local ull = Prefabs:FindFirstChild("UIListLayout"):Clone() 925 | ull.Parent = Windows 926 | local data = {} 927 | 928 | for i,v in next, Windows:GetChildren() do 929 | if not (v:IsA("UIListLayout")) then 930 | data[v] = v.AbsolutePosition 931 | end 932 | end 933 | 934 | ull:Destroy() 935 | 936 | for i,v in next, data do 937 | i.Position = UDim2.new(0, v.X, 0, v.Y) 938 | end 939 | end 940 | 941 | function library:FormatWindows() 942 | format_windows() 943 | end 944 | 945 | function library:AddWindow(title, options) 946 | windows = windows + 1 947 | local dropdown_open = false 948 | title = tostring(title or "New Window") 949 | options = (typeof(options) == "table") and options or ui_options 950 | options.tween_time = 0.1 951 | 952 | local Window = Prefabs:FindFirstChild("Window"):Clone() 953 | Window.Parent = Windows 954 | Window:FindFirstChild("Title").Text = title 955 | Window.Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y) 956 | Window.ZIndex = Window.ZIndex + (windows * 10) 957 | 958 | do -- Altering Window Color 959 | local Title = Window:FindFirstChild("Title") 960 | local Bar = Window:FindFirstChild("Bar") 961 | local Base = Bar:FindFirstChild("Base") 962 | local Top = Bar:FindFirstChild("Top") 963 | local SplitFrame = Window:FindFirstChild("TabSelection"):FindFirstChild("Frame") 964 | local Toggle = Bar:FindFirstChild("Toggle") 965 | 966 | spawn(function() 967 | while true do 968 | Bar.BackgroundColor3 = options.main_color 969 | Base.BackgroundColor3 = options.main_color 970 | Base.ImageColor3 = options.main_color 971 | Top.ImageColor3 = options.main_color 972 | SplitFrame.BackgroundColor3 = options.main_color 973 | 974 | RS.Heartbeat:Wait() 975 | end 976 | end) 977 | 978 | end 979 | 980 | local Resizer = Window:WaitForChild("Resizer") 981 | 982 | local window_data = {} 983 | Window.Draggable = true 984 | 985 | do -- Resize Window 986 | local oldIcon = mouse.Icon 987 | local Entered = false 988 | Resizer.MouseEnter:Connect(function() 989 | Window.Draggable = false 990 | if options.can_resize then 991 | oldIcon = mouse.Icon 992 | -- mouse.Icon = "http://www.roblox.com/asset?id=4745131330" 993 | end 994 | Entered = true 995 | end) 996 | 997 | Resizer.MouseLeave:Connect(function() 998 | Entered = false 999 | if options.can_resize then 1000 | mouse.Icon = oldIcon 1001 | end 1002 | Window.Draggable = true 1003 | end) 1004 | 1005 | local Held = false 1006 | UIS.InputBegan:Connect(function(inputObject) 1007 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1008 | Held = true 1009 | 1010 | spawn(function() -- Loop check 1011 | if Entered and Resizer.Active and options.can_resize then 1012 | while Held and Resizer.Active do 1013 | 1014 | local mouse_location = gMouse() 1015 | local x = mouse_location.X - Window.AbsolutePosition.X 1016 | local y = mouse_location.Y - Window.AbsolutePosition.Y 1017 | 1018 | -- 1019 | if x >= options.min_size.X and y >= options.min_size.Y then 1020 | Resize(Window, {Size = UDim2.new(0, x, 0, y)}, options.tween_time) 1021 | elseif x >= options.min_size.X then 1022 | Resize(Window, {Size = UDim2.new(0, x, 0, options.min_size.Y)}, options.tween_time) 1023 | elseif y >= options.min_size.Y then 1024 | Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, y)}, options.tween_time) 1025 | else 1026 | Resize(Window, {Size = UDim2.new(0, options.min_size.X, 0, options.min_size.Y)}, options.tween_time) 1027 | end 1028 | 1029 | RS.Heartbeat:Wait() 1030 | end 1031 | end 1032 | end) 1033 | end 1034 | end) 1035 | UIS.InputEnded:Connect(function(inputObject) 1036 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1037 | Held = false 1038 | end 1039 | end) 1040 | end 1041 | 1042 | do -- [Open / Close] Window 1043 | local open_close = Window:FindFirstChild("Bar"):FindFirstChild("Toggle") 1044 | local open = true 1045 | local canopen = true 1046 | 1047 | local oldwindowdata = {} 1048 | local oldy = Window.AbsoluteSize.Y 1049 | open_close.MouseButton1Click:Connect(function() 1050 | if canopen then 1051 | canopen = false 1052 | 1053 | if open then 1054 | -- Close 1055 | 1056 | oldwindowdata = {} 1057 | for i,v in next, Window:FindFirstChild("Tabs"):GetChildren() do 1058 | oldwindowdata[v] = v.Visible 1059 | v.Visible = false 1060 | end 1061 | 1062 | Resizer.Active = false 1063 | 1064 | oldy = Window.AbsoluteSize.Y 1065 | Resize(open_close, {Rotation = 0}, options.tween_time) 1066 | Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, 26)}, options.tween_time) 1067 | open_close.Parent:FindFirstChild("Base").Transparency = 1 1068 | 1069 | else 1070 | -- Open 1071 | 1072 | for i,v in next, oldwindowdata do 1073 | i.Visible = v 1074 | end 1075 | 1076 | Resizer.Active = true 1077 | 1078 | Resize(open_close, {Rotation = 90}, options.tween_time) 1079 | Resize(Window, {Size = UDim2.new(0, Window.AbsoluteSize.X, 0, oldy)}, options.tween_time) 1080 | open_close.Parent:FindFirstChild("Base").Transparency = 0 1081 | 1082 | end 1083 | 1084 | open = not open 1085 | wait(options.tween_time) 1086 | canopen = true 1087 | 1088 | end 1089 | end) 1090 | end 1091 | 1092 | do -- UI Elements 1093 | local tabs = Window:FindFirstChild("Tabs") 1094 | local tab_selection = Window:FindFirstChild("TabSelection") 1095 | local tab_buttons = tab_selection:FindFirstChild("TabButtons") 1096 | 1097 | do -- Add Tab 1098 | function window_data:AddTab(tab_name) 1099 | local tab_data = {} 1100 | tab_name = tostring(tab_name or "New Tab") 1101 | tab_selection.Visible = true 1102 | 1103 | local new_button = Prefabs:FindFirstChild("TabButton"):Clone() 1104 | new_button.Parent = tab_buttons 1105 | new_button.Text = tab_name 1106 | new_button.Size = UDim2.new(0, gNameLen(new_button), 0, 20) 1107 | new_button.ZIndex = new_button.ZIndex + (windows * 10) 1108 | new_button:GetChildren()[1].ZIndex = new_button:GetChildren()[1].ZIndex + (windows * 10) 1109 | 1110 | local new_tab = Prefabs:FindFirstChild("Tab"):Clone() 1111 | new_tab.Parent = tabs 1112 | new_tab.ZIndex = new_tab.ZIndex + (windows * 10) 1113 | 1114 | local function show() 1115 | if dropdown_open then return end 1116 | for i, v in next, tab_buttons:GetChildren() do 1117 | if not (v:IsA("UIListLayout")) then 1118 | v:GetChildren()[1].ImageColor3 = Color3.fromRGB(52, 53, 56) 1119 | Resize(v, {Size = UDim2.new(0, v.AbsoluteSize.X, 0, 20)}, options.tween_time) 1120 | end 1121 | end 1122 | for i, v in next, tabs:GetChildren() do 1123 | v.Visible = false 1124 | end 1125 | 1126 | Resize(new_button, {Size = UDim2.new(0, new_button.AbsoluteSize.X, 0, 25)}, options.tween_time) 1127 | new_button:GetChildren()[1].ImageColor3 = Color3.fromRGB(73, 75, 79) 1128 | new_tab.Visible = true 1129 | end 1130 | 1131 | new_button.MouseButton1Click:Connect(function() 1132 | show() 1133 | end) 1134 | 1135 | function tab_data:Show() 1136 | show() 1137 | end 1138 | 1139 | do -- Tab Elements 1140 | 1141 | function tab_data:AddLabel(label_text) -- [Label] 1142 | label_text = tostring(label_text or "New Label") 1143 | 1144 | local label = Prefabs:FindFirstChild("Label"):Clone() 1145 | 1146 | label.Parent = new_tab 1147 | label.Text = label_text 1148 | label.Size = UDim2.new(0, gNameLen(label), 0, 20) 1149 | label.ZIndex = label.ZIndex + (windows * 10) 1150 | 1151 | return label 1152 | end 1153 | 1154 | function tab_data:AddButton(button_text, callback) -- [Button] 1155 | button_text = tostring(button_text or "New Button") 1156 | callback = typeof(callback) == "function" and callback or function()end 1157 | 1158 | local button = Prefabs:FindFirstChild("Button"):Clone() 1159 | 1160 | button.Parent = new_tab 1161 | button.Text = button_text 1162 | button.Size = UDim2.new(0, gNameLen(button), 0, 20) 1163 | button.ZIndex = button.ZIndex + (windows * 10) 1164 | button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10) 1165 | 1166 | spawn(function() 1167 | while true do 1168 | if button and button:GetChildren()[1] then 1169 | button:GetChildren()[1].ImageColor3 = options.main_color 1170 | end 1171 | RS.Heartbeat:Wait() 1172 | end 1173 | end) 1174 | 1175 | button.MouseButton1Click:Connect(function() 1176 | ripple(button, mouse.X, mouse.Y) 1177 | pcall(callback) 1178 | end) 1179 | 1180 | return button 1181 | end 1182 | 1183 | function tab_data:AddSwitch(switch_text, callback) -- [Switch] 1184 | local switch_data = {} 1185 | 1186 | switch_text = tostring(switch_text or "New Switch") 1187 | callback = typeof(callback) == "function" and callback or function()end 1188 | 1189 | local switch = Prefabs:FindFirstChild("Switch"):Clone() 1190 | 1191 | switch.Parent = new_tab 1192 | switch:FindFirstChild("Title").Text = switch_text 1193 | 1194 | switch:FindFirstChild("Title").ZIndex = switch:FindFirstChild("Title").ZIndex + (windows * 10) 1195 | switch.ZIndex = switch.ZIndex + (windows * 10) 1196 | switch:GetChildren()[1].ZIndex = switch:GetChildren()[1].ZIndex + (windows * 10) 1197 | 1198 | spawn(function() 1199 | while true do 1200 | if switch and switch:GetChildren()[1] then 1201 | switch:GetChildren()[1].ImageColor3 = options.main_color 1202 | end 1203 | RS.Heartbeat:Wait() 1204 | end 1205 | end) 1206 | 1207 | local toggled = false 1208 | switch.MouseButton1Click:Connect(function() 1209 | toggled = not toggled 1210 | switch.Text = toggled and utf8.char(10003) or "" 1211 | pcall(callback, toggled) 1212 | end) 1213 | 1214 | function switch_data:Set(bool) 1215 | toggled = (typeof(bool) == "boolean") and bool or false 1216 | switch.Text = toggled and utf8.char(10003) or "" 1217 | pcall(callback,toggled) 1218 | end 1219 | 1220 | return switch_data, switch 1221 | end 1222 | 1223 | function tab_data:AddTextBox(textbox_text, callback, textbox_options) 1224 | textbox_text = tostring(textbox_text or "New TextBox") 1225 | callback = typeof(callback) == "function" and callback or function()end 1226 | textbox_options = typeof(textbox_options) == "table" and textbox_options or {["clear"] = true} 1227 | textbox_options = { 1228 | ["clear"] = ((textbox_options.clear) == true) 1229 | } 1230 | 1231 | local textbox = Prefabs:FindFirstChild("TextBox"):Clone() 1232 | 1233 | textbox.Parent = new_tab 1234 | textbox.PlaceholderText = textbox_text 1235 | textbox.ZIndex = textbox.ZIndex + (windows * 10) 1236 | textbox:GetChildren()[1].ZIndex = textbox:GetChildren()[1].ZIndex + (windows * 10) 1237 | 1238 | textbox.FocusLost:Connect(function(ep) 1239 | if ep then 1240 | if #textbox.Text > 0 then 1241 | pcall(callback, textbox.Text) 1242 | if textbox_options.clear then 1243 | textbox.Text = "" 1244 | end 1245 | end 1246 | end 1247 | end) 1248 | 1249 | return textbox 1250 | end 1251 | 1252 | function tab_data:AddSlider(slider_text, callback, slider_options) 1253 | local slider_data = {} 1254 | 1255 | slider_text = tostring(slider_text or "New Slider") 1256 | callback = typeof(callback) == "function" and callback or function()end 1257 | slider_options = typeof(slider_options) == "table" and slider_options or {} 1258 | slider_options = { 1259 | ["min"] = slider_options.min or 0, 1260 | ["max"] = slider_options.max or 100, 1261 | ["readonly"] = slider_options.readonly or false, 1262 | } 1263 | 1264 | local slider = Prefabs:FindFirstChild("Slider"):Clone() 1265 | 1266 | slider.Parent = new_tab 1267 | slider.ZIndex = slider.ZIndex + (windows * 10) 1268 | 1269 | local title = slider:FindFirstChild("Title") 1270 | local indicator = slider:FindFirstChild("Indicator") 1271 | local value = slider:FindFirstChild("Value") 1272 | title.ZIndex = title.ZIndex + (windows * 10) 1273 | indicator.ZIndex = indicator.ZIndex + (windows * 10) 1274 | value.ZIndex = value.ZIndex + (windows * 10) 1275 | 1276 | title.Text = slider_text 1277 | 1278 | do -- Slider Math 1279 | local Entered = false 1280 | slider.MouseEnter:Connect(function() 1281 | Entered = true 1282 | Window.Draggable = false 1283 | end) 1284 | slider.MouseLeave:Connect(function() 1285 | Entered = false 1286 | Window.Draggable = true 1287 | end) 1288 | 1289 | local Held = false 1290 | UIS.InputBegan:Connect(function(inputObject) 1291 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1292 | Held = true 1293 | 1294 | spawn(function() -- Loop check 1295 | if Entered and not slider_options.readonly then 1296 | while Held and (not dropdown_open) do 1297 | local mouse_location = gMouse() 1298 | local x = (slider.AbsoluteSize.X - (slider.AbsoluteSize.X - ((mouse_location.X - slider.AbsolutePosition.X)) + 1)) / slider.AbsoluteSize.X 1299 | 1300 | local min = 0 1301 | local max = 1 1302 | 1303 | local size = min 1304 | if x >= min and x <= max then 1305 | size = x 1306 | elseif x < min then 1307 | size = min 1308 | elseif x > max then 1309 | size = max 1310 | end 1311 | 1312 | Resize(indicator, {Size = UDim2.new(size or min, 0, 0, 20)}, options.tween_time) 1313 | local p = math.floor((size or min) * 100) 1314 | 1315 | local maxv = slider_options.max 1316 | local minv = slider_options.min 1317 | local diff = maxv - minv 1318 | 1319 | local sel_value = math.floor(((diff / 100) * p) + minv) 1320 | 1321 | value.Text = tostring(sel_value) 1322 | pcall(callback, sel_value) 1323 | 1324 | RS.Heartbeat:Wait() 1325 | end 1326 | end 1327 | end) 1328 | end 1329 | end) 1330 | UIS.InputEnded:Connect(function(inputObject) 1331 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1332 | Held = false 1333 | end 1334 | end) 1335 | 1336 | function slider_data:Set(new_value) 1337 | new_value = tonumber(new_value) or 0 1338 | new_value = (((new_value >= 0 and new_value <= 100) and new_value) / 100) 1339 | 1340 | Resize(indicator, {Size = UDim2.new(new_value or 0, 0, 0, 20)}, options.tween_time) 1341 | local p = math.floor((new_value or 0) * 100) 1342 | 1343 | local maxv = slider_options.max 1344 | local minv = slider_options.min 1345 | local diff = maxv - minv 1346 | 1347 | local sel_value = math.floor(((diff / 100) * p) + minv) 1348 | 1349 | value.Text = tostring(sel_value) 1350 | pcall(callback, sel_value) 1351 | end 1352 | 1353 | slider_data:Set(slider_options["min"]) 1354 | end 1355 | 1356 | return slider_data, slider 1357 | end 1358 | 1359 | function tab_data:AddKeybind(keybind_name, callback, keybind_options) 1360 | local keybind_data = {} 1361 | 1362 | keybind_name = tostring(keybind_name or "New Keybind") 1363 | callback = typeof(callback) == "function" and callback or function()end 1364 | keybind_options = typeof(keybind_options) == "table" and keybind_options or {} 1365 | keybind_options = { 1366 | ["standard"] = keybind_options.standard or Enum.KeyCode.RightShift, 1367 | } 1368 | 1369 | local keybind = Prefabs:FindFirstChild("Keybind"):Clone() 1370 | local input = keybind:FindFirstChild("Input") 1371 | local title = keybind:FindFirstChild("Title") 1372 | keybind.ZIndex = keybind.ZIndex + (windows * 10) 1373 | input.ZIndex = input.ZIndex + (windows * 10) 1374 | input:GetChildren()[1].ZIndex = input:GetChildren()[1].ZIndex + (windows * 10) 1375 | title.ZIndex = title.ZIndex + (windows * 10) 1376 | 1377 | keybind.Parent = new_tab 1378 | title.Text = " " .. keybind_name 1379 | keybind.Size = UDim2.new(0, gNameLen(title) + 80, 0, 20) 1380 | 1381 | local shortkeys = { -- thanks to stroketon for helping me out with this 1382 | RightControl = 'RightCtrl', 1383 | LeftControl = 'LeftCtrl', 1384 | LeftShift = 'LShift', 1385 | RightShift = 'RShift', 1386 | MouseButton1 = "Mouse1", 1387 | MouseButton2 = "Mouse2" 1388 | } 1389 | 1390 | local keybind = keybind_options.standard 1391 | 1392 | function keybind_data:SetKeybind(Keybind) 1393 | local key = shortkeys[Keybind.Name] or Keybind.Name 1394 | input.Text = key 1395 | keybind = Keybind 1396 | end 1397 | 1398 | UIS.InputBegan:Connect(function(a, b) 1399 | if checks.binding then 1400 | spawn(function() 1401 | wait() 1402 | checks.binding = false 1403 | end) 1404 | return 1405 | end 1406 | if a.KeyCode == keybind and not b then 1407 | pcall(callback, keybind) 1408 | end 1409 | end) 1410 | 1411 | keybind_data:SetKeybind(keybind_options.standard) 1412 | 1413 | input.MouseButton1Click:Connect(function() 1414 | if checks.binding then return end 1415 | input.Text = "..." 1416 | checks.binding = true 1417 | local a, b = UIS.InputBegan:Wait() 1418 | keybind_data:SetKeybind(a.KeyCode) 1419 | end) 1420 | 1421 | return keybind_data, keybind 1422 | end 1423 | 1424 | function tab_data:AddDropdown(dropdown_name, callback) 1425 | local dropdown_data = {} 1426 | dropdown_name = tostring(dropdown_name or "New Dropdown") 1427 | callback = typeof(callback) == "function" and callback or function()end 1428 | 1429 | local dropdown = Prefabs:FindFirstChild("Dropdown"):Clone() 1430 | local box = dropdown:FindFirstChild("Box") 1431 | local objects = box:FindFirstChild("Objects") 1432 | local indicator = dropdown:FindFirstChild("Indicator") 1433 | dropdown.ZIndex = dropdown.ZIndex + (windows * 10) 1434 | box.ZIndex = box.ZIndex + (windows * 10) 1435 | objects.ZIndex = objects.ZIndex + (windows * 10) 1436 | indicator.ZIndex = indicator.ZIndex + (windows * 10) 1437 | dropdown:GetChildren()[3].ZIndex = dropdown:GetChildren()[3].ZIndex + (windows * 10) 1438 | 1439 | dropdown.Parent = new_tab 1440 | dropdown.Text = " " .. dropdown_name 1441 | box.Size = UDim2.new(1, 0, 0, 0) 1442 | 1443 | local open = false 1444 | dropdown.MouseButton1Click:Connect(function() 1445 | open = not open 1446 | 1447 | local len = (#objects:GetChildren() - 1) * 20 1448 | if #objects:GetChildren() - 1 >= 10 then 1449 | len = 10 * 20 1450 | objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0) 1451 | end 1452 | 1453 | if open then -- Open 1454 | if dropdown_open then return end 1455 | dropdown_open = true 1456 | Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time) 1457 | Resize(indicator, {Rotation = 90}, options.tween_time) 1458 | else -- Close 1459 | dropdown_open = false 1460 | Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time) 1461 | Resize(indicator, {Rotation = -90}, options.tween_time) 1462 | end 1463 | 1464 | end) 1465 | 1466 | function dropdown_data:Add(n) 1467 | local object_data = {} 1468 | n = tostring(n or "New Object") 1469 | 1470 | local object = Prefabs:FindFirstChild("DropdownButton"):Clone() 1471 | 1472 | object.Parent = objects 1473 | object.Text = n 1474 | object.ZIndex = object.ZIndex + (windows * 10) 1475 | 1476 | object.MouseEnter:Connect(function() 1477 | object.BackgroundColor3 = options.main_color 1478 | end) 1479 | object.MouseLeave:Connect(function() 1480 | object.BackgroundColor3 = Color3.fromRGB(33, 34, 36) 1481 | end) 1482 | 1483 | if open then 1484 | local len = (#objects:GetChildren() - 1) * 20 1485 | if #objects:GetChildren() - 1 >= 10 then 1486 | len = 10 * 20 1487 | objects.CanvasSize = UDim2.new(0, 0, (#objects:GetChildren() - 1) * 0.1, 0) 1488 | end 1489 | Resize(box, {Size = UDim2.new(1, 0, 0, len)}, options.tween_time) 1490 | end 1491 | 1492 | object.MouseButton1Click:Connect(function() 1493 | if dropdown_open then 1494 | dropdown.Text = " [ " .. n .. " ]" 1495 | dropdown_open = false 1496 | open = false 1497 | Resize(box, {Size = UDim2.new(1, 0, 0, 0)}, options.tween_time) 1498 | Resize(indicator, {Rotation = -90}, options.tween_time) 1499 | pcall(callback, n) 1500 | end 1501 | end) 1502 | 1503 | function object_data:Remove() 1504 | object:Destroy() 1505 | end 1506 | 1507 | return object, object_data 1508 | end 1509 | 1510 | return dropdown_data, dropdown 1511 | end 1512 | 1513 | function tab_data:AddColorPicker(callback) 1514 | local color_picker_data = {} 1515 | callback = typeof(callback) == "function" and callback or function()end 1516 | 1517 | local color_picker = Prefabs:FindFirstChild("ColorPicker"):Clone() 1518 | 1519 | color_picker.Parent = new_tab 1520 | color_picker.ZIndex = color_picker.ZIndex + (windows * 10) 1521 | 1522 | local palette = color_picker:FindFirstChild("Palette") 1523 | local sample = color_picker:FindFirstChild("Sample") 1524 | local saturation = color_picker:FindFirstChild("Saturation") 1525 | palette.ZIndex = palette.ZIndex + (windows * 10) 1526 | sample.ZIndex = sample.ZIndex + (windows * 10) 1527 | saturation.ZIndex = saturation.ZIndex + (windows * 10) 1528 | 1529 | do -- Color Picker Math 1530 | local h = 0 1531 | local s = 1 1532 | local v = 1 1533 | 1534 | local function update() 1535 | local color = Color3.fromHSV(h, s, v) 1536 | sample.ImageColor3 = color 1537 | saturation.ImageColor3 = Color3.fromHSV(h, 1, 1) 1538 | pcall(callback, color) 1539 | end 1540 | 1541 | do 1542 | local color = Color3.fromHSV(h, s, v) 1543 | sample.ImageColor3 = color 1544 | saturation.ImageColor3 = Color3.fromHSV(h, 1, 1) 1545 | end 1546 | 1547 | local Entered1, Entered2 = false, false 1548 | palette.MouseEnter:Connect(function() 1549 | Window.Draggable = false 1550 | Entered1 = true 1551 | end) 1552 | palette.MouseLeave:Connect(function() 1553 | Window.Draggable = true 1554 | Entered1 = false 1555 | end) 1556 | saturation.MouseEnter:Connect(function() 1557 | Window.Draggable = false 1558 | Entered2 = true 1559 | end) 1560 | saturation.MouseLeave:Connect(function() 1561 | Window.Draggable = true 1562 | Entered2 = false 1563 | end) 1564 | 1565 | local palette_indicator = palette:FindFirstChild("Indicator") 1566 | local saturation_indicator = saturation:FindFirstChild("Indicator") 1567 | palette_indicator.ZIndex = palette_indicator.ZIndex + (windows * 10) 1568 | saturation_indicator.ZIndex = saturation_indicator.ZIndex + (windows * 10) 1569 | 1570 | local Held = false 1571 | UIS.InputBegan:Connect(function(inputObject) 1572 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1573 | Held = true 1574 | 1575 | spawn(function() -- Loop check 1576 | while Held and Entered1 and (not dropdown_open) do -- Palette 1577 | local mouse_location = gMouse() 1578 | 1579 | local x = ((palette.AbsoluteSize.X - (mouse_location.X - palette.AbsolutePosition.X)) + 1) 1580 | local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5) 1581 | 1582 | local color = Color3.fromHSV(x / 100, y / 100, 0) 1583 | h = x / 100 1584 | s = y / 100 1585 | 1586 | Resize(palette_indicator, {Position = UDim2.new(0, math.abs(x - 100) - (palette_indicator.AbsoluteSize.X / 2), 0, math.abs(y - 100) - (palette_indicator.AbsoluteSize.Y / 2))}, options.tween_time) 1587 | 1588 | update() 1589 | RS.Heartbeat:Wait() 1590 | end 1591 | 1592 | while Held and Entered2 and (not dropdown_open) do -- Saturation 1593 | local mouse_location = gMouse() 1594 | local y = ((palette.AbsoluteSize.Y - (mouse_location.Y - palette.AbsolutePosition.Y)) + 1.5) 1595 | v = y / 100 1596 | 1597 | Resize(saturation_indicator, {Position = UDim2.new(0, 0, 0, math.abs(y - 100))}, options.tween_time) 1598 | 1599 | update() 1600 | RS.Heartbeat:Wait() 1601 | end 1602 | end) 1603 | end 1604 | end) 1605 | UIS.InputEnded:Connect(function(inputObject) 1606 | if inputObject.UserInputType == Enum.UserInputType.MouseButton1 then 1607 | Held = false 1608 | end 1609 | end) 1610 | 1611 | function color_picker_data:Set(color) 1612 | color = typeof(color) == "Color3" and color or Color3.new(1, 1, 1) 1613 | local h2, s2, v2 = rgbtohsv(color.r * 255, color.g * 255, color.b * 255) 1614 | sample.ImageColor3 = color 1615 | saturation.ImageColor3 = Color3.fromHSV(h2, 1, 1) 1616 | pcall(callback, color) 1617 | end 1618 | end 1619 | 1620 | return color_picker_data, color_picker 1621 | end 1622 | 1623 | function tab_data:AddConsole(console_options) 1624 | local console_data = {} 1625 | 1626 | console_options = typeof(console_options) == "table" and console_options or {["readonly"] = true,["full"] = false,} 1627 | console_options = { 1628 | ["y"] = tonumber(console_options.y) or 200, 1629 | ["source"] = console_options.source or "Logs", 1630 | ["readonly"] = ((console_options.readonly) == true), 1631 | ["full"] = ((console_options.full) == true), 1632 | } 1633 | 1634 | local console = Prefabs:FindFirstChild("Console"):Clone() 1635 | 1636 | console.Parent = new_tab 1637 | console.ZIndex = console.ZIndex + (windows * 10) 1638 | console.Size = UDim2.new(1, 0, console_options.full and 1 or 0, console_options.y) 1639 | 1640 | local sf = console:GetChildren()[1] 1641 | local Source = sf:FindFirstChild("Source") 1642 | local Lines = sf:FindFirstChild("Lines") 1643 | Source.ZIndex = Source.ZIndex + (windows * 10) 1644 | Lines.ZIndex = Lines.ZIndex + (windows * 10) 1645 | 1646 | Source.TextEditable = not console_options.readonly 1647 | 1648 | do -- Syntax Zindex 1649 | for i,v in next, Source:GetChildren() do 1650 | v.ZIndex = v.ZIndex + (windows * 10) + 1 1651 | end 1652 | end 1653 | Source.Comments.ZIndex = Source.Comments.ZIndex + 1 1654 | 1655 | do -- Highlighting (thanks to whoever made this) 1656 | local lua_keywords = {"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "goto", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"} 1657 | local global_env = {"getrawmetatable", "newcclosure", "islclosure", "setclipboard", "game", "workspace", "script", "math", "string", "table", "print", "wait", "BrickColor", "Color3", "next", "pairs", "ipairs", "select", "unpack", "Instance", "Vector2", "Vector3", "CFrame", "Ray", "UDim2", "Enum", "assert", "error", "warn", "tick", "loadstring", "_G", "shared", "getfenv", "setfenv", "newproxy", "setmetatable", "getmetatable", "os", "debug", "pcall", "ypcall", "xpcall", "rawequal", "rawset", "rawget", "tonumber", "tostring", "type", "typeof", "_VERSION", "coroutine", "delay", "require", "spawn", "LoadLibrary", "settings", "stats", "time", "UserSettings", "version", "Axes", "ColorSequence", "Faces", "ColorSequenceKeypoint", "NumberRange", "NumberSequence", "NumberSequenceKeypoint", "gcinfo", "elapsedTime", "collectgarbage", "PhysicalProperties", "Rect", "Region3", "Region3int16", "UDim", "Vector2int16", "Vector3int16", "load", "fire", "Fire"} 1658 | 1659 | local Highlight = function(string, keywords) 1660 | local K = {} 1661 | local S = string 1662 | local Token = 1663 | { 1664 | ["="] = true, 1665 | ["."] = true, 1666 | [","] = true, 1667 | ["("] = true, 1668 | [")"] = true, 1669 | ["["] = true, 1670 | ["]"] = true, 1671 | ["{"] = true, 1672 | ["}"] = true, 1673 | [":"] = true, 1674 | ["*"] = true, 1675 | ["/"] = true, 1676 | ["+"] = true, 1677 | ["-"] = true, 1678 | ["%"] = true, 1679 | [";"] = true, 1680 | ["~"] = true 1681 | } 1682 | for i, v in pairs(keywords) do 1683 | K[v] = true 1684 | end 1685 | S = S:gsub(".", function(c) 1686 | if Token[c] ~= nil then 1687 | return "\32" 1688 | else 1689 | return c 1690 | end 1691 | end) 1692 | S = S:gsub("%S+", function(c) 1693 | if K[c] ~= nil then 1694 | return c 1695 | else 1696 | return (" "):rep(#c) 1697 | end 1698 | end) 1699 | 1700 | return S 1701 | end 1702 | 1703 | local hTokens = function(string) 1704 | local Token = 1705 | { 1706 | ["="] = true, 1707 | ["."] = true, 1708 | [","] = true, 1709 | ["("] = true, 1710 | [")"] = true, 1711 | ["["] = true, 1712 | ["]"] = true, 1713 | ["{"] = true, 1714 | ["}"] = true, 1715 | [":"] = true, 1716 | ["*"] = true, 1717 | ["/"] = true, 1718 | ["+"] = true, 1719 | ["-"] = true, 1720 | ["%"] = true, 1721 | [";"] = true, 1722 | ["~"] = true 1723 | } 1724 | local A = "" 1725 | string:gsub(".", function(c) 1726 | if Token[c] ~= nil then 1727 | A = A .. c 1728 | elseif c == "\n" then 1729 | A = A .. "\n" 1730 | elseif c == "\t" then 1731 | A = A .. "\t" 1732 | else 1733 | A = A .. "\32" 1734 | end 1735 | end) 1736 | 1737 | return A 1738 | end 1739 | 1740 | local strings = function(string) 1741 | local highlight = "" 1742 | local quote = false 1743 | string:gsub(".", function(c) 1744 | if quote == false and c == "\34" then 1745 | quote = true 1746 | elseif quote == true and c == "\34" then 1747 | quote = false 1748 | end 1749 | if quote == false and c == "\34" then 1750 | highlight = highlight .. "\34" 1751 | elseif c == "\n" then 1752 | highlight = highlight .. "\n" 1753 | elseif c == "\t" then 1754 | highlight = highlight .. "\t" 1755 | elseif quote == true then 1756 | highlight = highlight .. c 1757 | elseif quote == false then 1758 | highlight = highlight .. "\32" 1759 | end 1760 | end) 1761 | 1762 | return highlight 1763 | end 1764 | 1765 | local info = function(string) 1766 | local highlight = "" 1767 | local quote = false 1768 | string:gsub(".", function(c) 1769 | if quote == false and c == "[" then 1770 | quote = true 1771 | elseif quote == true and c == "]" then 1772 | quote = false 1773 | end 1774 | if quote == false and c == "\]" then 1775 | highlight = highlight .. "\]" 1776 | elseif c == "\n" then 1777 | highlight = highlight .. "\n" 1778 | elseif c == "\t" then 1779 | highlight = highlight .. "\t" 1780 | elseif quote == true then 1781 | highlight = highlight .. c 1782 | elseif quote == false then 1783 | highlight = highlight .. "\32" 1784 | end 1785 | end) 1786 | 1787 | return highlight 1788 | end 1789 | 1790 | local comments = function(string) 1791 | local ret = "" 1792 | string:gsub("[^\r\n]+", function(c) 1793 | local comm = false 1794 | local i = 0 1795 | c:gsub(".", function(n) 1796 | i = i + 1 1797 | if c:sub(i, i + 1) == "--" then 1798 | comm = true 1799 | end 1800 | if comm == true then 1801 | ret = ret .. n 1802 | else 1803 | ret = ret .. "\32" 1804 | end 1805 | end) 1806 | ret = ret 1807 | end) 1808 | 1809 | return ret 1810 | end 1811 | 1812 | local numbers = function(string) 1813 | local A = "" 1814 | string:gsub(".", function(c) 1815 | if tonumber(c) ~= nil then 1816 | A = A .. c 1817 | elseif c == "\n" then 1818 | A = A .. "\n" 1819 | elseif c == "\t" then 1820 | A = A .. "\t" 1821 | else 1822 | A = A .. "\32" 1823 | end 1824 | end) 1825 | 1826 | return A 1827 | end 1828 | 1829 | local highlight_lua = function(type) 1830 | if type == "Text" then 1831 | Source.Text = Source.Text:gsub("\13", "") 1832 | Source.Text = Source.Text:gsub("\t", " ") 1833 | local s = Source.Text 1834 | 1835 | Source.Keywords.Text = Highlight(s, lua_keywords) 1836 | Source.Globals.Text = Highlight(s, global_env) 1837 | Source.RemoteHighlight.Text = Highlight(s, {"FireServer", "fireServer", "InvokeServer", "invokeServer"}) 1838 | Source.Tokens.Text = hTokens(s) 1839 | Source.Numbers.Text = numbers(s) 1840 | Source.Strings.Text = strings(s) 1841 | Source.Comments.Text = comments(s) 1842 | 1843 | local lin = 1 1844 | s:gsub("\n", function() 1845 | lin = lin + 1 1846 | end) 1847 | 1848 | Lines.Text = "" 1849 | for i = 1, lin do 1850 | Lines.Text = Lines.Text .. i .. "\n" 1851 | end 1852 | 1853 | sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0) 1854 | end 1855 | 1856 | local highlight_logs = function(type) 1857 | end 1858 | if type == "Text" then 1859 | Source.Text = Source.Text:gsub("\13", "") 1860 | Source.Text = Source.Text:gsub("\t", " ") 1861 | local s = Source.Text 1862 | 1863 | Source.Info.Text = info(s) 1864 | 1865 | local lin = 1 1866 | s:gsub("\n", function() 1867 | lin = lin + 1 1868 | end) 1869 | 1870 | sf.CanvasSize = UDim2.new(0, 0, lin * 0.153846154, 0) 1871 | end 1872 | end 1873 | 1874 | if console_options.source == "Lua" then 1875 | highlight_lua("Text") 1876 | Source.Changed:Connect(highlight_lua) 1877 | elseif console_options.source == "Logs" then 1878 | Lines.Visible = false 1879 | 1880 | highlight_logs("Text") 1881 | Source.Changed:Connect(highlight_logs) 1882 | end 1883 | 1884 | function console_data:Set(code) 1885 | Source.Text = tostring(code) 1886 | end 1887 | 1888 | function console_data:Get() 1889 | return Source.Text 1890 | end 1891 | 1892 | function console_data:Log(msg) 1893 | Source.Text = Source.Text .. "[*] " .. tostring(msg) .. "\n" 1894 | end 1895 | 1896 | end 1897 | 1898 | return console_data, console 1899 | end 1900 | 1901 | function tab_data:AddHorizontalAlignment() 1902 | local ha_data = {} 1903 | 1904 | local ha = Prefabs:FindFirstChild("HorizontalAlignment"):Clone() 1905 | ha.Parent = new_tab 1906 | 1907 | function ha_data:AddButton(...) 1908 | local data, object 1909 | local ret = {tab_data:AddButton(...)} 1910 | if typeof(ret[1]) == "table" then 1911 | data = ret[1] 1912 | object = ret[2] 1913 | object.Parent = ha 1914 | return data, object 1915 | else 1916 | object = ret[1] 1917 | object.Parent = ha 1918 | return object 1919 | end 1920 | end 1921 | 1922 | return ha_data, ha 1923 | end 1924 | 1925 | function tab_data:AddFolder(folder_name) -- [Folder] 1926 | local folder_data = {} 1927 | 1928 | folder_name = tostring(folder_name or "New Folder") 1929 | 1930 | local folder = Prefabs:FindFirstChild("Folder"):Clone() 1931 | local button = folder:FindFirstChild("Button") 1932 | local objects = folder:FindFirstChild("Objects") 1933 | local toggle = button:FindFirstChild("Toggle") 1934 | folder.ZIndex = folder.ZIndex + (windows * 10) 1935 | button.ZIndex = button.ZIndex + (windows * 10) 1936 | objects.ZIndex = objects.ZIndex + (windows * 10) 1937 | toggle.ZIndex = toggle.ZIndex + (windows * 10) 1938 | button:GetChildren()[1].ZIndex = button:GetChildren()[1].ZIndex + (windows * 10) 1939 | 1940 | folder.Parent = new_tab 1941 | button.Text = " " .. folder_name 1942 | 1943 | spawn(function() 1944 | while true do 1945 | if button and button:GetChildren()[1] then 1946 | button:GetChildren()[1].ImageColor3 = options.main_color 1947 | end 1948 | RS.Heartbeat:Wait() 1949 | end 1950 | end) 1951 | 1952 | local function gFolderLen() 1953 | local n = 25 1954 | for i,v in next, objects:GetChildren() do 1955 | if not (v:IsA("UIListLayout")) then 1956 | n = n + v.AbsoluteSize.Y + 5 1957 | end 1958 | end 1959 | return n 1960 | end 1961 | 1962 | local open = false 1963 | button.MouseButton1Click:Connect(function() 1964 | if open then -- Close 1965 | Resize(toggle, {Rotation = 0}, options.tween_time) 1966 | objects.Visible = false 1967 | else -- Open 1968 | Resize(toggle, {Rotation = 90}, options.tween_time) 1969 | objects.Visible = true 1970 | end 1971 | 1972 | open = not open 1973 | end) 1974 | 1975 | spawn(function() 1976 | while true do 1977 | Resize(folder, {Size = UDim2.new(1, 0, 0, (open and gFolderLen() or 20))}, options.tween_time) 1978 | wait() 1979 | end 1980 | end) 1981 | 1982 | for i,v in next, tab_data do 1983 | folder_data[i] = function(...) 1984 | local data, object 1985 | local ret = {v(...)} 1986 | if typeof(ret[1]) == "table" then 1987 | data = ret[1] 1988 | object = ret[2] 1989 | object.Parent = objects 1990 | return data, object 1991 | else 1992 | object = ret[1] 1993 | object.Parent = objects 1994 | return object 1995 | end 1996 | end 1997 | end 1998 | 1999 | return folder_data, folder 2000 | end 2001 | 2002 | end 2003 | 2004 | return tab_data, new_tab 2005 | end 2006 | end 2007 | end 2008 | 2009 | do 2010 | for i, v in next, Window:GetDescendants() do 2011 | if hasprop(v, "ZIndex") then 2012 | v.ZIndex = v.ZIndex + (windows * 10) 2013 | end 2014 | end 2015 | end 2016 | 2017 | return window_data, Window 2018 | end 2019 | 2020 | return library 2021 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # DISCONTINUED 2 | # Elerium v2 Example, Supports PC and Mobile! 3 | 4 | Loadstring 5 | ```lua 6 | local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/memejames/elerium-v2-ui-library//main/Library", true))() 7 | ``` 8 | 9 | Create Window Here: 10 | ```lua 11 | local window = library:AddWindow("Name GUI", { 12 | main_color = Color3.fromRGB(41, 74, 122), -- Color 13 | min_size = Vector2.new(250, 346), -- Size of the gui 14 | can_resize = false, -- true or false 15 | }) 16 | ``` 17 | AddLabel: 18 | ```lua 19 | features:AddLabel("Hello World!") 20 | ``` 21 | 22 | AddTab: 23 | ```lua 24 | local features = window:AddTab("Features") -- Name of tab 25 | features:Show() -- shows the tab 26 | ``` 27 | AddButton: 28 | ```lua 29 | features:AddButton("name",function() 30 | -- Code here 31 | end) 32 | ``` 33 | AddToggle: 34 | ```lua 35 | local switch = features:AddSwitch("name", function(bool) 36 | -- toggle_god_mode(bool) 37 | end) 38 | switch:Set(true) 39 | ``` 40 | AddTextBox: 41 | ```lua 42 | features:AddTextBox("free click", function(text) -- u can add any text to "text" 43 | game:GetService("ReplicatedStorage").Events.FreeGifts.Gift2:FireServer(text,"Clicks",false,false,"Normal") 44 | end) 45 | ``` 46 | AddSlider: PC works, on mobile not works sorry 47 | ```lua 48 | local slider = features:AddSlider("WalkSpeed", function(p) 49 | setwalkspeed(p) 50 | end, { 51 | 52 | ["min"] = 16, 53 | ["max"] = 100, 54 | }) 55 | slider:Set(16) -- Needed 56 | ``` 57 | AddDropdown: 58 | ```lua 59 | local dropdown = features:AddDropdown("select", function(text) 60 | if text == "Mars" then -- Code 61 | print("o") 62 | elseif text == "Earth" then 63 | print("k") 64 | elseif text == "Iridocyclitis" then 65 | print("Weeeee") 66 | end 67 | end) 68 | local mars = dropdown:Add("Mars") -- Options 69 | local earth = dropdown:Add("Earth") 70 | local not_a_planet = dropdown:Add("Iridocyclitis") 71 | ``` 72 | AddConsole example: 73 | ```lua 74 | -- Add console for ur Script/Gui, Idk if works 75 | features:AddConsole({ 76 | ["y"] = 210, 77 | ["readonly"] = false, 78 | ["source"] = "Lua", 79 | }) 80 | ``` 81 | 82 | AddFolder: 83 | ```lua 84 | -- add folder for more space 85 | local folder = features:AddFolder() 86 | folder:AddSwitch() 87 | folder:AddLabel("Woo! I'm inside a folder!") 88 | 89 | local folder2 = folder:AddFolder() 90 | folder2:AddLabel("I'm inside *two* folders :smirk:") 91 | ``` 92 | 93 | Credit to Chinawasspyingonusa 94 | --------------------------------------------------------------------------------