· 3 years ago · Jun 02, 2022, 11:20 AM
1getgenv().values = {}
2local library = {}
3local Signal = loadstring(game:HttpGet("https://pastebin.com/raw/jexi9n1h"))()
4--local Api = loadstring(game:HttpGet("https://pastebin.com/raw/YgxABfPV"))()
5local ConfigSave = Signal.new("ConfigSave")
6local ConfigLoad = Signal.new("ConfigLoad")
7
8local txt = game:GetService("TextService")
9local TweenService = game:GetService("TweenService")
10function library:Tween(...) TweenService:Create(...):Play() end
11local cfglocation = "aristoiscfg/"
12makefolder("aristoiscfg")
13function rgbtotbl(rgb)
14 return {R = rgb.R, G = rgb.G, B = rgb.B}
15end
16function tbltorgb(tbl)
17 return Color3.new(tbl.R, tbl.G, tbl.B)
18end
19local function deepCopy(original)
20 local copy = {}
21 for k, v in pairs(original) do
22 if type(v) == "table" then
23 v = deepCopy(v)
24 end
25 copy[k] = v
26 end
27 return copy
28end
29function library:ConfigFix(cfg)
30 local copy = game:GetService("HttpService"):JSONDecode(readfile(cfglocation..cfg..".txt"))
31 for i,Tabs in pairs(copy) do
32 for i,Sectors in pairs(Tabs) do
33 for i,Elements in pairs(Sectors) do
34 if Elements.Color ~= nil then
35 local a = Elements.Color
36 Elements.Color = tbltorgb(a)
37 end
38 end
39 end
40 end
41 return copy
42end
43function library:SaveConfig(cfg)
44 local copy = deepCopy(values)
45 for i,Tabs in pairs(copy) do
46 for i,Sectors in pairs(Tabs) do
47 for i,Elements in pairs(Sectors) do
48 if Elements.Color ~= nil then
49 Elements.Color = {R=Elements.Color.R, G=Elements.Color.G, B=Elements.Color.B}
50 end
51 end
52 end
53 end
54 writefile(cfglocation..cfg..".txt", game:GetService("HttpService"):JSONEncode(copy))
55end
56
57function library:New(name)
58 local menu = {}
59
60 local Aristois = Instance.new("ScreenGui")
61 local Menu = Instance.new("ImageLabel")
62 local TextLabel = Instance.new("TextLabel")
63 local TabButtons = Instance.new("Frame")
64 local UIListLayout = Instance.new("UIListLayout")
65 local Tabs = Instance.new("Frame")
66
67 Aristois.Name = "Aristois"
68 Aristois.ResetOnSpawn = false
69 Aristois.ZIndexBehavior = "Global"
70 Aristois.DisplayOrder = 420133769
71
72 local UIScale = Instance.new("UIScale")
73 UIScale.Parent = Aristois
74
75 function menu:SetScale(scale)
76 UIScale.Scale = scale
77 end
78
79 local but = Instance.new("TextButton")
80 but.Modal = true
81 but.Text = ""
82 but.BackgroundTransparency = 1
83 but.Parent = Aristois
84
85 local cursor = Instance.new("ImageLabel")
86 cursor.Name = "cursor"
87 cursor.Parent = Aristois
88 cursor.BackgroundTransparency = 1
89 cursor.Size = UDim2.new(0,17,0,17)
90 cursor.Image = "rbxassetid://518398610"
91 cursor.ZIndex = 1000
92 cursor.ImageColor3 = Color3.fromRGB(255,255,255)
93
94 local Players = game:GetService("Players")
95 local LocalPlayer = Players.LocalPlayer
96 local Mouse = LocalPlayer:GetMouse()
97
98 game:GetService("RunService").RenderStepped:connect(function()
99 cursor.Visible = Aristois.Enabled
100 cursor.Position = UDim2.new(0,Mouse.X-3,0,Mouse.Y+1)
101 end)
102
103 Menu.Name = "Menu"
104 Menu.Parent = Aristois
105 Menu.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
106 Menu.Position = UDim2.new(0.5, -300, 0.5, -300)
107 Menu.Size = UDim2.new(0, 600, 0, 600)
108 Menu.Image = "http://www.roblox.com/asset/?id=6724360483"
109
110 library.uiopen = true
111
112 game:GetService("UserInputService").InputBegan:Connect(function(key)
113 if key.KeyCode == Enum.KeyCode.Insert then
114 Aristois.Enabled = not Aristois.Enabled
115 library.uiopen = Aristois.Enabled
116 end
117 end)
118
119 local KeybindList = Instance.new("ScreenGui")
120 do
121 local TextLabel = Instance.new("TextLabel")
122 local Frame = Instance.new("Frame")
123 local UIListLayout = Instance.new("UIListLayout")
124
125 KeybindList.Name = "KeybindList"
126 KeybindList.ZIndexBehavior = Enum.ZIndexBehavior.Global
127 KeybindList.Enabled = false
128
129 TextLabel.Parent = KeybindList
130 TextLabel.BackgroundColor3 = Color3.fromRGB(30, 30, 39)
131 TextLabel.BorderColor3 = Color3.fromRGB(255, 37, 110)
132 TextLabel.Position = UDim2.new(0, 1, 0.300000012, 0)
133 TextLabel.Size = UDim2.new(0, 155, 0, 24)
134 TextLabel.ZIndex = 2
135 TextLabel.Font = Enum.Font.SourceSansSemibold
136 TextLabel.Text = "keybinds"
137 TextLabel.TextColor3 = Color3.fromRGB(255, 37, 110)
138 TextLabel.TextSize = 14.000
139
140 Frame.Parent = TextLabel
141 Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
142 Frame.BackgroundTransparency = 1.000
143 Frame.Position = UDim2.new(0, 0, 1, 1)
144 Frame.Size = UDim2.new(1, 0, 1, 0)
145
146 UIListLayout.Parent = Frame
147 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
148 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
149
150 KeybindList.Parent = game.CoreGui
151 end
152
153 function keybindadd(text)
154 if not KeybindList.TextLabel.Frame:FindFirstChild(text) then
155 local TextLabel = Instance.new("TextLabel")
156 TextLabel.BackgroundColor3 = Color3.fromRGB(30, 30, 39)
157 TextLabel.BorderColor3 = Color3.fromRGB(255, 37, 110)
158 TextLabel.BorderSizePixel = 0
159 TextLabel.Size = UDim2.new(0, 155, 0, 24)
160 TextLabel.ZIndex = 2
161 TextLabel.Font = Enum.Font.SourceSansSemibold
162 TextLabel.Text = text
163 TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
164 TextLabel.TextSize = 14.000
165 TextLabel.Name = text
166 TextLabel.Parent = KeybindList.TextLabel.Frame
167 end
168 end
169
170 function keybindremove(text)
171 if KeybindList.TextLabel.Frame:FindFirstChild(text) then
172 KeybindList.TextLabel.Frame:FindFirstChild(text):Destroy()
173 end
174 end
175
176 function library:SetKeybindVisible(Joe)
177 KeybindList.Enabled = Joe
178 end
179
180 library.dragging = false
181 do
182 local UserInputService = game:GetService("UserInputService")
183 local a = Menu
184 local dragInput
185 local dragStart
186 local startPos
187 local function update(input)
188 local delta = input.Position - dragStart
189 a.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
190 end
191 a.InputBegan:Connect(function(input)
192 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
193 library.dragging = true
194 dragStart = input.Position
195 startPos = a.Position
196
197 input.Changed:Connect(function()
198 if input.UserInputState == Enum.UserInputState.End then
199 library.dragging = false
200 end
201 end)
202 end
203 end)
204 a.InputChanged:Connect(function(input)
205 if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
206 dragInput = input
207 end
208 end)
209 UserInputService.InputChanged:Connect(function(input)
210 if input == dragInput and library.dragging then
211 update(input)
212 end
213 end)
214 end
215
216 TextLabel.Parent = Menu
217 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
218 TextLabel.BackgroundTransparency = 1
219 TextLabel.Position = UDim2.new(0, 7, 0, 0)
220 TextLabel.Size = UDim2.new(0, 0, 0, 29)
221 TextLabel.Size = UDim2.new(0, txt:GetTextSize(name, 15, Enum.Font.SourceSansSemibold, Vector2.new(700, TextLabel.AbsoluteSize.Y)).X, 0, 29)
222 TextLabel.Font = Enum.Font.SourceSansSemibold
223 TextLabel.Text = name
224 TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
225 TextLabel.TextSize = 15.000
226 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
227
228 TabButtons.Name = "TabButtons"
229 TabButtons.Parent = Menu
230 TabButtons.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
231 TabButtons.BackgroundTransparency = 1
232 TabButtons.Position = UDim2.new(TextLabel.Size.X.Scale, TextLabel.Size.X.Offset+10, 0, 0)
233 TabButtons.Size = UDim2.new(TextLabel.Size.X.Scale, 590-TextLabel.Size.X.Offset, 0, 29)
234
235 UIListLayout.Parent = TabButtons
236 UIListLayout.FillDirection = Enum.FillDirection.Horizontal
237 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
238 UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
239
240 Tabs.Name = "Tabs"
241 Tabs.Parent = Menu
242 Tabs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
243 Tabs.BackgroundTransparency = 1.000
244 Tabs.Position = UDim2.new(0, 0, 0, 32)
245 Tabs.Size = UDim2.new(0, 600, 0, 568)
246
247 local first = true
248 local currenttab
249
250 function menu:Tab(text)
251 local tabname
252 tabname = text
253 local Tab = {}
254 values[tabname] = {}
255
256 local TextButton = Instance.new("TextButton")
257 TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
258 TextButton.BackgroundTransparency = 1
259 TextButton.Size = UDim2.new(0, txt:GetTextSize(text, 15, Enum.Font.SourceSansSemibold, Vector2.new(700,700)).X+12, 1, 0)
260 TextButton.Font = Enum.Font.SourceSansSemibold
261 TextButton.Text = text
262 TextButton.TextColor3 = Color3.fromRGB(200, 200, 200)
263 TextButton.TextSize = 15.000
264 TextButton.Parent = TabButtons
265
266 local TabGui = Instance.new("Frame")
267 local Left = Instance.new("Frame")
268 local UIListLayout = Instance.new("UIListLayout")
269 local Right = Instance.new("Frame")
270 local UIListLayout_2 = Instance.new("UIListLayout")
271
272 TabGui.Name = "TabGui"
273 TabGui.Parent = Tabs
274 TabGui.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
275 TabGui.BackgroundTransparency = 1.000
276 TabGui.Size = UDim2.new(1, 0, 1, 0)
277 TabGui.Visible = false
278
279 Left.Name = "Left"
280 Left.Parent = TabGui
281 Left.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
282 Left.BackgroundTransparency = 1.000
283 Left.Position = UDim2.new(0, 15, 0, 11)
284 Left.Size = UDim2.new(0, 279, 0, 543)
285
286 UIListLayout.Parent = Left
287 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
288 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
289 UIListLayout.Padding = UDim.new(0, 10)
290
291 Right.Name = "Right"
292 Right.Parent = TabGui
293 Right.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
294 Right.BackgroundTransparency = 1.000
295 Right.Position = UDim2.new(0, 303, 0, 11)
296 Right.Size = UDim2.new(0, 279, 0, 543)
297
298 UIListLayout_2.Parent = Right
299 UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
300 UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
301 UIListLayout_2.Padding = UDim.new(0, 10)
302
303 if first then
304 TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
305 currenttab = text
306 TabGui.Visible = true
307 first = false
308 end
309
310 TextButton.MouseButton1Down:Connect(function()
311 if currenttab ~= text then
312 for i,v in pairs(TabButtons:GetChildren()) do
313 if v:IsA("TextButton") then
314 library:Tween(v, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
315 end
316 end
317 for i,v in pairs(Tabs:GetChildren()) do
318 v.Visible = false
319 end
320 library:Tween(TextButton, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
321 currenttab = text
322 TabGui.Visible = true
323 end
324 end)
325
326 function Tab:MSector(text, side)
327 local sectorname = text
328 local MSector = {}
329 values[tabname][text] = {}
330
331
332 local Section = Instance.new("Frame")
333 local SectionText = Instance.new("TextLabel")
334 local Inner = Instance.new("Frame")
335 local sectiontabs = Instance.new("Frame")
336 local UIListLayout_2 = Instance.new("UIListLayout")
337
338 Section.Name = "Section"
339 Section.Parent = TabGui[side]
340 Section.BackgroundColor3 = Color3.fromRGB(27, 27, 35)
341 Section.BorderColor3 = Color3.fromRGB(27, 27, 35)
342 Section.BorderSizePixel = 0
343 Section.Size = UDim2.new(1, 0, 0, 33)
344
345 SectionText.Name = "SectionText"
346 SectionText.Parent = Section
347 SectionText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
348 SectionText.BackgroundTransparency = 1.000
349 SectionText.Position = UDim2.new(0, 7, 0, -12)
350 SectionText.Size = UDim2.new(0, 270, 0, 19)
351 SectionText.ZIndex = 2
352 SectionText.Font = Enum.Font.SourceSansSemibold
353 SectionText.Text = text
354 SectionText.TextColor3 = Color3.fromRGB(255, 255, 255)
355 SectionText.TextSize = 15.000
356 SectionText.TextXAlignment = Enum.TextXAlignment.Left
357
358 Inner.Name = "Inner"
359 Inner.Parent = Section
360 Inner.BackgroundColor3 = Color3.fromRGB(30, 30, 39)
361 Inner.BorderColor3 = Color3.fromRGB(27, 27, 35)
362 Inner.BorderSizePixel = 0
363 Inner.Position = UDim2.new(0, 1, 0, 1)
364 Inner.Size = UDim2.new(1, -2, 1, -9)
365
366 sectiontabs.Name = "sectiontabs"
367 sectiontabs.Parent = Section
368 sectiontabs.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
369 sectiontabs.BackgroundTransparency = 1.000
370 sectiontabs.Position = UDim2.new(0, 0, 0, 6)
371 sectiontabs.Size = UDim2.new(1, 0, 0, 22)
372
373 UIListLayout_2.Parent = sectiontabs
374 UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
375 UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
376 UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
377 UIListLayout_2.Padding = UDim.new(0,4)
378
379 local firs = true
380 local selected
381 function MSector:Tab(text)
382 local tab = {}
383 values[tabname][sectorname][text] = {}
384 local tabtext = text
385
386 local tabsize = UDim2.new(1, 0, 0, 44)
387
388 local tab1 = Instance.new("Frame")
389 local UIPadding = Instance.new("UIPadding")
390 local UIListLayout = Instance.new("UIListLayout")
391 local TextButton = Instance.new("TextButton")
392
393 tab1.Name = text
394 tab1.Parent = Inner
395 tab1.BackgroundColor3 = Color3.fromRGB(30, 30, 39)
396 tab1.BorderColor3 = Color3.fromRGB(27, 27, 35)
397 tab1.BorderSizePixel = 0
398 tab1.Position = UDim2.new(0, 0, 0, 30)
399 tab1.Size = UDim2.new(1, 0, 1, -21)
400 tab1.Name = text
401 tab1.Visible = false
402
403 UIPadding.Parent = tab1
404 UIPadding.PaddingTop = UDim.new(0, 0)
405
406 UIListLayout.Parent = tab1
407 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
408 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
409 UIListLayout.Padding = UDim.new(0, 1)
410
411 TextButton.Parent = sectiontabs
412 TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
413 TextButton.BackgroundTransparency = 1.000
414 TextButton.Size = UDim2.new(0, txt:GetTextSize(text, 14, Enum.Font.SourceSansSemibold, Vector2.new(700,700)).X + 2, 1, 0)
415 TextButton.Font = Enum.Font.SourceSansSemibold
416 TextButton.Text = text
417 TextButton.TextColor3 = Color3.fromRGB(200, 200, 200)
418 TextButton.TextSize = 14.000
419 TextButton.Name = text
420
421 TextButton.MouseButton1Down:Connect(function()
422 for i,v in pairs(Inner:GetChildren()) do
423 v.Visible = false
424 end
425 for i,v in pairs(sectiontabs:GetChildren()) do
426 if v:IsA("TextButton") then
427 library:Tween(v, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200,200,200)})
428 end
429 end
430 Section.Size = tabsize
431 tab1.Visible = true
432 library:Tween(TextButton, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
433 end)
434
435 function tab:Element(type, text, data, callback)
436 local Element = {}
437 data = data or {}
438 callback = callback or function() end
439 values[tabname][sectorname][tabtext][text] = {}
440
441 if type == "Jumbobox" then
442 tabsize = tabsize + UDim2.new(0,0,0, 39)
443 Element.value = {Jumbobox = {}}
444 data.options = data.options or {}
445
446 local Dropdown = Instance.new("Frame")
447 local Button = Instance.new("TextButton")
448 local TextLabel = Instance.new("TextLabel")
449 local Drop = Instance.new("ScrollingFrame")
450 local Button_2 = Instance.new("TextButton")
451 local TextLabel_2 = Instance.new("TextLabel")
452 local UIListLayout = Instance.new("UIListLayout")
453 local ImageLabel = Instance.new("ImageLabel")
454 local TextLabel_3 = Instance.new("TextLabel")
455
456 Dropdown.Name = "Dropdown"
457 Dropdown.Parent = tab1
458 Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
459 Dropdown.BackgroundTransparency = 1.000
460 Dropdown.Position = UDim2.new(0, 0, 0.255102038, 0)
461 Dropdown.Size = UDim2.new(1, 0, 0, 39)
462
463 Button.Name = "Button"
464 Button.Parent = Dropdown
465 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
466 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
467 Button.Position = UDim2.new(0, 30, 0, 16)
468 Button.Size = UDim2.new(0, 175, 0, 17)
469 Button.AutoButtonColor = false
470 Button.Font = Enum.Font.SourceSans
471 Button.Text = ""
472 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
473 Button.TextSize = 14.000
474
475 TextLabel.Parent = Button
476 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
477 TextLabel.BackgroundTransparency = 1.000
478 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
479 TextLabel.Position = UDim2.new(0, 5, 0, 0)
480 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
481 TextLabel.Font = Enum.Font.SourceSansSemibold
482 TextLabel.Text = "..."
483 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
484 TextLabel.TextSize = 14.000
485 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
486
487 local abcd = TextLabel
488
489 Drop.Name = "Drop"
490 Drop.Parent = Button
491 Drop.Active = true
492 Drop.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
493 Drop.BorderColor3 = Color3.fromRGB(27, 27, 35)
494 Drop.Position = UDim2.new(0, 0, 1, 1)
495 Drop.Size = UDim2.new(1, 0, 0, 20)
496 Drop.Visible = false
497 Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
498 Drop.CanvasSize = UDim2.new(0, 0, 0, 0)
499 Drop.ScrollBarThickness = 4
500 Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
501 Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
502 Drop.AutomaticCanvasSize = "Y"
503 Drop.ZIndex = 5
504 Drop.ScrollBarImageColor3 = Color3.fromRGB(255, 37, 110)
505
506 UIListLayout.Parent = Drop
507 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
508 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
509
510 values[tabname][sectorname][tabtext][text] = Element.value
511 local num = #data.options
512 if num > 5 then
513 Drop.Size = UDim2.new(1, 0, 0, 85)
514 else
515 Drop.Size = UDim2.new(1, 0, 0, 17*num)
516 end
517 local first = true
518
519 local function updatetext()
520 local old = {}
521 for i,v in ipairs(data.options) do
522 if table.find(Element.value.Jumbobox, v) then
523 table.insert(old, v)
524 else
525 end
526 end
527 local str = ""
528
529
530 if #old == 0 then
531 str = "..."
532 else
533 if #old == 1 then
534 str = old[1]
535 else
536 for i,v in ipairs(old) do
537 if i == 1 then
538 str = v
539 else
540 if i > 2 then
541 if i < 4 then
542 str = str..", ..."
543 end
544 else
545 str = str..", "..v
546 end
547 end
548 end
549 end
550 end
551
552 abcd.Text = str
553 end
554 for i,v in ipairs(data.options) do
555 do
556 local Button = Instance.new("TextButton")
557 local TextLabel = Instance.new("TextLabel")
558
559 Button.Name = v
560 Button.Parent = Drop
561 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
562 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
563 Button.Position = UDim2.new(0, 30, 0, 16)
564 Button.Size = UDim2.new(0, 175, 0, 17)
565 Button.AutoButtonColor = false
566 Button.Font = Enum.Font.SourceSans
567 Button.Text = ""
568 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
569 Button.TextSize = 14.000
570 Button.BorderSizePixel = 0
571 Button.ZIndex = 6
572
573 TextLabel.Parent = Button
574 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
575 TextLabel.BackgroundTransparency = 1.000
576 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
577 TextLabel.Position = UDim2.new(0, 5, 0, -1)
578 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
579 TextLabel.Font = Enum.Font.SourceSansSemibold
580 TextLabel.Text = v
581 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
582 TextLabel.TextSize = 14.000
583 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
584 TextLabel.ZIndex = 6
585
586 Button.MouseButton1Down:Connect(function()
587 if table.find(Element.value.Jumbobox, v) then
588 for i,a in pairs(Element.value.Jumbobox) do
589 if a == v then
590 table.remove(Element.value.Jumbobox, i)
591 end
592 end
593 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
594 else
595 table.insert(Element.value.Jumbobox, v)
596 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(175, 42, 86)})
597 end
598 updatetext()
599
600 values[tabname][sectorname][tabtext][text] = Element.value
601 callback(Element.value)
602 end)
603 Button.MouseEnter:Connect(function()
604 if not table.find(Element.value.Jumbobox, v) then
605 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
606 end
607 end)
608 Button.MouseLeave:Connect(function()
609 if not table.find(Element.value.Jumbobox, v) then
610 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
611 end
612 end)
613
614 first = false
615 end
616 end
617 function Element:SetValue(val)
618 Element.value = val
619 for i,v in pairs(Drop:GetChildren()) do
620 if v.Name ~= "UIListLayout" then
621 if table.find(val.Jumbobox, v.Name) then
622 v.TextLabel.TextColor3 = Color3.fromRGB(175, 42, 86)
623 else
624 v.TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
625 end
626 end
627 end
628 updatetext()
629 values[tabname][sectorname][tabtext][text] = Element.value
630 callback(val)
631 end
632 if data.default then
633 Element:SetValue(data.default)
634 end
635
636 ImageLabel.Parent = Button
637 ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
638 ImageLabel.BackgroundTransparency = 1.000
639 ImageLabel.Position = UDim2.new(0, 165, 0, 6)
640 ImageLabel.Size = UDim2.new(0, 6, 0, 4)
641 ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
642
643 TextLabel_3.Parent = Dropdown
644 TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
645 TextLabel_3.BackgroundTransparency = 1.000
646 TextLabel_3.Position = UDim2.new(0, 32, 0, -1)
647 TextLabel_3.Size = UDim2.new(0.111913361, 208, 0.382215232, 0)
648 TextLabel_3.Font = Enum.Font.SourceSansSemibold
649 TextLabel_3.Text = text
650 TextLabel_3.TextColor3 = Color3.fromRGB(200, 200, 200)
651 TextLabel_3.TextSize = 14.000
652 TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
653
654 Button.MouseButton1Down:Connect(function()
655 Drop.Visible = not Drop.Visible
656 if not Drop.Visible then
657 Drop.CanvasPosition = Vector2.new(0,0)
658 end
659 end)
660 local indrop = false
661 local ind = false
662 Drop.MouseEnter:Connect(function()
663 indrop = true
664 end)
665 Drop.MouseLeave:Connect(function()
666 indrop = false
667 end)
668 Button.MouseEnter:Connect(function()
669 ind = true
670 end)
671 Button.MouseLeave:Connect(function()
672 ind = false
673 end)
674 game:GetService("UserInputService").InputBegan:Connect(function(input)
675 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
676 if Drop.Visible == true and not indrop and not ind then
677 Drop.Visible = false
678 Drop.CanvasPosition = Vector2.new(0,0)
679 end
680 end
681 end)
682 elseif type == "TextBox" then
683
684 elseif type == "ToggleKeybind" then
685 tabsize = tabsize + UDim2.new(0,0,0,16)
686 Element.value = {Toggle = data.default and data.default.Toggle or false, Key, Type = "Always", Active = true}
687
688 local Toggle = Instance.new("Frame")
689 local Button = Instance.new("TextButton")
690 local Color = Instance.new("Frame")
691 local TextLabel = Instance.new("TextLabel")
692
693 Toggle.Name = "Toggle"
694 Toggle.Parent = tab1
695 Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
696 Toggle.BackgroundTransparency = 1.000
697 Toggle.Size = UDim2.new(1, 0, 0, 15)
698
699 Button.Name = "Button"
700 Button.Parent = Toggle
701 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
702 Button.BackgroundTransparency = 1.000
703 Button.Size = UDim2.new(1, 0, 1, 0)
704 Button.Font = Enum.Font.SourceSans
705 Button.Text = ""
706 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
707 Button.TextSize = 14.000
708
709 Color.Name = "Color"
710 Color.Parent = Button
711 Color.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
712 Color.BorderColor3 = Color3.fromRGB(27, 27, 35)
713 Color.Position = UDim2.new(0, 15, 0.5, -5)
714 Color.Size = UDim2.new(0, 8, 0, 8)
715 local binding = false
716 TextLabel.Parent = Button
717 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
718 TextLabel.BackgroundTransparency = 1.000
719 TextLabel.Position = UDim2.new(0, 32, 0, -1)
720 TextLabel.Size = UDim2.new(0.111913361, 208, 1, 0)
721 TextLabel.Font = Enum.Font.SourceSansSemibold
722 TextLabel.Text = text
723 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
724 TextLabel.TextSize = 14.000
725 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
726
727 local function update()
728 if Element.value.Toggle then
729 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(155, 22, 66)})
730 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
731 else
732 keybindremove(text)
733 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(33, 35, 47)})
734 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
735 end
736 values[tabname][sectorname][tabtext][text] = Element.value
737 callback(Element.value)
738 end
739
740 Button.MouseButton1Down:Connect(function()
741 if not binding then
742 Element.value.Toggle = not Element.value.Toggle
743 update()
744 values[tabname][sectorname][tabtext][text] = Element.value
745 callback(Element.value)
746 end
747 end)
748 if data.default then
749 update()
750 end
751 values[tabname][sectorname][tabtext][text] = Element.value
752 do
753 local Keybind = Instance.new("TextButton")
754 local Frame = Instance.new("Frame")
755 local Always = Instance.new("TextButton")
756 local UIListLayout = Instance.new("UIListLayout")
757 local Hold = Instance.new("TextButton")
758 local Toggle = Instance.new("TextButton")
759
760 Keybind.Name = "Keybind"
761 Keybind.Parent = Button
762 Keybind.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
763 Keybind.BorderColor3 = Color3.fromRGB(27, 27, 35)
764 Keybind.Position = UDim2.new(0, 270, 0.5, -6)
765 Keybind.Text = "NONE"
766 Keybind.Size = UDim2.new(0, 43, 0, 12)
767 Keybind.Size = UDim2.new(0,txt:GetTextSize("NONE", 14, Enum.Font.SourceSansSemibold, Vector2.new(700, 12)).X + 5,0, 12)
768 Keybind.AutoButtonColor = false
769 Keybind.Font = Enum.Font.SourceSansSemibold
770 Keybind.TextColor3 = Color3.fromRGB(200, 200, 200)
771 Keybind.TextSize = 14.000
772 Keybind.AnchorPoint = Vector2.new(1,0)
773 Keybind.ZIndex = 3
774
775 Frame.Parent = Keybind
776 Frame.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
777 Frame.BorderColor3 = Color3.fromRGB(27, 27, 35)
778 Frame.Position = UDim2.new(1, -49, 0, 1)
779 Frame.Size = UDim2.new(0, 49, 0, 49)
780 Frame.Visible = false
781 Frame.ZIndex = 3
782
783 Always.Name = "Always"
784 Always.Parent = Frame
785 Always.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
786 Always.BackgroundTransparency = 1.000
787 Always.BorderColor3 = Color3.fromRGB(27, 27, 35)
788 Always.Position = UDim2.new(-3.03289485, 231, 0.115384616, -6)
789 Always.Size = UDim2.new(1, 0, 0, 16)
790 Always.AutoButtonColor = false
791 Always.Font = Enum.Font.SourceSansBold
792 Always.Text = "Always"
793 Always.TextColor3 = Color3.fromRGB(173, 24, 74)
794 Always.TextSize = 14.000
795 Always.ZIndex = 3
796
797 UIListLayout.Parent = Frame
798 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
799 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
800
801 Hold.Name = "Hold"
802 Hold.Parent = Frame
803 Hold.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
804 Hold.BackgroundTransparency = 1.000
805 Hold.BorderColor3 = Color3.fromRGB(27, 27, 35)
806 Hold.Position = UDim2.new(-3.03289485, 231, 0.115384616, -6)
807 Hold.Size = UDim2.new(1, 0, 0, 16)
808 Hold.AutoButtonColor = false
809 Hold.Font = Enum.Font.SourceSansSemibold
810 Hold.Text = "Hold"
811 Hold.TextColor3 = Color3.fromRGB(200, 200, 200)
812 Hold.TextSize = 14.000
813 Hold.ZIndex = 3
814
815 Toggle.Name = "Toggle"
816 Toggle.Parent = Frame
817 Toggle.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
818 Toggle.BackgroundTransparency = 1.000
819 Toggle.BorderColor3 = Color3.fromRGB(27, 27, 35)
820 Toggle.Position = UDim2.new(-3.03289485, 231, 0.115384616, -6)
821 Toggle.Size = UDim2.new(1, 0, 0, 16)
822 Toggle.AutoButtonColor = false
823 Toggle.Font = Enum.Font.SourceSansSemibold
824 Toggle.Text = "Toggle"
825 Toggle.TextColor3 = Color3.fromRGB(200, 200, 200)
826 Toggle.TextSize = 14.000
827 Toggle.ZIndex = 3
828
829 for _,button in pairs(Frame:GetChildren()) do
830 if button:IsA("TextButton") then
831 button.MouseButton1Down:Connect(function()
832 Element.value.Type = button.Text
833 Frame.Visible = false
834 Element.value.Active = Element.value.Type == "Always" and true or false
835 if Element.value.Type == "Always" then
836 keybindremove(text)
837 end
838 for _,button in pairs(Frame:GetChildren()) do
839 if button:IsA("TextButton") and button.Text ~= Element.value.Type then
840 button.Font = Enum.Font.SourceSansSemibold
841 library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200,200,200)})
842 end
843 end
844 button.Font = Enum.Font.SourceSansBold
845 button.TextColor3 = Color3.fromRGB(173, 24, 74)
846 values[tabname][sectorname][tabtext][text] = Element.value
847 callback(Element.value)
848 end)
849 button.MouseEnter:Connect(function()
850 if Element.value.Type ~= button.Text then
851 library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)})
852 end
853 end)
854 button.MouseLeave:Connect(function()
855 if Element.value.Type ~= button.Text then
856 library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200,200,200)})
857 end
858 end)
859 end
860 end
861 Keybind.MouseButton1Down:Connect(function()
862 if not binding then
863 wait()
864 binding = true
865 Keybind.Text = "..."
866 Keybind.Size = UDim2.new(0,txt:GetTextSize("...", 14, Enum.Font.SourceSansSemibold, Vector2.new(700, 12)).X + 4,0, 12)
867 end
868 end)
869 Keybind.MouseButton2Down:Connect(function()
870 if not binding then
871 Frame.Visible = not Frame.Visible
872 end
873 end)
874 local Player = game.Players.LocalPlayer
875 local Mouse = Player:GetMouse()
876 local InFrame = false
877 Frame.MouseEnter:Connect(function()
878 InFrame = true
879 end)
880 Frame.MouseLeave:Connect(function()
881 InFrame = false
882 end)
883 local InFrame2 = false
884 Keybind.MouseEnter:Connect(function()
885 InFrame2 = true
886 end)
887 Keybind.MouseLeave:Connect(function()
888 InFrame2 = false
889 end)
890 game:GetService("UserInputService").InputBegan:Connect(function(input)
891 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 and not binding then
892 if Frame.Visible == true and not InFrame and not InFrame2 then
893 Frame.Visible = false
894 end
895 end
896 if binding then
897 binding = false
898 Keybind.Text = input.KeyCode.Name ~= "Unknown" and input.KeyCode.Name:upper() or input.UserInputType.Name:upper()
899 Keybind.Size = UDim2.new(0,txt:GetTextSize(Keybind.Text, 14, Enum.Font.SourceSansSemibold, Vector2.new(700, 12)).X + 5,0, 12)
900 Element.value.Key = input.KeyCode.Name ~= "Unknown" and input.KeyCode.Name or input.UserInputType.Name
901 if input.KeyCode.Name == "Backspace" then
902 Keybind.Text = "NONE"
903 Keybind.Size = UDim2.new(0,txt:GetTextSize(Keybind.Text, 14, Enum.Font.SourceSansSemibold, Vector2.new(700, 12)).X + 4,0, 12)
904 Element.value.Key = nil
905 end
906 else
907 if Element.value.Key ~= nil then
908 if string.find(Element.value.Key, "Mouse") then
909 if input.UserInputType == Enum.UserInputType[Element.value.Key] then
910 if Element.value.Type == "Hold" then
911 Element.value.Active = true
912 if Element.value.Active and Element.value.Toggle then
913 keybindadd(text)
914 else
915 keybindremove(text)
916 end
917 elseif Element.value.Type == "Toggle" then
918 Element.value.Active = not Element.value.Active
919 if Element.value.Active and Element.value.Toggle then
920 keybindadd(text)
921 else
922 keybindremove(text)
923 end
924 end
925 end
926 else
927 if input.KeyCode == Enum.KeyCode[Element.value.Key] then
928 if Element.value.Type == "Hold" then
929 Element.value.Active = true
930 if Element.value.Active and Element.value.Toggle then
931 keybindadd(text)
932 else
933 keybindremove(text)
934 end
935 elseif Element.value.Type == "Toggle" then
936 Element.value.Active = not Element.value.Active
937 if Element.value.Active and Element.value.Toggle then
938 keybindadd(text)
939 else
940 keybindremove(text)
941 end
942 end
943 end
944 end
945 else
946 Element.value.Active = true
947 end
948 end
949 values[tabname][sectorname][tabtext][text] = Element.value
950 callback(Element.value)
951 end)
952 game:GetService("UserInputService").InputEnded:Connect(function(input)
953 if Element.value.Key ~= nil then
954 if string.find(Element.value.Key, "Mouse") then
955 if input.UserInputType == Enum.UserInputType[Element.value.Key] then
956 if Element.value.Type == "Hold" then
957 Element.value.Active = false
958 if Element.value.Active and Element.value.Toggle then
959 keybindadd(text)
960 else
961 keybindremove(text)
962 end
963 end
964 end
965 else
966 if input.KeyCode == Enum.KeyCode[Element.value.Key] then
967 if Element.value.Type == "Hold" then
968 Element.value.Active = false
969 if Element.value.Active and Element.value.Toggle then
970 keybindadd(text)
971 else
972 keybindremove(text)
973 end
974 end
975 end
976 end
977 end
978 values[tabname][sectorname][tabtext][text] = Element.value
979 callback(Element.value)
980 end)
981 end
982 function Element:SetValue(value)
983 Element.value = value
984 update()
985 end
986 elseif type == "Toggle" then
987 tabsize = tabsize + UDim2.new(0,0,0,16)
988 Element.value = {Toggle = data.default and data.default.Toggle or false}
989
990 local Toggle = Instance.new("Frame")
991 local Button = Instance.new("TextButton")
992 local Color = Instance.new("Frame")
993 local TextLabel = Instance.new("TextLabel")
994
995 Toggle.Name = "Toggle"
996 Toggle.Parent = tab1
997 Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
998 Toggle.BackgroundTransparency = 1.000
999 Toggle.Size = UDim2.new(1, 0, 0, 15)
1000
1001 Button.Name = "Button"
1002 Button.Parent = Toggle
1003 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1004 Button.BackgroundTransparency = 1.000
1005 Button.Size = UDim2.new(1, 0, 1, 0)
1006 Button.Font = Enum.Font.SourceSans
1007 Button.Text = ""
1008 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
1009 Button.TextSize = 14.000
1010
1011 Color.Name = "Color"
1012 Color.Parent = Button
1013 Color.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1014 Color.BorderColor3 = Color3.fromRGB(27, 27, 35)
1015 Color.Position = UDim2.new(0, 15, 0.5, -5)
1016 Color.Size = UDim2.new(0, 8, 0, 8)
1017
1018 TextLabel.Parent = Button
1019 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1020 TextLabel.BackgroundTransparency = 1.000
1021 TextLabel.Position = UDim2.new(0, 32, 0, -1)
1022 TextLabel.Size = UDim2.new(0.111913361, 208, 1, 0)
1023 TextLabel.Font = Enum.Font.SourceSansSemibold
1024 TextLabel.Text = text
1025 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
1026 TextLabel.TextSize = 14.000
1027 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
1028
1029 local function update()
1030 if Element.value.Toggle then
1031 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(155, 22, 66)})
1032 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
1033 else
1034 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(33, 35, 47)})
1035 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
1036 end
1037 values[tabname][sectorname][tabtext][text] = Element.value
1038 end
1039
1040 Button.MouseButton1Down:Connect(function()
1041 Element.value.Toggle = not Element.value.Toggle
1042 update()
1043 values[tabname][sectorname][tabtext][text] = Element.value
1044 callback(Element.value)
1045 end)
1046 if data.default then
1047 update()
1048 end
1049 values[tabname][sectorname][tabtext][text] = Element.value
1050 function Element:SetValue(value)
1051 Element.value = value
1052 values[tabname][sectorname][tabtext][text] = Element.value
1053 update()
1054 callback(Element.value)
1055 end
1056 elseif type == "ToggleColor" then
1057 tabsize = tabsize + UDim2.new(0,0,0,16)
1058 Element.value = {Toggle = data.default and data.default.Toggle or false, Color = data.default and data.default.Color or Color3.fromRGB(255,255,255)}
1059
1060 local Toggle = Instance.new("Frame")
1061 local Button = Instance.new("TextButton")
1062 local Color = Instance.new("Frame")
1063 local TextLabel = Instance.new("TextLabel")
1064
1065 Toggle.Name = "Toggle"
1066 Toggle.Parent = tab1
1067 Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1068 Toggle.BackgroundTransparency = 1.000
1069 Toggle.Size = UDim2.new(1, 0, 0, 15)
1070
1071 Button.Name = "Button"
1072 Button.Parent = Toggle
1073 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1074 Button.BackgroundTransparency = 1.000
1075 Button.Size = UDim2.new(1, 0, 1, 0)
1076 Button.Font = Enum.Font.SourceSans
1077 Button.Text = ""
1078 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
1079 Button.TextSize = 14.000
1080
1081 Color.Name = "Color"
1082 Color.Parent = Button
1083 Color.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1084 Color.BorderColor3 = Color3.fromRGB(27, 27, 35)
1085 Color.Position = UDim2.new(0, 15, 0.5, -5)
1086 Color.Size = UDim2.new(0, 8, 0, 8)
1087
1088 TextLabel.Parent = Button
1089 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1090 TextLabel.BackgroundTransparency = 1.000
1091 TextLabel.Position = UDim2.new(0, 32, 0, -1)
1092 TextLabel.Size = UDim2.new(0.111913361, 208, 1, 0)
1093 TextLabel.Font = Enum.Font.SourceSansSemibold
1094 TextLabel.Text = text
1095 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
1096 TextLabel.TextSize = 14.000
1097 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
1098
1099 local function update()
1100 if Element.value.Toggle then
1101 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(155, 22, 66)})
1102 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
1103 else
1104 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(33, 35, 47)})
1105 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
1106 end
1107 values[tabname][sectorname][tabtext][text] = Element.value
1108 callback(Element.value)
1109 end
1110
1111 local ColorH,ColorS,ColorV
1112
1113 local ColorP = Instance.new("TextButton")
1114 local Frame = Instance.new("Frame")
1115 local Colorpick = Instance.new("ImageButton")
1116 local ColorDrag = Instance.new("Frame")
1117 local Huepick = Instance.new("ImageButton")
1118 local Huedrag = Instance.new("Frame")
1119
1120 ColorP.Name = "ColorP"
1121 ColorP.Parent = Button
1122 ColorP.AnchorPoint = Vector2.new(1, 0)
1123 ColorP.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
1124 ColorP.BorderColor3 = Color3.fromRGB(27, 27, 35)
1125 ColorP.Position = UDim2.new(0, 270, 0.5, -4)
1126 ColorP.Size = UDim2.new(0, 18, 0, 8)
1127 ColorP.AutoButtonColor = false
1128 ColorP.Font = Enum.Font.SourceSansSemibold
1129 ColorP.Text = ""
1130 ColorP.TextColor3 = Color3.fromRGB(200, 200, 200)
1131 ColorP.TextSize = 14.000
1132
1133 Frame.Parent = ColorP
1134 Frame.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1135 Frame.BorderColor3 = Color3.fromRGB(27, 27, 35)
1136 Frame.Position = UDim2.new(-0.666666687, -170, 1.375, 0)
1137 Frame.Size = UDim2.new(0, 200, 0, 170)
1138 Frame.Visible = false
1139 Frame.ZIndex = 3
1140
1141 Colorpick.Name = "Colorpick"
1142 Colorpick.Parent = Frame
1143 Colorpick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1144 Colorpick.BorderColor3 = Color3.fromRGB(27, 27, 35)
1145 Colorpick.ClipsDescendants = false
1146 Colorpick.Position = UDim2.new(0, 40, 0, 10)
1147 Colorpick.Size = UDim2.new(0, 150, 0, 150)
1148 Colorpick.AutoButtonColor = false
1149 Colorpick.Image = "rbxassetid://4155801252"
1150 Colorpick.ImageColor3 = Color3.fromRGB(255, 0, 0)
1151 Colorpick.ZIndex = 3
1152
1153 ColorDrag.Name = "ColorDrag"
1154 ColorDrag.Parent = Colorpick
1155 ColorDrag.AnchorPoint = Vector2.new(0.5, 0.5)
1156 ColorDrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1157 ColorDrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
1158 ColorDrag.Size = UDim2.new(0, 4, 0, 4)
1159 ColorDrag.ZIndex = 3
1160
1161 Huepick.Name = "Huepick"
1162 Huepick.Parent = Frame
1163 Huepick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1164 Huepick.BorderColor3 = Color3.fromRGB(27, 27, 35)
1165 Huepick.ClipsDescendants = false
1166 Huepick.Position = UDim2.new(0, 10, 0, 10)
1167 Huepick.Size = UDim2.new(0, 20, 0, 150)
1168 Huepick.AutoButtonColor = false
1169 Huepick.Image = "rbxassetid://3641079629"
1170 Huepick.ImageColor3 = Color3.fromRGB(255, 0, 0)
1171 Huepick.ImageTransparency = 1
1172 Huepick.BackgroundTransparency = 0
1173 Huepick.ZIndex = 3
1174
1175 local HueFrameGradient = Instance.new("UIGradient")
1176 HueFrameGradient.Rotation = 90
1177 HueFrameGradient.Name = "HueFrameGradient"
1178 HueFrameGradient.Parent = Huepick
1179 HueFrameGradient.Color = ColorSequence.new {
1180 ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)),
1181 ColorSequenceKeypoint.new(0.17, Color3.fromRGB(255, 0, 255)),
1182 ColorSequenceKeypoint.new(0.33, Color3.fromRGB(0, 0, 255)),
1183 ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 255, 255)),
1184 ColorSequenceKeypoint.new(0.67, Color3.fromRGB(0, 255, 0)),
1185 ColorSequenceKeypoint.new(0.83, Color3.fromRGB(255, 255, 0)),
1186 ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))
1187 }
1188
1189 Huedrag.Name = "Huedrag"
1190 Huedrag.Parent = Huepick
1191 Huedrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1192 Huedrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
1193 Huedrag.Size = UDim2.new(1, 0, 0, 2)
1194 Huedrag.ZIndex = 3
1195
1196 ColorP.MouseButton1Down:Connect(function()
1197 Frame.Visible = not Frame.Visible
1198 end)
1199 local abc = false
1200 local inCP = false
1201 ColorP.MouseEnter:Connect(function()
1202 abc = true
1203 end)
1204 ColorP.MouseLeave:Connect(function()
1205 abc = false
1206 end)
1207 Frame.MouseEnter:Connect(function()
1208 inCP = true
1209 end)
1210 Frame.MouseLeave:Connect(function()
1211 inCP = false
1212 end)
1213
1214 ColorH = (math.clamp(Huedrag.AbsolutePosition.Y-Huepick.AbsolutePosition.Y, 0, Huepick.AbsoluteSize.Y)/Huepick.AbsoluteSize.Y)
1215 ColorS = 1-(math.clamp(ColorDrag.AbsolutePosition.X-Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
1216 ColorV = 1-(math.clamp(ColorDrag.AbsolutePosition.Y-Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
1217
1218 if data.default.Color ~= nil then
1219 ColorH, ColorS, ColorV = data.default.Color:ToHSV()
1220
1221 ColorH = math.clamp(ColorH,0,1)
1222 ColorS = math.clamp(ColorS,0,1)
1223 ColorV = math.clamp(ColorV,0,1)
1224 ColorDrag.Position = UDim2.new(1-ColorS,0,1-ColorV,0)
1225 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1226
1227 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
1228 Huedrag.Position = UDim2.new(0, 0, 1-ColorH, -1)
1229 end
1230
1231 local mouse = game:GetService("Players").LocalPlayer:GetMouse()
1232 game:GetService("UserInputService").InputBegan:Connect(function(input)
1233 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
1234 if not dragging and not abc and not inCP then
1235 Frame.Visible = false
1236 end
1237 end
1238 end)
1239
1240 local function updateColor()
1241 local ColorX = (math.clamp(mouse.X - Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
1242 local ColorY = (math.clamp(mouse.Y - Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
1243 ColorDrag.Position = UDim2.new(ColorX, 0, ColorY, 0)
1244 ColorS = 1-ColorX
1245 ColorV = 1-ColorY
1246 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1247 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
1248 values[tabname][sectorname][tabtext][text] = Element.value
1249 Element.value.Color = Color3.fromHSV(ColorH, ColorS, ColorV)
1250 callback(Element.value)
1251 end
1252 local function updateHue()
1253 local y = math.clamp(mouse.Y - Huepick.AbsolutePosition.Y, 0, 148)
1254 Huedrag.Position = UDim2.new(0, 0, 0, y)
1255 hue = y/148
1256 ColorH = 1-hue
1257 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1258 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
1259 values[tabname][sectorname][tabtext][text] = Element.value
1260 Element.value.Color = Color3.fromHSV(ColorH, ColorS, ColorV)
1261 callback(Element.value)
1262 end
1263 Colorpick.MouseButton1Down:Connect(function()
1264 updateColor()
1265 moveconnection = mouse.Move:Connect(function()
1266 updateColor()
1267 end)
1268 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
1269 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
1270 updateColor()
1271 moveconnection:Disconnect()
1272 releaseconnection:Disconnect()
1273 end
1274 end)
1275 end)
1276 Huepick.MouseButton1Down:Connect(function()
1277 updateHue()
1278 moveconnection = mouse.Move:Connect(function()
1279 updateHue()
1280 end)
1281 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
1282 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
1283 updateHue()
1284 moveconnection:Disconnect()
1285 releaseconnection:Disconnect()
1286 end
1287 end)
1288 end)
1289
1290 Button.MouseButton1Down:Connect(function()
1291 Element.value.Toggle = not Element.value.Toggle
1292 update()
1293 values[tabname][sectorname][tabtext][text] = Element.value
1294 callback(Element.value)
1295 end)
1296 if data.default then
1297 update()
1298 end
1299 values[tabname][sectorname][tabtext][text] = Element.value
1300 function Element:SetValue(value)
1301 Element.value = value
1302 local duplicate = Color3.new(value.Color.R, value.Color.G, value.Color.B)
1303 ColorH, ColorS, ColorV = duplicate:ToHSV()
1304 ColorH = math.clamp(ColorH,0,1)
1305 ColorS = math.clamp(ColorS,0,1)
1306 ColorV = math.clamp(ColorV,0,1)
1307
1308 ColorDrag.Position = UDim2.new(1-ColorS,0,1-ColorV,0)
1309 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1310 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
1311 update()
1312 Huedrag.Position = UDim2.new(0, 0, 1-ColorH, -1)
1313 end
1314 elseif type == "ToggleTrans" then
1315 tabsize = tabsize + UDim2.new(0,0,0,16)
1316 Element.value = {Toggle = data.default and data.default.Toggle or false, Color = data.default and data.default.Color or Color3.fromRGB(255,255,255), Transparency = data.default and data.default.Transparency or 0}
1317
1318 local Toggle = Instance.new("Frame")
1319 local Button = Instance.new("TextButton")
1320 local Color = Instance.new("Frame")
1321 local TextLabel = Instance.new("TextLabel")
1322
1323 Toggle.Name = "Toggle"
1324 Toggle.Parent = tab1
1325 Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1326 Toggle.BackgroundTransparency = 1.000
1327 Toggle.Size = UDim2.new(1, 0, 0, 15)
1328
1329 Button.Name = "Button"
1330 Button.Parent = Toggle
1331 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1332 Button.BackgroundTransparency = 1.000
1333 Button.Size = UDim2.new(1, 0, 1, 0)
1334 Button.Font = Enum.Font.SourceSans
1335 Button.Text = ""
1336 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
1337 Button.TextSize = 14.000
1338
1339 Color.Name = "Color"
1340 Color.Parent = Button
1341 Color.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1342 Color.BorderColor3 = Color3.fromRGB(27, 27, 35)
1343 Color.Position = UDim2.new(0, 15, 0.5, -5)
1344 Color.Size = UDim2.new(0, 8, 0, 8)
1345
1346 TextLabel.Parent = Button
1347 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1348 TextLabel.BackgroundTransparency = 1.000
1349 TextLabel.Position = UDim2.new(0, 32, 0, -1)
1350 TextLabel.Size = UDim2.new(0.111913361, 208, 1, 0)
1351 TextLabel.Font = Enum.Font.SourceSansSemibold
1352 TextLabel.Text = text
1353 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
1354 TextLabel.TextSize = 14.000
1355 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
1356
1357 local function update()
1358 if Element.value.Toggle then
1359 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(155, 22, 66)})
1360 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
1361 else
1362 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(33, 35, 47)})
1363 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
1364 end
1365 values[tabname][sectorname][tabtext][text] = Element.value
1366 callback(Element.value)
1367 end
1368
1369 local ColorH,ColorS,ColorV
1370
1371 local ColorP = Instance.new("TextButton")
1372 local Frame = Instance.new("Frame")
1373 local Colorpick = Instance.new("ImageButton")
1374 local ColorDrag = Instance.new("Frame")
1375 local Huepick = Instance.new("ImageButton")
1376 local Huedrag = Instance.new("Frame")
1377
1378 ColorP.Name = "ColorP"
1379 ColorP.Parent = Button
1380 ColorP.AnchorPoint = Vector2.new(1, 0)
1381 ColorP.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
1382 ColorP.BorderColor3 = Color3.fromRGB(27, 27, 35)
1383 ColorP.Position = UDim2.new(0, 270, 0.5, -4)
1384 ColorP.Size = UDim2.new(0, 18, 0, 8)
1385 ColorP.AutoButtonColor = false
1386 ColorP.Font = Enum.Font.SourceSansSemibold
1387 ColorP.Text = ""
1388 ColorP.TextColor3 = Color3.fromRGB(200, 200, 200)
1389 ColorP.TextSize = 14.000
1390
1391 Frame.Parent = ColorP
1392 Frame.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1393 Frame.BorderColor3 = Color3.fromRGB(27, 27, 35)
1394 Frame.Position = UDim2.new(-0.666666687, -170, 1.375, 0)
1395 Frame.Size = UDim2.new(0, 200, 0, 190)
1396 Frame.Visible = false
1397 Frame.ZIndex = 3
1398
1399 Colorpick.Name = "Colorpick"
1400 Colorpick.Parent = Frame
1401 Colorpick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1402 Colorpick.BorderColor3 = Color3.fromRGB(27, 27, 35)
1403 Colorpick.ClipsDescendants = false
1404 Colorpick.Position = UDim2.new(0, 40, 0, 10)
1405 Colorpick.Size = UDim2.new(0, 150, 0, 150)
1406 Colorpick.AutoButtonColor = false
1407 Colorpick.Image = "rbxassetid://4155801252"
1408 Colorpick.ImageColor3 = Color3.fromRGB(255, 0, 0)
1409 Colorpick.ZIndex = 3
1410
1411 ColorDrag.Name = "ColorDrag"
1412 ColorDrag.Parent = Colorpick
1413 ColorDrag.AnchorPoint = Vector2.new(0.5, 0.5)
1414 ColorDrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1415 ColorDrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
1416 ColorDrag.Size = UDim2.new(0, 4, 0, 4)
1417 ColorDrag.ZIndex = 3
1418
1419 Huepick.Name = "Huepick"
1420 Huepick.Parent = Frame
1421 Huepick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1422 Huepick.BorderColor3 = Color3.fromRGB(27, 27, 35)
1423 Huepick.ClipsDescendants = true
1424 Huepick.Position = UDim2.new(0, 10, 0, 10)
1425 Huepick.Size = UDim2.new(0, 20, 0, 150)
1426 Huepick.AutoButtonColor = false
1427 Huepick.Image = "rbxassetid://3641079629"
1428 Huepick.ImageColor3 = Color3.fromRGB(255, 0, 0)
1429 Huepick.ImageTransparency = 1
1430 Huepick.BackgroundTransparency = 0
1431 Huepick.ZIndex = 3
1432
1433 local HueFrameGradient = Instance.new("UIGradient")
1434 HueFrameGradient.Rotation = 90
1435 HueFrameGradient.Name = "HueFrameGradient"
1436 HueFrameGradient.Parent = Huepick
1437 HueFrameGradient.Color = ColorSequence.new {
1438 ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)),
1439 ColorSequenceKeypoint.new(0.17, Color3.fromRGB(255, 0, 255)),
1440 ColorSequenceKeypoint.new(0.33, Color3.fromRGB(0, 0, 255)),
1441 ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 255, 255)),
1442 ColorSequenceKeypoint.new(0.67, Color3.fromRGB(0, 255, 0)),
1443 ColorSequenceKeypoint.new(0.83, Color3.fromRGB(255, 255, 0)),
1444 ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))
1445 }
1446
1447 Huedrag.Name = "Huedrag"
1448 Huedrag.Parent = Huepick
1449 Huedrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1450 Huedrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
1451 Huedrag.Size = UDim2.new(1, 0, 0, 2)
1452 Huedrag.ZIndex = 3
1453
1454 local Transpick = Instance.new("ImageButton")
1455 local Transcolor = Instance.new("ImageLabel")
1456 local Transdrag = Instance.new("Frame")
1457
1458 Transpick.Name = "Transpick"
1459 Transpick.Parent = Frame
1460 Transpick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1461 Transpick.BorderColor3 = Color3.fromRGB(27, 27, 35)
1462 Transpick.Position = UDim2.new(0, 10, 0, 167)
1463 Transpick.Size = UDim2.new(0, 180, 0, 15)
1464 Transpick.AutoButtonColor = false
1465 Transpick.Image = "rbxassetid://3887014957"
1466 Transpick.ScaleType = Enum.ScaleType.Tile
1467 Transpick.TileSize = UDim2.new(0, 10, 0, 10)
1468 Transpick.ZIndex = 3
1469
1470 Transcolor.Name = "Transcolor"
1471 Transcolor.Parent = Transpick
1472 Transcolor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1473 Transcolor.BackgroundTransparency = 1.000
1474 Transcolor.Size = UDim2.new(1, 0, 1, 0)
1475 Transcolor.Image = "rbxassetid://3887017050"
1476 Transcolor.ImageColor3 = Color3.fromRGB(255, 0, 4)
1477 Transcolor.ZIndex = 3
1478
1479 Transdrag.Name = "Transdrag"
1480 Transdrag.Parent = Transcolor
1481 Transdrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1482 Transdrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
1483 Transdrag.Position = UDim2.new(0, -1, 0, 0)
1484 Transdrag.Size = UDim2.new(0, 2, 1, 0)
1485 Transdrag.ZIndex = 3
1486
1487 ColorP.MouseButton1Down:Connect(function()
1488 Frame.Visible = not Frame.Visible
1489 end)
1490 local abc = false
1491 local inCP = false
1492 ColorP.MouseEnter:Connect(function()
1493 abc = true
1494 end)
1495 ColorP.MouseLeave:Connect(function()
1496 abc = false
1497 end)
1498 Frame.MouseEnter:Connect(function()
1499 inCP = true
1500 end)
1501 Frame.MouseLeave:Connect(function()
1502 inCP = false
1503 end)
1504
1505 ColorH = (math.clamp(Huedrag.AbsolutePosition.Y-Huepick.AbsolutePosition.Y, 0, Huepick.AbsoluteSize.Y)/Huepick.AbsoluteSize.Y)
1506 ColorS = 1-(math.clamp(ColorDrag.AbsolutePosition.X-Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
1507 ColorV = 1-(math.clamp(ColorDrag.AbsolutePosition.Y-Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
1508
1509 if data.default.Color ~= nil then
1510 ColorH, ColorS, ColorV = data.default.Color:ToHSV()
1511
1512 ColorH = math.clamp(ColorH,0,1)
1513 ColorS = math.clamp(ColorS,0,1)
1514 ColorV = math.clamp(ColorV,0,1)
1515 ColorDrag.Position = UDim2.new(1-ColorS,0,1-ColorV,0)
1516 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1517
1518 Transcolor.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1519
1520 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
1521 Huedrag.Position = UDim2.new(0, 0, 1-ColorH, -1)
1522 end
1523 if data.default.Transparency ~= nil then
1524 Transdrag.Position = UDim2.new(data.default.Transparency, -1, 0, 0)
1525 end
1526 local mouse = game:GetService("Players").LocalPlayer:GetMouse()
1527 game:GetService("UserInputService").InputBegan:Connect(function(input)
1528 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
1529 if not dragging and not abc and not inCP then
1530 Frame.Visible = false
1531 end
1532 end
1533 end)
1534
1535 local function updateColor()
1536 local ColorX = (math.clamp(mouse.X - Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
1537 local ColorY = (math.clamp(mouse.Y - Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
1538 ColorDrag.Position = UDim2.new(ColorX, 0, ColorY, 0)
1539 ColorS = 1-ColorX
1540 ColorV = 1-ColorY
1541 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1542 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
1543 Transcolor.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1544 values[tabname][sectorname][tabtext][text] = Element.value
1545 Element.value.Color = Color3.fromHSV(ColorH, ColorS, ColorV)
1546 callback(Element.value)
1547 end
1548 local function updateHue()
1549 local y = math.clamp(mouse.Y - Huepick.AbsolutePosition.Y, 0, 148)
1550 Huedrag.Position = UDim2.new(0, 0, 0, y)
1551 hue = y/148
1552 ColorH = 1-hue
1553 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1554 Transcolor.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1555 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
1556 values[tabname][sectorname][tabtext][text] = Element.value
1557 Element.value.Color = Color3.fromHSV(ColorH, ColorS, ColorV)
1558 callback(Element.value)
1559 end
1560 local function updateTrans()
1561 local x = math.clamp(mouse.X - Transpick.AbsolutePosition.X, 0, 178)
1562 Transdrag.Position = UDim2.new(0, x, 0, 0)
1563 Element.value.Transparency = (x/178)
1564 values[tabname][sectorname][tabtext][text] = Element.value
1565 callback(Element.value)
1566 end
1567 Transpick.MouseButton1Down:Connect(function()
1568 updateTrans()
1569 moveconnection = mouse.Move:Connect(function()
1570 updateTrans()
1571 end)
1572 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
1573 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
1574 updateTrans()
1575 moveconnection:Disconnect()
1576 releaseconnection:Disconnect()
1577 end
1578 end)
1579 end)
1580 Colorpick.MouseButton1Down:Connect(function()
1581 updateColor()
1582 moveconnection = mouse.Move:Connect(function()
1583 updateColor()
1584 end)
1585 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
1586 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
1587 updateColor()
1588 moveconnection:Disconnect()
1589 releaseconnection:Disconnect()
1590 end
1591 end)
1592 end)
1593 Huepick.MouseButton1Down:Connect(function()
1594 updateHue()
1595 moveconnection = mouse.Move:Connect(function()
1596 updateHue()
1597 end)
1598 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
1599 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
1600 updateHue()
1601 moveconnection:Disconnect()
1602 releaseconnection:Disconnect()
1603 end
1604 end)
1605 end)
1606
1607 Button.MouseButton1Down:Connect(function()
1608 Element.value.Toggle = not Element.value.Toggle
1609 update()
1610 values[tabname][sectorname][tabtext][text] = Element.value
1611 callback(Element.value)
1612 end)
1613 if data.default then
1614 update()
1615 end
1616 values[tabname][sectorname][tabtext][text] = Element.value
1617 function Element:SetValue(value)
1618 Element.value = value
1619 local duplicate = Color3.new(value.Color.R, value.Color.G, value.Color.B)
1620 ColorH, ColorS, ColorV = duplicate:ToHSV()
1621 ColorH = math.clamp(ColorH,0,1)
1622 ColorS = math.clamp(ColorS,0,1)
1623 ColorV = math.clamp(ColorV,0,1)
1624
1625 ColorDrag.Position = UDim2.new(1-ColorS,0,1-ColorV,0)
1626 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
1627 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
1628 update()
1629 Huedrag.Position = UDim2.new(0, 0, 1-ColorH, -1)
1630 end
1631 elseif type == "Dropdown" then
1632 tabsize = tabsize + UDim2.new(0,0,0,39)
1633 Element.value = {Dropdown = data.options[1]}
1634
1635 local Dropdown = Instance.new("Frame")
1636 local Button = Instance.new("TextButton")
1637 local TextLabel = Instance.new("TextLabel")
1638 local Drop = Instance.new("ScrollingFrame")
1639 local Button_2 = Instance.new("TextButton")
1640 local TextLabel_2 = Instance.new("TextLabel")
1641 local UIListLayout = Instance.new("UIListLayout")
1642 local ImageLabel = Instance.new("ImageLabel")
1643 local TextLabel_3 = Instance.new("TextLabel")
1644
1645 Dropdown.Name = "Dropdown"
1646 Dropdown.Parent = tab1
1647 Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1648 Dropdown.BackgroundTransparency = 1.000
1649 Dropdown.Position = UDim2.new(0, 0, 0.255102038, 0)
1650 Dropdown.Size = UDim2.new(1, 0, 0, 39)
1651
1652 Button.Name = "Button"
1653 Button.Parent = Dropdown
1654 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1655 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
1656 Button.Position = UDim2.new(0, 30, 0, 16)
1657 Button.Size = UDim2.new(0, 175, 0, 17)
1658 Button.AutoButtonColor = false
1659 Button.Font = Enum.Font.SourceSans
1660 Button.Text = ""
1661 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
1662 Button.TextSize = 14.000
1663
1664 TextLabel.Parent = Button
1665 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1666 TextLabel.BackgroundTransparency = 1.000
1667 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
1668 TextLabel.Position = UDim2.new(0, 5, 0, 0)
1669 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
1670 TextLabel.Font = Enum.Font.SourceSansSemibold
1671 TextLabel.Text = Element.value.Dropdown
1672 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
1673 TextLabel.TextSize = 14.000
1674 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
1675
1676 local abcd = TextLabel
1677
1678 Drop.Name = "Drop"
1679 Drop.Parent = Button
1680 Drop.Active = true
1681 Drop.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1682 Drop.BorderColor3 = Color3.fromRGB(27, 27, 35)
1683 Drop.Position = UDim2.new(0, 0, 1, 1)
1684 Drop.Size = UDim2.new(1, 0, 0, 20)
1685 Drop.Visible = false
1686 Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
1687 Drop.CanvasSize = UDim2.new(0, 0, 0, 0)
1688 Drop.ScrollBarThickness = 4
1689 Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
1690 Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
1691 Drop.AutomaticCanvasSize = "Y"
1692 Drop.ZIndex = 5
1693 Drop.ScrollBarImageColor3 = Color3.fromRGB(255, 37, 110)
1694
1695 UIListLayout.Parent = Drop
1696 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
1697 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
1698
1699 local num = #data.options
1700 if num > 5 then
1701 Drop.Size = UDim2.new(1, 0, 0, 85)
1702 else
1703 Drop.Size = UDim2.new(1, 0, 0, 17*num)
1704 end
1705 local first = true
1706 for i,v in ipairs(data.options) do
1707 do
1708 local Button = Instance.new("TextButton")
1709 local TextLabel = Instance.new("TextLabel")
1710
1711 Button.Name = v
1712 Button.Parent = Drop
1713 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1714 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
1715 Button.Position = UDim2.new(0, 30, 0, 16)
1716 Button.Size = UDim2.new(0, 175, 0, 17)
1717 Button.AutoButtonColor = false
1718 Button.Font = Enum.Font.SourceSans
1719 Button.Text = ""
1720 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
1721 Button.TextSize = 14.000
1722 Button.BorderSizePixel = 0
1723 Button.ZIndex = 6
1724
1725 TextLabel.Parent = Button
1726 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1727 TextLabel.BackgroundTransparency = 1.000
1728 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
1729 TextLabel.Position = UDim2.new(0, 5, 0, -1)
1730 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
1731 TextLabel.Font = Enum.Font.SourceSansSemibold
1732 TextLabel.Text = v
1733 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
1734 TextLabel.TextSize = 14.000
1735 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
1736 TextLabel.ZIndex = 6
1737
1738 Button.MouseButton1Down:Connect(function()
1739 Drop.Visible = false
1740 Element.value.Dropdown = v
1741 abcd.Text = v
1742 values[tabname][sectorname][tabtext][text] = Element.value
1743 callback(Element.value)
1744 Drop.CanvasPosition = Vector2.new(0,0)
1745 end)
1746 Button.MouseEnter:Connect(function()
1747 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
1748 end)
1749 Button.MouseLeave:Connect(function()
1750 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
1751 end)
1752
1753 first = false
1754 end
1755 end
1756
1757 function Element:SetValue(val)
1758 Element.value = val
1759 abcd.Text = val.Dropdown
1760 values[tabname][sectorname][tabtext][text] = Element.value
1761 callback(val)
1762 end
1763
1764 ImageLabel.Parent = Button
1765 ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1766 ImageLabel.BackgroundTransparency = 1.000
1767 ImageLabel.Position = UDim2.new(0, 165, 0, 6)
1768 ImageLabel.Size = UDim2.new(0, 6, 0, 4)
1769 ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
1770
1771 TextLabel_3.Parent = Dropdown
1772 TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1773 TextLabel_3.BackgroundTransparency = 1.000
1774 TextLabel_3.Position = UDim2.new(0, 32, 0, -1)
1775 TextLabel_3.Size = UDim2.new(0.111913361, 208, 0.382215232, 0)
1776 TextLabel_3.Font = Enum.Font.SourceSansSemibold
1777 TextLabel_3.Text = text
1778 TextLabel_3.TextColor3 = Color3.fromRGB(200, 200, 200)
1779 TextLabel_3.TextSize = 14.000
1780 TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
1781
1782 Button.MouseButton1Down:Connect(function()
1783 Drop.Visible = not Drop.Visible
1784 if not Drop.Visible then
1785 Drop.CanvasPosition = Vector2.new(0,0)
1786 end
1787 end)
1788 local indrop = false
1789 local ind = false
1790 Drop.MouseEnter:Connect(function()
1791 indrop = true
1792 end)
1793 Drop.MouseLeave:Connect(function()
1794 indrop = false
1795 end)
1796 Button.MouseEnter:Connect(function()
1797 ind = true
1798 end)
1799 Button.MouseLeave:Connect(function()
1800 ind = false
1801 end)
1802 game:GetService("UserInputService").InputBegan:Connect(function(input)
1803 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
1804 if Drop.Visible == true and not indrop and not ind then
1805 Drop.Visible = false
1806 Drop.CanvasPosition = Vector2.new(0,0)
1807 end
1808 end
1809 end)
1810 values[tabname][sectorname][tabtext][text] = Element.value
1811 elseif type == "Slider" then
1812
1813 tabsize = tabsize + UDim2.new(0,0,0,25)
1814
1815 local Slider = Instance.new("Frame")
1816 local TextLabel = Instance.new("TextLabel")
1817 local Button = Instance.new("TextButton")
1818 local Frame = Instance.new("Frame")
1819 local UIGradient = Instance.new("UIGradient")
1820 local Value = Instance.new("TextLabel")
1821
1822 Slider.Name = "Slider"
1823 Slider.Parent = tab1
1824 Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1825 Slider.BackgroundTransparency = 1.000
1826 Slider.Position = UDim2.new(0, 0, 0.653061211, 0)
1827 Slider.Size = UDim2.new(1, 0, 0, 25)
1828
1829 TextLabel.Parent = Slider
1830 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1831 TextLabel.BackgroundTransparency = 1.000
1832 TextLabel.Position = UDim2.new(0, 32, 0, -2)
1833 TextLabel.Size = UDim2.new(0, 100, 0, 15)
1834 TextLabel.Font = Enum.Font.SourceSansSemibold
1835 TextLabel.Text = text
1836 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
1837 TextLabel.TextSize = 14.000
1838 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
1839
1840 Button.Name = "Button"
1841 Button.Parent = Slider
1842 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1843 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
1844 Button.Position = UDim2.new(0, 30, 0, 15)
1845 Button.Size = UDim2.new(0, 175, 0, 5)
1846 Button.AutoButtonColor = false
1847 Button.Font = Enum.Font.SourceSans
1848 Button.Text = ""
1849 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
1850 Button.TextSize = 14.000
1851
1852 Frame.Parent = Button
1853 Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1854 Frame.BorderSizePixel = 0
1855 Frame.Size = UDim2.new(0.5, 0, 1, 0)
1856
1857 UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(153, 22, 65)), ColorSequenceKeypoint.new(1, Color3.fromRGB(109, 16, 46))}
1858 UIGradient.Rotation = 90
1859 UIGradient.Parent = Frame
1860
1861 Value.Name = "Value"
1862 Value.Parent = Slider
1863 Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1864 Value.BackgroundTransparency = 1.000
1865 Value.Position = UDim2.new(0, 150, 0, -1)
1866 Value.Size = UDim2.new(0, 55, 0, 15)
1867 Value.Font = Enum.Font.SourceSansSemibold
1868 Value.Text = "50"
1869 Value.TextColor3 = Color3.fromRGB(200, 200, 200)
1870 Value.TextSize = 14.000
1871 Value.TextXAlignment = Enum.TextXAlignment.Right
1872 local min, max, default = data.min or 0, data.max or 100, data.default or 0
1873 Element.value = {Slider = default}
1874
1875 function Element:SetValue(value)
1876 Element.value = value
1877 local a
1878 if min > 0 then
1879 a = ((Element.value.Slider - min)) / (max-min)
1880 else
1881 a = (Element.value.Slider-min)/(max-min)
1882 end
1883 Value.Text = Element.value.Slider
1884 Frame.Size = UDim2.new(a,0,1,0)
1885 values[tabname][sectorname][tabtext][text] = Element.value
1886 callback(value)
1887 end
1888 local a
1889 if min > 0 then
1890 a = ((Element.value.Slider - min)) / (max-min)
1891 else
1892 a = (Element.value.Slider-min)/(max-min)
1893 end
1894 Value.Text = Element.value.Slider
1895 Frame.Size = UDim2.new(a,0,1,0)
1896 values[tabname][sectorname][tabtext][text] = Element.value
1897 local uis = game:GetService("UserInputService")
1898 local mouse = game.Players.LocalPlayer:GetMouse()
1899 local val
1900 Button.MouseButton1Down:Connect(function()
1901 Frame.Size = UDim2.new(0, math.clamp(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
1902 val = math.floor((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min)) or 0
1903 Value.Text = val
1904 Element.value.Slider = val
1905 values[tabname][sectorname][tabtext][text] = Element.value
1906 callback(Element.value)
1907 moveconnection = mouse.Move:Connect(function()
1908 Frame.Size = UDim2.new(0, math.clamp(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
1909 val = math.floor((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min))
1910 Value.Text = val
1911 Element.value.Slider = val
1912 values[tabname][sectorname][tabtext][text] = Element.value
1913 callback(Element.value)
1914 end)
1915 releaseconnection = uis.InputEnded:Connect(function(Mouse)
1916 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
1917 Frame.Size = UDim2.new(0, math.clamp(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
1918 val = math.floor((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min))
1919 values[tabname][sectorname][tabtext][text] = Element.value
1920 callback(Element.value)
1921 moveconnection:Disconnect()
1922 releaseconnection:Disconnect()
1923 end
1924 end)
1925 end)
1926 elseif type == "Button" then
1927
1928 tabsize = tabsize + UDim2.new(0,0,0,24)
1929 local Button = Instance.new("Frame")
1930 local Button_2 = Instance.new("TextButton")
1931 local TextLabel = Instance.new("TextLabel")
1932
1933 Button.Name = "Button"
1934 Button.Parent = tab1
1935 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1936 Button.BackgroundTransparency = 1.000
1937 Button.Position = UDim2.new(0, 0, 0.236059487, 0)
1938 Button.Size = UDim2.new(1, 0, 0, 24)
1939
1940 Button_2.Name = "Button"
1941 Button_2.Parent = Button
1942 Button_2.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
1943 Button_2.BorderColor3 = Color3.fromRGB(27, 27, 35)
1944 Button_2.Position = UDim2.new(0, 30, 0.5, -9)
1945 Button_2.Size = UDim2.new(0, 175, 0, 18)
1946 Button_2.AutoButtonColor = false
1947 Button_2.Font = Enum.Font.SourceSans
1948 Button_2.Text = ""
1949 Button_2.TextColor3 = Color3.fromRGB(0, 0, 0)
1950 Button_2.TextSize = 14.000
1951
1952 TextLabel.Parent = Button_2
1953 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
1954 TextLabel.BackgroundTransparency = 1.000
1955 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
1956 TextLabel.Size = UDim2.new(1, 0, 1, 0)
1957 TextLabel.Font = Enum.Font.SourceSansSemibold
1958 TextLabel.Text = text
1959 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
1960 TextLabel.TextSize = 14.000
1961
1962 function Element:SetValue()
1963 end
1964
1965 Button_2.MouseButton1Down:Connect(function()
1966 TextLabel.TextColor3 = Color3.fromRGB(175, 42, 86)
1967 library:Tween(TextLabel, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
1968 callback()
1969 end)
1970 Button_2.MouseEnter:Connect(function()
1971 library:Tween(TextLabel, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
1972 end)
1973 Button_2.MouseLeave:Connect(function()
1974 library:Tween(TextLabel, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
1975 end)
1976 end
1977 ConfigLoad:Connect(function(cfg)
1978 local fix = library:ConfigFix(cfg)
1979 if fix[tabname][sectorname][tabtext][text] ~= nil then
1980 Element:SetValue(fix[tabname][sectorname][tabtext][text])
1981 end
1982 end)
1983
1984 return Element
1985 end
1986
1987
1988 if firs then
1989 coroutine.wrap(function()
1990 game:GetService("RunService").RenderStepped:Wait()
1991 Section.Size = tabsize
1992 end)()
1993 selected = text
1994 TextButton.TextColor3 = Color3.fromRGB(255,255,255)
1995 tab1.Visible = true
1996 firs = false
1997 end
1998
1999 return tab
2000 end
2001
2002 return MSector
2003 end
2004 function Tab:Sector(text, side)
2005 local sectorname = text
2006 local Sector = {}
2007 values[tabname][text] = {}
2008 local Section = Instance.new("Frame")
2009 local SectionText = Instance.new("TextLabel")
2010 local Inner = Instance.new("Frame")
2011 local UIListLayout = Instance.new("UIListLayout")
2012
2013 Section.Name = "Section"
2014 Section.Parent = TabGui[side]
2015 Section.BackgroundColor3 = Color3.fromRGB(27, 27, 35)
2016 Section.BorderColor3 = Color3.fromRGB(27, 27, 35)
2017 Section.BorderSizePixel = 0
2018 Section.Position = UDim2.new(0.00358422939, 0, 0, 0)
2019 Section.Size = UDim2.new(1, 0, 0, 22)
2020
2021 SectionText.Name = "SectionText"
2022 SectionText.Parent = Section
2023 SectionText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2024 SectionText.BackgroundTransparency = 1.000
2025 SectionText.Position = UDim2.new(0, 7, 0, -12)
2026 SectionText.Size = UDim2.new(0, 270, 0, 19)
2027 SectionText.ZIndex = 2
2028 SectionText.Font = Enum.Font.SourceSansSemibold
2029 SectionText.Text = text
2030 SectionText.TextColor3 = Color3.fromRGB(255, 255, 255)
2031 SectionText.TextSize = 15.000
2032 SectionText.TextXAlignment = Enum.TextXAlignment.Left
2033
2034 Inner.Name = "Inner"
2035 Inner.Parent = Section
2036 Inner.BackgroundColor3 = Color3.fromRGB(30, 30, 39)
2037 Inner.BorderColor3 = Color3.fromRGB(27, 27, 35)
2038 Inner.BorderSizePixel = 0
2039 Inner.Position = UDim2.new(0, 1, 0, 1)
2040 Inner.Size = UDim2.new(1, -2, 1, -2)
2041
2042 local UIPadding = Instance.new("UIPadding")
2043
2044 UIPadding.Parent = Inner
2045 UIPadding.PaddingTop = UDim.new(0, 10)
2046
2047 UIListLayout.Parent = Inner
2048 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
2049 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
2050 UIListLayout.Padding = UDim.new(0,1)
2051
2052 function Sector:Element(type, text, data, callback)
2053 local Element = {}
2054 data = data or {}
2055 callback = callback or function() end
2056 values[tabname][sectorname][text] = {}
2057 if type == "ScrollDrop" then
2058 Section.Size = Section.Size + UDim2.new(0,0,0,39)
2059 Element.value = {Scroll = {}, Dropdown = ""}
2060
2061 for i,v in pairs(data.options) do
2062 Element.value.Scroll[i] = v[1]
2063 end
2064
2065 local joe = {}
2066 if data.alphabet then
2067 local copy = {}
2068 for i,v in pairs(data.options) do
2069 table.insert(copy, i)
2070 end
2071 table.sort(copy, function(a,b)
2072 return a < b
2073 end)
2074 joe = copy
2075 else
2076 for i,v in pairs(data.options) do
2077 table.insert(joe, i)
2078 end
2079 end
2080
2081 local Dropdown = Instance.new("Frame")
2082 local Button = Instance.new("TextButton")
2083 local TextLabel = Instance.new("TextLabel")
2084 local Drop = Instance.new("ScrollingFrame")
2085 local Button_2 = Instance.new("TextButton")
2086 local TextLabel_2 = Instance.new("TextLabel")
2087 local UIListLayout = Instance.new("UIListLayout")
2088 local ImageLabel = Instance.new("ImageLabel")
2089 local TextLabel_3 = Instance.new("TextLabel")
2090
2091 Dropdown.Name = "Dropdown"
2092 Dropdown.Parent = Inner
2093 Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2094 Dropdown.BackgroundTransparency = 1.000
2095 Dropdown.Position = UDim2.new(0, 0, 0, 0)
2096 Dropdown.Size = UDim2.new(1, 0, 0, 39)
2097
2098 Button.Name = "Button"
2099 Button.Parent = Dropdown
2100 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2101 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
2102 Button.Position = UDim2.new(0, 30, 0, 16)
2103 Button.Size = UDim2.new(0, 175, 0, 17)
2104 Button.AutoButtonColor = false
2105 Button.Font = Enum.Font.SourceSans
2106 Button.Text = ""
2107 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
2108 Button.TextSize = 14.000
2109
2110 local TextLabel = Instance.new("TextLabel")
2111
2112 TextLabel.Parent = Button
2113 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2114 TextLabel.BackgroundTransparency = 1.000
2115 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
2116 TextLabel.Position = UDim2.new(0, 5, 0, 0)
2117 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
2118 TextLabel.Font = Enum.Font.SourceSansSemibold
2119 TextLabel.Text = "lol"
2120 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
2121 TextLabel.TextSize = 14.000
2122 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
2123
2124 local abcd = TextLabel
2125
2126 Drop.Name = "Drop"
2127 Drop.Parent = Button
2128 Drop.Active = true
2129 Drop.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2130 Drop.BorderColor3 = Color3.fromRGB(27, 27, 35)
2131 Drop.Position = UDim2.new(0, 0, 1, 1)
2132 Drop.Size = UDim2.new(1, 0, 0, 20)
2133 Drop.Visible = false
2134 Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
2135 Drop.CanvasSize = UDim2.new(0, 0, 0, 0)
2136 Drop.ScrollBarThickness = 4
2137 Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
2138 Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
2139 Drop.AutomaticCanvasSize = "Y"
2140 Drop.ZIndex = 5
2141 Drop.ScrollBarImageColor3 = Color3.fromRGB(255, 37, 110)
2142
2143 UIListLayout.Parent = Drop
2144 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
2145 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
2146
2147
2148 local amount = data.Amount or 6
2149 Section.Size = Section.Size + UDim2.new(0,0,0,amount * 16 + 8)
2150
2151 local num = #joe
2152 if num > 5 then
2153 Drop.Size = UDim2.new(1, 0, 0, 85)
2154 else
2155 Drop.Size = UDim2.new(1, 0, 0, 17*num)
2156 end
2157 local first = true
2158 for i,v in ipairs(joe) do
2159 do
2160 local joell = v
2161 local Scroll = Instance.new("Frame")
2162 local joe2 = data.options[v]
2163 local Button = Instance.new("TextButton")
2164 local TextLabel = Instance.new("TextLabel")
2165
2166 Button.Name = v
2167 Button.Parent = Drop
2168 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2169 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
2170 Button.Position = UDim2.new(0, 30, 0, 16)
2171 Button.Size = UDim2.new(0, 175, 0, 17)
2172 Button.AutoButtonColor = false
2173 Button.Font = Enum.Font.SourceSans
2174 Button.Text = ""
2175 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
2176 Button.TextSize = 14.000
2177 Button.BorderSizePixel = 0
2178 Button.ZIndex = 6
2179
2180 TextLabel.Parent = Button
2181 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2182 TextLabel.BackgroundTransparency = 1.000
2183 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
2184 TextLabel.Position = UDim2.new(0, 5, 0, -1)
2185 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
2186 TextLabel.Font = Enum.Font.SourceSansSemibold
2187 TextLabel.Text = v
2188 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
2189 TextLabel.TextSize = 14.000
2190 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
2191 TextLabel.ZIndex = 6
2192
2193 Button.MouseButton1Down:Connect(function()
2194 Drop.Visible = false
2195 Drop.CanvasPosition = Vector2.new(0,0)
2196 abcd.Text = v
2197 for i,v in pairs(Scroll.Parent:GetChildren()) do
2198 if v:IsA("Frame") then
2199 v.Visible = false
2200 end
2201 end
2202 Element.value.Dropdown = v
2203 Scroll.Visible = true
2204 callback(Element.value)
2205 end)
2206 Button.MouseEnter:Connect(function()
2207 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
2208 end)
2209 Button.MouseLeave:Connect(function()
2210 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
2211 end)
2212
2213 if first then
2214 abcd.Text = v
2215 Element.value.Dropdown = v
2216 end
2217 local Frame = Instance.new("ScrollingFrame")
2218 local UIListLayout = Instance.new("UIListLayout")
2219
2220 Scroll.Name = "Scroll"
2221 Scroll.Parent = Dropdown
2222 Scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2223 Scroll.BackgroundTransparency = 1.000
2224 Scroll.Position = UDim2.new(0, 0, 0, 0)
2225 Scroll.Size = UDim2.new(1, 0, 0, amount * 16 + 8)
2226 Scroll.Visible = first
2227 Scroll.Name = v
2228
2229
2230 Frame.Name = "Frame"
2231 Frame.Parent = Scroll
2232 Frame.Active = true
2233 Frame.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2234 Frame.BorderColor3 = Color3.fromRGB(27, 27, 35)
2235 Frame.Position = UDim2.new(0, 30, 0, 40)
2236 Frame.Size = UDim2.new(0, 175, 0, 16 * amount)
2237 Frame.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
2238 Frame.CanvasSize = UDim2.new(0, 0, 0, 0)
2239 Frame.MidImage = "http://www.roblox.com/asset/?id=6724808282"
2240 Frame.ScrollBarThickness = 4
2241 Frame.TopImage = "http://www.roblox.com/asset/?id=6724808282"
2242 Frame.AutomaticCanvasSize = "Y"
2243 Frame.ScrollBarImageColor3 = Color3.fromRGB(255, 37, 110)
2244
2245 UIListLayout.Parent = Frame
2246 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
2247 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
2248 local joll = true
2249 for i,v in ipairs(joe2) do
2250 local Button = Instance.new("TextButton")
2251 local TextLabel = Instance.new("TextLabel")
2252
2253 Button.Name = v
2254 Button.Parent = Frame
2255 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2256 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
2257 Button.BorderSizePixel = 0
2258 Button.Position = UDim2.new(0, 30, 0, 16)
2259 Button.Size = UDim2.new(1, 0, 0, 16)
2260 Button.AutoButtonColor = false
2261 Button.Font = Enum.Font.SourceSans
2262 Button.Text = ""
2263 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
2264 Button.TextSize = 14.000
2265
2266 TextLabel.Parent = Button
2267 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2268 TextLabel.BackgroundTransparency = 1.000
2269 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
2270 TextLabel.Position = UDim2.new(0, 4, 0, -1)
2271 TextLabel.Size = UDim2.new(1, 1, 1, 1)
2272 TextLabel.Font = Enum.Font.SourceSansSemibold
2273 TextLabel.Text = v
2274 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
2275 TextLabel.TextSize = 14.000
2276 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
2277 if joll then
2278 joll = false
2279 TextLabel.TextColor3 = Color3.fromRGB(255, 37, 110)
2280 end
2281
2282 Button.MouseButton1Down:Connect(function()
2283
2284 for i,v in pairs(Frame:GetChildren()) do
2285 if v:IsA("TextButton") then
2286 library:Tween(v.TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
2287 end
2288 end
2289
2290 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 37, 110)})
2291
2292 Element.value.Scroll[joell] = v
2293
2294 values[tabname][sectorname][text] = Element.value
2295 callback(Element.value)
2296 end)
2297 Button.MouseEnter:Connect(function()
2298 if Element.value.Scroll[joell] ~= v then
2299 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
2300 end
2301 end)
2302 Button.MouseLeave:Connect(function()
2303 if Element.value.Scroll[joell] ~= v then
2304 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
2305 end
2306 end)
2307 end
2308 first = false
2309 end
2310 end
2311
2312 ImageLabel.Parent = Button
2313 ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2314 ImageLabel.BackgroundTransparency = 1.000
2315 ImageLabel.Position = UDim2.new(0, 165, 0, 6)
2316 ImageLabel.Size = UDim2.new(0, 6, 0, 4)
2317 ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
2318
2319 TextLabel_3.Parent = Dropdown
2320 TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2321 TextLabel_3.BackgroundTransparency = 1.000
2322 TextLabel_3.Position = UDim2.new(0, 32, 0, -1)
2323 TextLabel_3.Size = UDim2.new(0.111913361, 208, 0.382215232, 0)
2324 TextLabel_3.Font = Enum.Font.SourceSansSemibold
2325 TextLabel_3.Text = text
2326 TextLabel_3.TextColor3 = Color3.fromRGB(200, 200, 200)
2327 TextLabel_3.TextSize = 14.000
2328 TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
2329
2330 Button.MouseButton1Down:Connect(function()
2331 Drop.Visible = not Drop.Visible
2332 if not Drop.Visible then
2333 Drop.CanvasPosition = Vector2.new(0,0)
2334 end
2335 end)
2336 local indrop = false
2337 local ind = false
2338 Drop.MouseEnter:Connect(function()
2339 indrop = true
2340 end)
2341 Drop.MouseLeave:Connect(function()
2342 indrop = false
2343 end)
2344 Button.MouseEnter:Connect(function()
2345 ind = true
2346 end)
2347 Button.MouseLeave:Connect(function()
2348 ind = false
2349 end)
2350 game:GetService("UserInputService").InputBegan:Connect(function(input)
2351 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
2352 if Drop.Visible == true and not indrop and not ind then
2353 Drop.Visible = false
2354 Drop.CanvasPosition = Vector2.new(0,0)
2355 end
2356 end
2357 end)
2358
2359 function Element:SetValue(tbl)
2360 Element.value = tbl
2361 abcd.Text = tbl.Dropdown
2362 values[tabname][sectorname][text] = Element.value
2363 for i,v in pairs(Dropdown:GetChildren()) do
2364 if v:IsA("Frame") then
2365 if v.Name == Element.value.Dropdown then
2366 v.Visible = true
2367 else
2368 v.Visible = false
2369 end
2370 for _,bad in pairs(v.Frame:GetChildren()) do
2371 if bad:IsA("TextButton") then
2372 bad.TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
2373 if bad.Name == Element.value.Scroll[v.Name] then
2374 bad.TextLabel.TextColor3 = Color3.fromRGB(255, 37, 110)
2375 end
2376 end
2377 end
2378 end
2379 end
2380 end
2381
2382 if data.default then
2383 Element:SetValue(data.default)
2384 end
2385
2386 values[tabname][sectorname][text] = Element.value
2387
2388 elseif type == "Scroll" then
2389 local amount = data.Amount or 6
2390 Section.Size = Section.Size + UDim2.new(0,0,0,amount * 16 + 8)
2391 if data.alphabet then
2392 table.sort(data.options, function(a,b)
2393 return a < b
2394 end)
2395 end
2396 Element.value = {Scroll = data.default and data.default.Scroll or data.options[1]}
2397
2398 local Scroll = Instance.new("Frame")
2399 local Frame = Instance.new("ScrollingFrame")
2400 local UIListLayout = Instance.new("UIListLayout")
2401
2402 Scroll.Name = "Scroll"
2403 Scroll.Parent = Inner
2404 Scroll.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2405 Scroll.BackgroundTransparency = 1.000
2406 Scroll.Position = UDim2.new(0, 0, 00, 0)
2407 Scroll.Size = UDim2.new(1, 0, 0, amount * 16 + 8)
2408
2409
2410 Frame.Name = "Frame"
2411 Frame.Parent = Scroll
2412 Frame.Active = true
2413 Frame.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2414 Frame.BorderColor3 = Color3.fromRGB(27, 27, 35)
2415 Frame.Position = UDim2.new(0, 30, 0, 0)
2416 Frame.Size = UDim2.new(0, 175, 0, 16 * amount)
2417 Frame.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
2418 Frame.CanvasSize = UDim2.new(0, 0, 0, 0)
2419 Frame.MidImage = "http://www.roblox.com/asset/?id=6724808282"
2420 Frame.ScrollBarThickness = 4
2421 Frame.TopImage = "http://www.roblox.com/asset/?id=6724808282"
2422 Frame.AutomaticCanvasSize = "Y"
2423 Frame.ScrollBarImageColor3 = Color3.fromRGB(255, 37, 110)
2424
2425 UIListLayout.Parent = Frame
2426 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
2427 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
2428 local first = true
2429 for i,v in ipairs(data.options) do
2430 local Button = Instance.new("TextButton")
2431 local TextLabel = Instance.new("TextLabel")
2432
2433 Button.Name = v
2434 Button.Parent = Frame
2435 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2436 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
2437 Button.BorderSizePixel = 0
2438 Button.Position = UDim2.new(0, 30, 0, 16)
2439 Button.Size = UDim2.new(1, 0, 0, 16)
2440 Button.AutoButtonColor = false
2441 Button.Font = Enum.Font.SourceSans
2442 Button.Text = ""
2443 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
2444 Button.TextSize = 14.000
2445
2446 TextLabel.Parent = Button
2447 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2448 TextLabel.BackgroundTransparency = 1.000
2449 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
2450 TextLabel.Position = UDim2.new(0, 4, 0, -1)
2451 TextLabel.Size = UDim2.new(1, 1, 1, 1)
2452 TextLabel.Font = Enum.Font.SourceSansSemibold
2453 TextLabel.Text = v
2454 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
2455 TextLabel.TextSize = 14.000
2456 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
2457 if first then first = false
2458 TextLabel.TextColor3 = Color3.fromRGB(255, 37, 110)
2459 end
2460
2461 Button.MouseButton1Down:Connect(function()
2462
2463 for i,v in pairs(Frame:GetChildren()) do
2464 if v:IsA("TextButton") then
2465 library:Tween(v.TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
2466 end
2467 end
2468
2469 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 37, 110)})
2470
2471 Element.value.Scroll = v
2472
2473 values[tabname][sectorname][text] = Element.value
2474 callback(Element.value)
2475 end)
2476 Button.MouseEnter:Connect(function()
2477 if Element.value.Scroll ~= v then
2478 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
2479 end
2480 end)
2481 Button.MouseLeave:Connect(function()
2482 if Element.value.Scroll ~= v then
2483 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
2484 end
2485 end)
2486 end
2487
2488 function Element:SetValue(val)
2489 Element.value = val
2490
2491 for i,v in pairs(Frame:GetChildren()) do
2492 if v:IsA("TextButton") then
2493 library:Tween(v.TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
2494 end
2495 end
2496
2497 library:Tween(Frame[Element.value.Scroll].TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 37, 110)})
2498 values[tabname][sectorname][text] = Element.value
2499 callback(Element.value)
2500 end
2501 values[tabname][sectorname][text] = Element.value
2502 elseif type == "Jumbobox" then
2503 Section.Size = Section.Size + UDim2.new(0,0,0,39)
2504 Element.value = {Jumbobox = {}}
2505 data.options = data.options or {}
2506
2507 local Dropdown = Instance.new("Frame")
2508 local Button = Instance.new("TextButton")
2509 local TextLabel = Instance.new("TextLabel")
2510 local Drop = Instance.new("ScrollingFrame")
2511 local Button_2 = Instance.new("TextButton")
2512 local TextLabel_2 = Instance.new("TextLabel")
2513 local UIListLayout = Instance.new("UIListLayout")
2514 local ImageLabel = Instance.new("ImageLabel")
2515 local TextLabel_3 = Instance.new("TextLabel")
2516
2517 Dropdown.Name = "Dropdown"
2518 Dropdown.Parent = Inner
2519 Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2520 Dropdown.BackgroundTransparency = 1.000
2521 Dropdown.Position = UDim2.new(0, 0, 0.255102038, 0)
2522 Dropdown.Size = UDim2.new(1, 0, 0, 39)
2523
2524 Button.Name = "Button"
2525 Button.Parent = Dropdown
2526 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2527 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
2528 Button.Position = UDim2.new(0, 30, 0, 16)
2529 Button.Size = UDim2.new(0, 175, 0, 17)
2530 Button.AutoButtonColor = false
2531 Button.Font = Enum.Font.SourceSans
2532 Button.Text = ""
2533 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
2534 Button.TextSize = 14.000
2535
2536 TextLabel.Parent = Button
2537 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2538 TextLabel.BackgroundTransparency = 1.000
2539 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
2540 TextLabel.Position = UDim2.new(0, 5, 0, 0)
2541 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
2542 TextLabel.Font = Enum.Font.SourceSansSemibold
2543 TextLabel.Text = "..."
2544 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
2545 TextLabel.TextSize = 14.000
2546 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
2547
2548 local abcd = TextLabel
2549
2550 Drop.Name = "Drop"
2551 Drop.Parent = Button
2552 Drop.Active = true
2553 Drop.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2554 Drop.BorderColor3 = Color3.fromRGB(27, 27, 35)
2555 Drop.Position = UDim2.new(0, 0, 1, 1)
2556 Drop.Size = UDim2.new(1, 0, 0, 20)
2557 Drop.Visible = false
2558 Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
2559 Drop.CanvasSize = UDim2.new(0, 0, 0, 0)
2560 Drop.ScrollBarThickness = 4
2561 Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
2562 Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
2563 Drop.AutomaticCanvasSize = "Y"
2564 Drop.ZIndex = 5
2565 Drop.ScrollBarImageColor3 = Color3.fromRGB(255, 37, 110)
2566
2567 UIListLayout.Parent = Drop
2568 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
2569 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
2570
2571 values[tabname][sectorname][text] = Element.value
2572
2573 local num = #data.options
2574 if num > 5 then
2575 Drop.Size = UDim2.new(1, 0, 0, 85)
2576 else
2577 Drop.Size = UDim2.new(1, 0, 0, 17*num)
2578 end
2579 local first = true
2580
2581 local function updatetext()
2582 local old = {}
2583 for i,v in ipairs(data.options) do
2584 if table.find(Element.value.Jumbobox, v) then
2585 table.insert(old, v)
2586 else
2587 end
2588 end
2589 local str = ""
2590
2591
2592 if #old == 0 then
2593 str = "..."
2594 else
2595 if #old == 1 then
2596 str = old[1]
2597 else
2598 for i,v in ipairs(old) do
2599 if i == 1 then
2600 str = v
2601 else
2602 if i > 2 then
2603 if i < 4 then
2604 str = str..", ..."
2605 end
2606 else
2607 str = str..", "..v
2608 end
2609 end
2610 end
2611 end
2612 end
2613
2614 abcd.Text = str
2615 end
2616 for i,v in ipairs(data.options) do
2617 do
2618 local Button = Instance.new("TextButton")
2619 local TextLabel = Instance.new("TextLabel")
2620
2621 Button.Name = v
2622 Button.Parent = Drop
2623 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2624 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
2625 Button.Position = UDim2.new(0, 30, 0, 16)
2626 Button.Size = UDim2.new(0, 175, 0, 17)
2627 Button.AutoButtonColor = false
2628 Button.Font = Enum.Font.SourceSans
2629 Button.Text = ""
2630 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
2631 Button.TextSize = 14.000
2632 Button.BorderSizePixel = 0
2633 Button.ZIndex = 6
2634
2635 TextLabel.Parent = Button
2636 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2637 TextLabel.BackgroundTransparency = 1.000
2638 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
2639 TextLabel.Position = UDim2.new(0, 5, 0, -1)
2640 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
2641 TextLabel.Font = Enum.Font.SourceSansSemibold
2642 TextLabel.Text = v
2643 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
2644 TextLabel.TextSize = 14.000
2645 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
2646 TextLabel.ZIndex = 6
2647
2648 Button.MouseButton1Down:Connect(function()
2649 if table.find(Element.value.Jumbobox, v) then
2650 for i,a in pairs(Element.value.Jumbobox) do
2651 if a == v then
2652 table.remove(Element.value.Jumbobox, i)
2653 end
2654 end
2655 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
2656 else
2657 table.insert(Element.value.Jumbobox, v)
2658 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(175, 42, 86)})
2659 end
2660 updatetext()
2661
2662 values[tabname][sectorname][text] = Element.value
2663 callback(Element.value)
2664 end)
2665 Button.MouseEnter:Connect(function()
2666 if not table.find(Element.value.Jumbobox, v) then
2667 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
2668 end
2669 end)
2670 Button.MouseLeave:Connect(function()
2671 if not table.find(Element.value.Jumbobox, v) then
2672 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
2673 end
2674 end)
2675
2676 first = false
2677 end
2678 end
2679 function Element:SetValue(val)
2680 Element.value = val
2681 for i,v in pairs(Drop:GetChildren()) do
2682 if v.Name ~= "UIListLayout" then
2683 if table.find(val.Jumbobox, v.Name) then
2684 v.TextLabel.TextColor3 = Color3.fromRGB(175, 42, 86)
2685 else
2686 v.TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
2687 end
2688 end
2689 end
2690 updatetext()
2691 values[tabname][sectorname][text] = Element.value
2692 callback(val)
2693 end
2694 if data.default then
2695 Element:SetValue(data.default)
2696 end
2697
2698 ImageLabel.Parent = Button
2699 ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2700 ImageLabel.BackgroundTransparency = 1.000
2701 ImageLabel.Position = UDim2.new(0, 165, 0, 6)
2702 ImageLabel.Size = UDim2.new(0, 6, 0, 4)
2703 ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
2704
2705 TextLabel_3.Parent = Dropdown
2706 TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2707 TextLabel_3.BackgroundTransparency = 1.000
2708 TextLabel_3.Position = UDim2.new(0, 32, 0, -1)
2709 TextLabel_3.Size = UDim2.new(0.111913361, 208, 0.382215232, 0)
2710 TextLabel_3.Font = Enum.Font.SourceSansSemibold
2711 TextLabel_3.Text = text
2712 TextLabel_3.TextColor3 = Color3.fromRGB(200, 200, 200)
2713 TextLabel_3.TextSize = 14.000
2714 TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
2715
2716 Button.MouseButton1Down:Connect(function()
2717 Drop.Visible = not Drop.Visible
2718 if not Drop.Visible then
2719 Drop.CanvasPosition = Vector2.new(0,0)
2720 end
2721 end)
2722 local indrop = false
2723 local ind = false
2724 Drop.MouseEnter:Connect(function()
2725 indrop = true
2726 end)
2727 Drop.MouseLeave:Connect(function()
2728 indrop = false
2729 end)
2730 Button.MouseEnter:Connect(function()
2731 ind = true
2732 end)
2733 Button.MouseLeave:Connect(function()
2734 ind = false
2735 end)
2736 game:GetService("UserInputService").InputBegan:Connect(function(input)
2737 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
2738 if Drop.Visible == true and not indrop and not ind then
2739 Drop.Visible = false
2740 Drop.CanvasPosition = Vector2.new(0,0)
2741 end
2742 end
2743 end)
2744 elseif type == "ToggleKeybind" then
2745 Section.Size = Section.Size + UDim2.new(0,0,0,16)
2746 Element.value = {Toggle = data.default and data.default.Toggle or false, Key, Type = "Always", Active = true}
2747
2748 local Toggle = Instance.new("Frame")
2749 local Button = Instance.new("TextButton")
2750 local Color = Instance.new("Frame")
2751 local TextLabel = Instance.new("TextLabel")
2752
2753 Toggle.Name = "Toggle"
2754 Toggle.Parent = Inner
2755 Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2756 Toggle.BackgroundTransparency = 1.000
2757 Toggle.Size = UDim2.new(1, 0, 0, 15)
2758
2759 Button.Name = "Button"
2760 Button.Parent = Toggle
2761 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2762 Button.BackgroundTransparency = 1.000
2763 Button.Size = UDim2.new(1, 0, 1, 0)
2764 Button.Font = Enum.Font.SourceSans
2765 Button.Text = ""
2766 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
2767 Button.TextSize = 14.000
2768
2769 Color.Name = "Color"
2770 Color.Parent = Button
2771 Color.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2772 Color.BorderColor3 = Color3.fromRGB(27, 27, 35)
2773 Color.Position = UDim2.new(0, 15, 0.5, -5)
2774 Color.Size = UDim2.new(0, 8, 0, 8)
2775 local binding = false
2776 TextLabel.Parent = Button
2777 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
2778 TextLabel.BackgroundTransparency = 1.000
2779 TextLabel.Position = UDim2.new(0, 32, 0, -1)
2780 TextLabel.Size = UDim2.new(0.111913361, 208, 1, 0)
2781 TextLabel.Font = Enum.Font.SourceSansSemibold
2782 TextLabel.Text = text
2783 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
2784 TextLabel.TextSize = 14.000
2785 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
2786
2787 local function update()
2788 if Element.value.Toggle then
2789 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(155, 22, 66)})
2790 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
2791 else
2792 keybindremove(text)
2793 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(33, 35, 47)})
2794 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
2795 end
2796 values[tabname][sectorname][text] = Element.value
2797 callback(Element.value)
2798 end
2799
2800 Button.MouseButton1Down:Connect(function()
2801 if not binding then
2802 Element.value.Toggle = not Element.value.Toggle
2803 update()
2804 values[tabname][sectorname][text] = Element.value
2805 callback(Element.value)
2806 end
2807 end)
2808 if data.default then
2809 update()
2810 end
2811 values[tabname][sectorname][text] = Element.value
2812 do
2813 local Keybind = Instance.new("TextButton")
2814 local Frame = Instance.new("Frame")
2815 local Always = Instance.new("TextButton")
2816 local UIListLayout = Instance.new("UIListLayout")
2817 local Hold = Instance.new("TextButton")
2818 local Toggle = Instance.new("TextButton")
2819
2820 Keybind.Name = "Keybind"
2821 Keybind.Parent = Button
2822 Keybind.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2823 Keybind.BorderColor3 = Color3.fromRGB(27, 27, 35)
2824 Keybind.Position = UDim2.new(0, 270, 0.5, -6)
2825 Keybind.Text = "NONE"
2826 Keybind.Size = UDim2.new(0, 43, 0, 12)
2827 Keybind.Size = UDim2.new(0,txt:GetTextSize("NONE", 14, Enum.Font.SourceSansSemibold, Vector2.new(700, 12)).X + 5,0, 12)
2828 Keybind.AutoButtonColor = false
2829 Keybind.Font = Enum.Font.SourceSansSemibold
2830 Keybind.TextColor3 = Color3.fromRGB(200, 200, 200)
2831 Keybind.TextSize = 14.000
2832 Keybind.AnchorPoint = Vector2.new(1,0)
2833 Keybind.ZIndex = 2
2834
2835 Frame.Parent = Keybind
2836 Frame.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2837 Frame.BorderColor3 = Color3.fromRGB(27, 27, 35)
2838 Frame.Position = UDim2.new(1, -49, 0, 1)
2839 Frame.Size = UDim2.new(0, 49, 0, 49)
2840 Frame.Visible = false
2841 Frame.ZIndex = 2
2842
2843 Always.Name = "Always"
2844 Always.Parent = Frame
2845 Always.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2846 Always.BackgroundTransparency = 1.000
2847 Always.BorderColor3 = Color3.fromRGB(27, 27, 35)
2848 Always.Position = UDim2.new(-3.03289485, 231, 0.115384616, -6)
2849 Always.Size = UDim2.new(1, 0, 0, 16)
2850 Always.AutoButtonColor = false
2851 Always.Font = Enum.Font.SourceSansBold
2852 Always.Text = "Always"
2853 Always.TextColor3 = Color3.fromRGB(173, 24, 74)
2854 Always.TextSize = 14.000
2855 Always.ZIndex = 2
2856
2857 UIListLayout.Parent = Frame
2858 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
2859 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
2860
2861 Hold.Name = "Hold"
2862 Hold.Parent = Frame
2863 Hold.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2864 Hold.BackgroundTransparency = 1.000
2865 Hold.BorderColor3 = Color3.fromRGB(27, 27, 35)
2866 Hold.Position = UDim2.new(-3.03289485, 231, 0.115384616, -6)
2867 Hold.Size = UDim2.new(1, 0, 0, 16)
2868 Hold.AutoButtonColor = false
2869 Hold.Font = Enum.Font.SourceSansSemibold
2870 Hold.Text = "Hold"
2871 Hold.TextColor3 = Color3.fromRGB(200, 200, 200)
2872 Hold.TextSize = 14.000
2873 Hold.ZIndex = 2
2874
2875 Toggle.Name = "Toggle"
2876 Toggle.Parent = Frame
2877 Toggle.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
2878 Toggle.BackgroundTransparency = 1.000
2879 Toggle.BorderColor3 = Color3.fromRGB(27, 27, 35)
2880 Toggle.Position = UDim2.new(-3.03289485, 231, 0.115384616, -6)
2881 Toggle.Size = UDim2.new(1, 0, 0, 16)
2882 Toggle.AutoButtonColor = false
2883 Toggle.Font = Enum.Font.SourceSansSemibold
2884 Toggle.Text = "Toggle"
2885 Toggle.TextColor3 = Color3.fromRGB(200, 200, 200)
2886 Toggle.TextSize = 14.000
2887 Toggle.ZIndex = 2
2888
2889 for _,button in pairs(Frame:GetChildren()) do
2890 if button:IsA("TextButton") then
2891 button.MouseButton1Down:Connect(function()
2892 Element.value.Type = button.Text
2893 Frame.Visible = false
2894 if Element.value.Active ~= (Element.value.Type == "Always" and true or false) then
2895 Element.value.Active = Element.value.Type == "Always" and true or false
2896 callback(Element.value)
2897 end
2898 if button.Text == "Always" then
2899 keybindremove(text)
2900 end
2901 for _,button in pairs(Frame:GetChildren()) do
2902 if button:IsA("TextButton") and button.Text ~= Element.value.Type then
2903 button.Font = Enum.Font.SourceSansSemibold
2904 library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200,200,200)})
2905 end
2906 end
2907 button.Font = Enum.Font.SourceSansBold
2908 button.TextColor3 = Color3.fromRGB(173, 24, 74)
2909 values[tabname][sectorname][text] = Element.value
2910 end)
2911 button.MouseEnter:Connect(function()
2912 if Element.value.Type ~= button.Text then
2913 library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255,255,255)})
2914 end
2915 end)
2916 button.MouseLeave:Connect(function()
2917 if Element.value.Type ~= button.Text then
2918 library:Tween(button, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200,200,200)})
2919 end
2920 end)
2921 end
2922 end
2923 Keybind.MouseButton1Down:Connect(function()
2924 if not binding then
2925 wait()
2926 binding = true
2927 Keybind.Text = "..."
2928 Keybind.Size = UDim2.new(0,txt:GetTextSize("...", 14, Enum.Font.SourceSansSemibold, Vector2.new(700, 12)).X + 4,0, 12)
2929 end
2930 end)
2931 Keybind.MouseButton2Down:Connect(function()
2932 if not binding then
2933 Frame.Visible = not Frame.Visible
2934 end
2935 end)
2936 local Player = game.Players.LocalPlayer
2937 local Mouse = Player:GetMouse()
2938 local InFrame = false
2939 Frame.MouseEnter:Connect(function()
2940 InFrame = true
2941 end)
2942 Frame.MouseLeave:Connect(function()
2943 InFrame = false
2944 end)
2945 local InFrame2 = false
2946 Keybind.MouseEnter:Connect(function()
2947 InFrame2 = true
2948 end)
2949 Keybind.MouseLeave:Connect(function()
2950 InFrame2 = false
2951 end)
2952 game:GetService("UserInputService").InputBegan:Connect(function(input)
2953 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 and not binding then
2954 if Frame.Visible == true and not InFrame and not InFrame2 then
2955 Frame.Visible = false
2956 end
2957 end
2958 if binding then
2959 binding = false
2960 Keybind.Text = input.KeyCode.Name ~= "Unknown" and input.KeyCode.Name:upper() or input.UserInputType.Name:upper()
2961 Keybind.Size = UDim2.new(0,txt:GetTextSize(Keybind.Text, 14, Enum.Font.SourceSansSemibold, Vector2.new(700, 12)).X + 5,0, 12)
2962 Element.value.Key = input.KeyCode.Name ~= "Unknown" and input.KeyCode.Name or input.UserInputType.Name
2963 if input.KeyCode.Name == "Backspace" then
2964 Keybind.Text = "NONE"
2965 Keybind.Size = UDim2.new(0,txt:GetTextSize(Keybind.Text, 14, Enum.Font.SourceSansSemibold, Vector2.new(700, 12)).X + 4,0, 12)
2966 Element.value.Key = nil
2967 Element.value.Active = true
2968 end
2969 callback(Element.value)
2970 else
2971 if Element.value.Key ~= nil then
2972 if string.find(Element.value.Key, "Mouse") then
2973 if input.UserInputType == Enum.UserInputType[Element.value.Key] then
2974 if Element.value.Type == "Hold" then
2975 Element.value.Active = true
2976 callback(Element.value)
2977 if Element.value.Active and Element.value.Toggle then
2978 keybindadd(text)
2979 else
2980 keybindremove(text)
2981 end
2982 elseif Element.value.Type == "Toggle" then
2983 Element.value.Active = not Element.value.Active
2984 callback(Element.value)
2985 if Element.value.Active and Element.value.Toggle then
2986 keybindadd(text)
2987 else
2988 keybindremove(text)
2989 end
2990 end
2991 end
2992 else
2993 if input.KeyCode == Enum.KeyCode[Element.value.Key] then
2994 if Element.value.Type == "Hold" then
2995 Element.value.Active = true
2996 callback(Element.value)
2997 if Element.value.Active and Element.value.Toggle then
2998 keybindadd(text)
2999 else
3000 keybindremove(text)
3001 end
3002 elseif Element.value.Type == "Toggle" then
3003 Element.value.Active = not Element.value.Active
3004 callback(Element.value)
3005 if Element.value.Active and Element.value.Toggle then
3006 keybindadd(text)
3007 else
3008 keybindremove(text)
3009 end
3010 end
3011 end
3012 end
3013 else
3014 Element.value.Active = true
3015 end
3016 end
3017 values[tabname][sectorname][text] = Element.value
3018 end)
3019 game:GetService("UserInputService").InputEnded:Connect(function(input)
3020 if Element.value.Key ~= nil then
3021 if string.find(Element.value.Key, "Mouse") then
3022 if input.UserInputType == Enum.UserInputType[Element.value.Key] then
3023 if Element.value.Type == "Hold" then
3024 Element.value.Active = false
3025 callback(Element.value)
3026 if Element.value.Active then
3027 keybindadd(text)
3028 else
3029 keybindremove(text)
3030 end
3031 end
3032 end
3033 else
3034 if input.KeyCode == Enum.KeyCode[Element.value.Key] then
3035 if Element.value.Type == "Hold" then
3036 Element.value.Active = false
3037 callback(Element.value)
3038 if Element.value.Active then
3039 keybindadd(text)
3040 else
3041 keybindremove(text)
3042 end
3043 end
3044 end
3045 end
3046 end
3047 values[tabname][sectorname][text] = Element.value
3048 end)
3049 end
3050 function Element:SetValue(value)
3051 Element.value = value
3052 update()
3053 end
3054 elseif type == "Toggle" then
3055 Section.Size = Section.Size + UDim2.new(0,0,0,16)
3056 Element.value = {Toggle = data.default and data.default.Toggle or false}
3057
3058 local Toggle = Instance.new("Frame")
3059 local Button = Instance.new("TextButton")
3060 local Color = Instance.new("Frame")
3061 local TextLabel = Instance.new("TextLabel")
3062
3063 Toggle.Name = "Toggle"
3064 Toggle.Parent = Inner
3065 Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3066 Toggle.BackgroundTransparency = 1.000
3067 Toggle.Size = UDim2.new(1, 0, 0, 15)
3068
3069 Button.Name = "Button"
3070 Button.Parent = Toggle
3071 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3072 Button.BackgroundTransparency = 1.000
3073 Button.Size = UDim2.new(1, 0, 1, 0)
3074 Button.Font = Enum.Font.SourceSans
3075 Button.Text = ""
3076 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
3077 Button.TextSize = 14.000
3078
3079 Color.Name = "Color"
3080 Color.Parent = Button
3081 Color.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3082 Color.BorderColor3 = Color3.fromRGB(27, 27, 35)
3083 Color.Position = UDim2.new(0, 15, 0.5, -5)
3084 Color.Size = UDim2.new(0, 8, 0, 8)
3085
3086 TextLabel.Parent = Button
3087 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3088 TextLabel.BackgroundTransparency = 1.000
3089 TextLabel.Position = UDim2.new(0, 32, 0, -1)
3090 TextLabel.Size = UDim2.new(0.111913361, 208, 1, 0)
3091 TextLabel.Font = Enum.Font.SourceSansSemibold
3092 TextLabel.Text = text
3093 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
3094 TextLabel.TextSize = 14.000
3095 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
3096
3097 local function update()
3098 if Element.value.Toggle then
3099 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(155, 22, 66)})
3100 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
3101 else
3102 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(33, 35, 47)})
3103 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
3104 end
3105 values[tabname][sectorname][text] = Element.value
3106 end
3107
3108 Button.MouseButton1Down:Connect(function()
3109 Element.value.Toggle = not Element.value.Toggle
3110 update()
3111 values[tabname][sectorname][text] = Element.value
3112 callback(Element.value)
3113 end)
3114 if data.default then
3115 update()
3116 end
3117 values[tabname][sectorname][text] = Element.value
3118 function Element:SetValue(value)
3119 Element.value = value
3120 values[tabname][sectorname][text] = Element.value
3121 update()
3122 callback(Element.value)
3123 end
3124 elseif type == "ToggleColor" then
3125 Section.Size = Section.Size + UDim2.new(0,0,0,16)
3126 Element.value = {Toggle = data.default and data.default.Toggle or false, Color = data.default and data.default.Color or Color3.fromRGB(255,255,255)}
3127
3128 local Toggle = Instance.new("Frame")
3129 local Button = Instance.new("TextButton")
3130 local Color = Instance.new("Frame")
3131 local TextLabel = Instance.new("TextLabel")
3132
3133 Toggle.Name = "Toggle"
3134 Toggle.Parent = Inner
3135 Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3136 Toggle.BackgroundTransparency = 1.000
3137 Toggle.Size = UDim2.new(1, 0, 0, 15)
3138
3139 Button.Name = "Button"
3140 Button.Parent = Toggle
3141 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3142 Button.BackgroundTransparency = 1.000
3143 Button.Size = UDim2.new(1, 0, 1, 0)
3144 Button.Font = Enum.Font.SourceSans
3145 Button.Text = ""
3146 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
3147 Button.TextSize = 14.000
3148
3149 Color.Name = "Color"
3150 Color.Parent = Button
3151 Color.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3152 Color.BorderColor3 = Color3.fromRGB(27, 27, 35)
3153 Color.Position = UDim2.new(0, 15, 0.5, -5)
3154 Color.Size = UDim2.new(0, 8, 0, 8)
3155
3156 TextLabel.Parent = Button
3157 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3158 TextLabel.BackgroundTransparency = 1.000
3159 TextLabel.Position = UDim2.new(0, 32, 0, -1)
3160 TextLabel.Size = UDim2.new(0.111913361, 208, 1, 0)
3161 TextLabel.Font = Enum.Font.SourceSansSemibold
3162 TextLabel.Text = text
3163 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
3164 TextLabel.TextSize = 14.000
3165 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
3166
3167 local function update()
3168 if Element.value.Toggle then
3169 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(155, 22, 66)})
3170 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
3171 else
3172 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(33, 35, 47)})
3173 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
3174 end
3175 values[tabname][sectorname][text] = Element.value
3176 end
3177
3178 local ColorH,ColorS,ColorV
3179
3180 local ColorP = Instance.new("TextButton")
3181 local Frame = Instance.new("Frame")
3182 local Colorpick = Instance.new("ImageButton")
3183 local ColorDrag = Instance.new("Frame")
3184 local Huepick = Instance.new("ImageButton")
3185 local Huedrag = Instance.new("Frame")
3186
3187 ColorP.Name = "ColorP"
3188 ColorP.Parent = Button
3189 ColorP.AnchorPoint = Vector2.new(1, 0)
3190 ColorP.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
3191 ColorP.BorderColor3 = Color3.fromRGB(27, 27, 35)
3192 ColorP.Position = UDim2.new(0, 270, 0.5, -4)
3193 ColorP.Size = UDim2.new(0, 18, 0, 8)
3194 ColorP.AutoButtonColor = false
3195 ColorP.Font = Enum.Font.SourceSansSemibold
3196 ColorP.Text = ""
3197 ColorP.TextColor3 = Color3.fromRGB(200, 200, 200)
3198 ColorP.TextSize = 14.000
3199
3200 Frame.Parent = ColorP
3201 Frame.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3202 Frame.BorderColor3 = Color3.fromRGB(27, 27, 35)
3203 Frame.Position = UDim2.new(-0.666666687, -170, 1.375, 0)
3204 Frame.Size = UDim2.new(0, 200, 0, 170)
3205 Frame.Visible = false
3206 Frame.ZIndex = 3
3207
3208 Colorpick.Name = "Colorpick"
3209 Colorpick.Parent = Frame
3210 Colorpick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3211 Colorpick.BorderColor3 = Color3.fromRGB(27, 27, 35)
3212 Colorpick.ClipsDescendants = false
3213 Colorpick.Position = UDim2.new(0, 40, 0, 10)
3214 Colorpick.Size = UDim2.new(0, 150, 0, 150)
3215 Colorpick.AutoButtonColor = false
3216 Colorpick.Image = "rbxassetid://4155801252"
3217 Colorpick.ImageColor3 = Color3.fromRGB(255, 0, 0)
3218 Colorpick.ZIndex = 3
3219
3220 ColorDrag.Name = "ColorDrag"
3221 ColorDrag.Parent = Colorpick
3222 ColorDrag.AnchorPoint = Vector2.new(0.5, 0.5)
3223 ColorDrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3224 ColorDrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
3225 ColorDrag.Size = UDim2.new(0, 4, 0, 4)
3226 ColorDrag.ZIndex = 3
3227
3228 Huepick.Name = "Huepick"
3229 Huepick.Parent = Frame
3230 Huepick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3231 Huepick.BorderColor3 = Color3.fromRGB(27, 27, 35)
3232 Huepick.ClipsDescendants = false
3233 Huepick.Position = UDim2.new(0, 10, 0, 10)
3234 Huepick.Size = UDim2.new(0, 20, 0, 150)
3235 Huepick.AutoButtonColor = false
3236 Huepick.Image = "rbxassetid://3641079629"
3237 Huepick.ImageColor3 = Color3.fromRGB(255, 0, 0)
3238 Huepick.ImageTransparency = 1
3239 Huepick.BackgroundTransparency = 0
3240 Huepick.ZIndex = 3
3241
3242 local HueFrameGradient = Instance.new("UIGradient")
3243 HueFrameGradient.Rotation = 90
3244 HueFrameGradient.Name = "HueFrameGradient"
3245 HueFrameGradient.Parent = Huepick
3246 HueFrameGradient.Color = ColorSequence.new {
3247 ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)),
3248 ColorSequenceKeypoint.new(0.17, Color3.fromRGB(255, 0, 255)),
3249 ColorSequenceKeypoint.new(0.33, Color3.fromRGB(0, 0, 255)),
3250 ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 255, 255)),
3251 ColorSequenceKeypoint.new(0.67, Color3.fromRGB(0, 255, 0)),
3252 ColorSequenceKeypoint.new(0.83, Color3.fromRGB(255, 255, 0)),
3253 ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))
3254 }
3255
3256 Huedrag.Name = "Huedrag"
3257 Huedrag.Parent = Huepick
3258 Huedrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3259 Huedrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
3260 Huedrag.Size = UDim2.new(1, 0, 0, 2)
3261 Huedrag.ZIndex = 3
3262
3263 ColorP.MouseButton1Down:Connect(function()
3264 Frame.Visible = not Frame.Visible
3265 end)
3266 local abc = false
3267 local inCP = false
3268 ColorP.MouseEnter:Connect(function()
3269 abc = true
3270 end)
3271 ColorP.MouseLeave:Connect(function()
3272 abc = false
3273 end)
3274 Frame.MouseEnter:Connect(function()
3275 inCP = true
3276 end)
3277 Frame.MouseLeave:Connect(function()
3278 inCP = false
3279 end)
3280
3281 ColorH = (math.clamp(Huedrag.AbsolutePosition.Y-Huepick.AbsolutePosition.Y, 0, Huepick.AbsoluteSize.Y)/Huepick.AbsoluteSize.Y)
3282 ColorS = 1-(math.clamp(ColorDrag.AbsolutePosition.X-Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
3283 ColorV = 1-(math.clamp(ColorDrag.AbsolutePosition.Y-Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
3284
3285 if data.default and data.default.Color ~= nil then
3286 ColorH, ColorS, ColorV = data.default.Color:ToHSV()
3287
3288 ColorH = math.clamp(ColorH,0,1)
3289 ColorS = math.clamp(ColorS,0,1)
3290 ColorV = math.clamp(ColorV,0,1)
3291 ColorDrag.Position = UDim2.new(1-ColorS,0,1-ColorV,0)
3292 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3293
3294 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
3295 Huedrag.Position = UDim2.new(0, 0, 1-ColorH, -1)
3296
3297 values[tabname][sectorname][text] = data.default.Color
3298 end
3299
3300 local mouse = game:GetService("Players").LocalPlayer:GetMouse()
3301 game:GetService("UserInputService").InputBegan:Connect(function(input)
3302 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
3303 if not dragging and not abc and not inCP then
3304 Frame.Visible = false
3305 end
3306 end
3307 end)
3308
3309 local function updateColor()
3310 local ColorX = (math.clamp(mouse.X - Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
3311 local ColorY = (math.clamp(mouse.Y - Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
3312 ColorDrag.Position = UDim2.new(ColorX, 0, ColorY, 0)
3313 ColorS = 1-ColorX
3314 ColorV = 1-ColorY
3315 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3316 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
3317 values[tabname][sectorname][text] = Element.value
3318 Element.value.Color = Color3.fromHSV(ColorH, ColorS, ColorV)
3319 callback(Element.value)
3320 end
3321 local function updateHue()
3322 local y = math.clamp(mouse.Y - Huepick.AbsolutePosition.Y, 0, 148)
3323 Huedrag.Position = UDim2.new(0, 0, 0, y)
3324 hue = y/148
3325 ColorH = 1-hue
3326 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3327 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
3328 values[tabname][sectorname][text] = Element.value
3329 Element.value.Color = Color3.fromHSV(ColorH, ColorS, ColorV)
3330 callback(Element.value)
3331 end
3332 Colorpick.MouseButton1Down:Connect(function()
3333 updateColor()
3334 moveconnection = mouse.Move:Connect(function()
3335 updateColor()
3336 end)
3337 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
3338 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
3339 updateColor()
3340 moveconnection:Disconnect()
3341 releaseconnection:Disconnect()
3342 end
3343 end)
3344 end)
3345 Huepick.MouseButton1Down:Connect(function()
3346 updateHue()
3347 moveconnection = mouse.Move:Connect(function()
3348 updateHue()
3349 end)
3350 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
3351 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
3352 updateHue()
3353 moveconnection:Disconnect()
3354 releaseconnection:Disconnect()
3355 end
3356 end)
3357 end)
3358
3359 Button.MouseButton1Down:Connect(function()
3360 Element.value.Toggle = not Element.value.Toggle
3361 update()
3362 values[tabname][sectorname][text] = Element.value
3363 callback(Element.value)
3364 end)
3365 if data.default then
3366 update()
3367 end
3368 values[tabname][sectorname][text] = Element.value
3369 function Element:SetValue(value)
3370 Element.value = value
3371 local duplicate = Color3.new(value.Color.R, value.Color.G, value.Color.B)
3372 ColorH, ColorS, ColorV = duplicate:ToHSV()
3373 ColorH = math.clamp(ColorH,0,1)
3374 ColorS = math.clamp(ColorS,0,1)
3375 ColorV = math.clamp(ColorV,0,1)
3376
3377 ColorDrag.Position = UDim2.new(1-ColorS,0,1-ColorV,0)
3378 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3379 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
3380 update()
3381 Huedrag.Position = UDim2.new(0, 0, 1-ColorH, -1)
3382
3383 callback(value)
3384 end
3385 elseif type == "ToggleTrans" then
3386 Section.Size = Section.Size + UDim2.new(0,0,0,16)
3387 Element.value = {Toggle = data.default and data.default.Toggle or false, Color = data.default and data.default.Color or Color3.fromRGB(255,255,255), Transparency = data.default and data.default.Transparency or 0}
3388
3389 local Toggle = Instance.new("Frame")
3390 local Button = Instance.new("TextButton")
3391 local Color = Instance.new("Frame")
3392 local TextLabel = Instance.new("TextLabel")
3393
3394 Toggle.Name = "Toggle"
3395 Toggle.Parent = Inner
3396 Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3397 Toggle.BackgroundTransparency = 1.000
3398 Toggle.Size = UDim2.new(1, 0, 0, 15)
3399
3400 Button.Name = "Button"
3401 Button.Parent = Toggle
3402 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3403 Button.BackgroundTransparency = 1.000
3404 Button.Size = UDim2.new(1, 0, 1, 0)
3405 Button.Font = Enum.Font.SourceSans
3406 Button.Text = ""
3407 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
3408 Button.TextSize = 14.000
3409
3410 Color.Name = "Color"
3411 Color.Parent = Button
3412 Color.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3413 Color.BorderColor3 = Color3.fromRGB(27, 27, 35)
3414 Color.Position = UDim2.new(0, 15, 0.5, -5)
3415 Color.Size = UDim2.new(0, 8, 0, 8)
3416
3417 TextLabel.Parent = Button
3418 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3419 TextLabel.BackgroundTransparency = 1.000
3420 TextLabel.Position = UDim2.new(0, 32, 0, -1)
3421 TextLabel.Size = UDim2.new(0.111913361, 208, 1, 0)
3422 TextLabel.Font = Enum.Font.SourceSansSemibold
3423 TextLabel.Text = text
3424 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
3425 TextLabel.TextSize = 14.000
3426 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
3427
3428 local function update()
3429 if Element.value.Toggle then
3430 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(155, 22, 66)})
3431 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
3432 else
3433 tween = library:Tween(Color, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(33, 35, 47)})
3434 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
3435 end
3436 values[tabname][sectorname][text] = Element.value
3437 callback(Element.value)
3438 end
3439
3440 local ColorH,ColorS,ColorV
3441
3442 local ColorP = Instance.new("TextButton")
3443 local Frame = Instance.new("Frame")
3444 local Colorpick = Instance.new("ImageButton")
3445 local ColorDrag = Instance.new("Frame")
3446 local Huepick = Instance.new("ImageButton")
3447 local Huedrag = Instance.new("Frame")
3448
3449 ColorP.Name = "ColorP"
3450 ColorP.Parent = Button
3451 ColorP.AnchorPoint = Vector2.new(1, 0)
3452 ColorP.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
3453 ColorP.BorderColor3 = Color3.fromRGB(27, 27, 35)
3454 ColorP.Position = UDim2.new(0, 270, 0.5, -4)
3455 ColorP.Size = UDim2.new(0, 18, 0, 8)
3456 ColorP.AutoButtonColor = false
3457 ColorP.Font = Enum.Font.SourceSansSemibold
3458 ColorP.Text = ""
3459 ColorP.TextColor3 = Color3.fromRGB(200, 200, 200)
3460 ColorP.TextSize = 14.000
3461
3462 Frame.Parent = ColorP
3463 Frame.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3464 Frame.BorderColor3 = Color3.fromRGB(27, 27, 35)
3465 Frame.Position = UDim2.new(-0.666666687, -170, 1.375, 0)
3466 Frame.Size = UDim2.new(0, 200, 0, 190)
3467 Frame.Visible = false
3468 Frame.ZIndex = 3
3469
3470 Colorpick.Name = "Colorpick"
3471 Colorpick.Parent = Frame
3472 Colorpick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3473 Colorpick.BorderColor3 = Color3.fromRGB(27, 27, 35)
3474 Colorpick.ClipsDescendants = false
3475 Colorpick.Position = UDim2.new(0, 40, 0, 10)
3476 Colorpick.Size = UDim2.new(0, 150, 0, 150)
3477 Colorpick.AutoButtonColor = false
3478 Colorpick.Image = "rbxassetid://4155801252"
3479 Colorpick.ImageColor3 = Color3.fromRGB(255, 0, 0)
3480 Colorpick.ZIndex = 3
3481
3482 ColorDrag.Name = "ColorDrag"
3483 ColorDrag.Parent = Colorpick
3484 ColorDrag.AnchorPoint = Vector2.new(0.5, 0.5)
3485 ColorDrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3486 ColorDrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
3487 ColorDrag.Size = UDim2.new(0, 4, 0, 4)
3488 ColorDrag.ZIndex = 3
3489
3490 Huepick.Name = "Huepick"
3491 Huepick.Parent = Frame
3492 Huepick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3493 Huepick.BorderColor3 = Color3.fromRGB(27, 27, 35)
3494 Huepick.ClipsDescendants = true
3495 Huepick.Position = UDim2.new(0, 10, 0, 10)
3496 Huepick.Size = UDim2.new(0, 20, 0, 150)
3497 Huepick.AutoButtonColor = false
3498 Huepick.Image = "rbxassetid://3641079629"
3499 Huepick.ImageColor3 = Color3.fromRGB(255, 0, 0)
3500 Huepick.ImageTransparency = 1
3501 Huepick.BackgroundTransparency = 0
3502 Huepick.ZIndex = 3
3503
3504 local HueFrameGradient = Instance.new("UIGradient")
3505 HueFrameGradient.Rotation = 90
3506 HueFrameGradient.Name = "HueFrameGradient"
3507 HueFrameGradient.Parent = Huepick
3508 HueFrameGradient.Color = ColorSequence.new {
3509 ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)),
3510 ColorSequenceKeypoint.new(0.17, Color3.fromRGB(255, 0, 255)),
3511 ColorSequenceKeypoint.new(0.33, Color3.fromRGB(0, 0, 255)),
3512 ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 255, 255)),
3513 ColorSequenceKeypoint.new(0.67, Color3.fromRGB(0, 255, 0)),
3514 ColorSequenceKeypoint.new(0.83, Color3.fromRGB(255, 255, 0)),
3515 ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))
3516 }
3517
3518 Huedrag.Name = "Huedrag"
3519 Huedrag.Parent = Huepick
3520 Huedrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3521 Huedrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
3522 Huedrag.Size = UDim2.new(1, 0, 0, 2)
3523 Huedrag.ZIndex = 3
3524
3525 local Transpick = Instance.new("ImageButton")
3526 local Transcolor = Instance.new("ImageLabel")
3527 local Transdrag = Instance.new("Frame")
3528
3529 Transpick.Name = "Transpick"
3530 Transpick.Parent = Frame
3531 Transpick.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3532 Transpick.BorderColor3 = Color3.fromRGB(27, 27, 35)
3533 Transpick.Position = UDim2.new(0, 10, 0, 167)
3534 Transpick.Size = UDim2.new(0, 180, 0, 15)
3535 Transpick.AutoButtonColor = false
3536 Transpick.Image = "rbxassetid://3887014957"
3537 Transpick.ScaleType = Enum.ScaleType.Tile
3538 Transpick.TileSize = UDim2.new(0, 10, 0, 10)
3539 Transpick.ZIndex = 3
3540
3541 Transcolor.Name = "Transcolor"
3542 Transcolor.Parent = Transpick
3543 Transcolor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3544 Transcolor.BackgroundTransparency = 1.000
3545 Transcolor.Size = UDim2.new(1, 0, 1, 0)
3546 Transcolor.Image = "rbxassetid://3887017050"
3547 Transcolor.ImageColor3 = Color3.fromRGB(255, 0, 4)
3548 Transcolor.ZIndex = 3
3549
3550 Transdrag.Name = "Transdrag"
3551 Transdrag.Parent = Transcolor
3552 Transdrag.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3553 Transdrag.BorderColor3 = Color3.fromRGB(27, 27, 35)
3554 Transdrag.Position = UDim2.new(0, -1, 0, 0)
3555 Transdrag.Size = UDim2.new(0, 2, 1, 0)
3556 Transdrag.ZIndex = 3
3557
3558 ColorP.MouseButton1Down:Connect(function()
3559 Frame.Visible = not Frame.Visible
3560 end)
3561 local abc = false
3562 local inCP = false
3563 ColorP.MouseEnter:Connect(function()
3564 abc = true
3565 end)
3566 ColorP.MouseLeave:Connect(function()
3567 abc = false
3568 end)
3569 Frame.MouseEnter:Connect(function()
3570 inCP = true
3571 end)
3572 Frame.MouseLeave:Connect(function()
3573 inCP = false
3574 end)
3575
3576 ColorH = (math.clamp(Huedrag.AbsolutePosition.Y-Huepick.AbsolutePosition.Y, 0, Huepick.AbsoluteSize.Y)/Huepick.AbsoluteSize.Y)
3577 ColorS = 1-(math.clamp(ColorDrag.AbsolutePosition.X-Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
3578 ColorV = 1-(math.clamp(ColorDrag.AbsolutePosition.Y-Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
3579
3580 if data.default.Color ~= nil then
3581 ColorH, ColorS, ColorV = data.default.Color:ToHSV()
3582
3583 ColorH = math.clamp(ColorH,0,1)
3584 ColorS = math.clamp(ColorS,0,1)
3585 ColorV = math.clamp(ColorV,0,1)
3586 ColorDrag.Position = UDim2.new(1-ColorS,0,1-ColorV,0)
3587 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3588
3589 Transcolor.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3590
3591 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
3592 Huedrag.Position = UDim2.new(0, 0, 1-ColorH, -1)
3593 end
3594 if data.default.Transparency ~= nil then
3595 Transdrag.Position = UDim2.new(data.default.Transparency, -1, 0, 0)
3596 end
3597 local mouse = game:GetService("Players").LocalPlayer:GetMouse()
3598 game:GetService("UserInputService").InputBegan:Connect(function(input)
3599 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
3600 if not dragging and not abc and not inCP then
3601 Frame.Visible = false
3602 end
3603 end
3604 end)
3605
3606 local function updateColor()
3607 local ColorX = (math.clamp(mouse.X - Colorpick.AbsolutePosition.X, 0, Colorpick.AbsoluteSize.X)/Colorpick.AbsoluteSize.X)
3608 local ColorY = (math.clamp(mouse.Y - Colorpick.AbsolutePosition.Y, 0, Colorpick.AbsoluteSize.Y)/Colorpick.AbsoluteSize.Y)
3609 ColorDrag.Position = UDim2.new(ColorX, 0, ColorY, 0)
3610 ColorS = 1-ColorX
3611 ColorV = 1-ColorY
3612 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3613 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
3614 Transcolor.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3615 values[tabname][sectorname][text] = Element.value
3616 Element.value.Color = Color3.fromHSV(ColorH, ColorS, ColorV)
3617 callback(Element.value)
3618 end
3619 local function updateHue()
3620 local y = math.clamp(mouse.Y - Huepick.AbsolutePosition.Y, 0, 148)
3621 Huedrag.Position = UDim2.new(0, 0, 0, y)
3622 hue = y/148
3623 ColorH = 1-hue
3624 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3625 Transcolor.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3626 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
3627 values[tabname][sectorname][text] = Element.value
3628 Element.value.Color = Color3.fromHSV(ColorH, ColorS, ColorV)
3629 callback(Element.value)
3630 end
3631 local function updateTrans()
3632 local x = math.clamp(mouse.X - Transpick.AbsolutePosition.X, 0, 178)
3633 Transdrag.Position = UDim2.new(0, x, 0, 0)
3634 Element.value.Transparency = (x/178)
3635 values[tabname][sectorname][text] = Element.value
3636 callback(Element.value)
3637 end
3638 Transpick.MouseButton1Down:Connect(function()
3639 updateTrans()
3640 moveconnection = mouse.Move:Connect(function()
3641 updateTrans()
3642 end)
3643 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
3644 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
3645 updateTrans()
3646 moveconnection:Disconnect()
3647 releaseconnection:Disconnect()
3648 end
3649 end)
3650 end)
3651 Colorpick.MouseButton1Down:Connect(function()
3652 updateColor()
3653 moveconnection = mouse.Move:Connect(function()
3654 updateColor()
3655 end)
3656 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
3657 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
3658 updateColor()
3659 moveconnection:Disconnect()
3660 releaseconnection:Disconnect()
3661 end
3662 end)
3663 end)
3664 Huepick.MouseButton1Down:Connect(function()
3665 updateHue()
3666 moveconnection = mouse.Move:Connect(function()
3667 updateHue()
3668 end)
3669 releaseconnection = game:GetService("UserInputService").InputEnded:Connect(function(Mouse)
3670 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
3671 updateHue()
3672 moveconnection:Disconnect()
3673 releaseconnection:Disconnect()
3674 end
3675 end)
3676 end)
3677
3678 Button.MouseButton1Down:Connect(function()
3679 Element.value.Toggle = not Element.value.Toggle
3680 update()
3681 values[tabname][sectorname][text] = Element.value
3682 callback(Element.value)
3683 end)
3684 if data.default then
3685 update()
3686 end
3687 values[tabname][sectorname][text] = Element.value
3688 function Element:SetValue(value)
3689 Element.value = value
3690 local duplicate = Color3.new(value.Color.R, value.Color.G, value.Color.B)
3691 ColorH, ColorS, ColorV = duplicate:ToHSV()
3692 ColorH = math.clamp(ColorH,0,1)
3693 ColorS = math.clamp(ColorS,0,1)
3694 ColorV = math.clamp(ColorV,0,1)
3695
3696 ColorDrag.Position = UDim2.new(1-ColorS,0,1-ColorV,0)
3697 Colorpick.ImageColor3 = Color3.fromHSV(ColorH, 1, 1)
3698 ColorP.BackgroundColor3 = Color3.fromHSV(ColorH, ColorS, ColorV)
3699 update()
3700 Huedrag.Position = UDim2.new(0, 0, 1-ColorH, -1)
3701 end
3702 elseif type == "TextBox" then
3703 Section.Size = Section.Size + UDim2.new(0,0,0,30)
3704 Element.value = {Text = data.default and data.default.text or ""}
3705
3706 local Box = Instance.new("Frame")
3707 local TextBox = Instance.new("TextBox")
3708
3709 Box.Name = "Box"
3710 Box.Parent = Inner
3711 Box.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3712 Box.BackgroundTransparency = 1.000
3713 Box.Position = UDim2.new(0, 0, 0.542059898, 0)
3714 Box.Size = UDim2.new(1, 0, 0, 30)
3715
3716 TextBox.Parent = Box
3717 TextBox.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3718 TextBox.BorderColor3 = Color3.fromRGB(27, 27, 35)
3719 TextBox.Position = UDim2.new(0.108303241, 0, 0.224465579, 0)
3720 TextBox.Size = UDim2.new(0, 175, 0, 20)
3721 TextBox.Font = Enum.Font.SourceSans
3722 TextBox.PlaceholderText = data.placeholder
3723 TextBox.Text = Element.value.Text
3724 TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
3725 TextBox.TextSize = 14.000
3726
3727 values[tabname][sectorname][text] = Element.value
3728
3729 TextBox:GetPropertyChangedSignal("Text"):Connect(function()
3730 if string.len(TextBox.Text) > 10 then
3731 TextBox.Text = string.sub(TextBox.Text, 1, 10)
3732 end
3733 Element.value.Text = TextBox.Text
3734 values[tabname][sectorname][text] = Element.value
3735 callback(Element.value)
3736 end)
3737
3738 function Element:SetValue(value)
3739 Element.value = value
3740 values[tabname][sectorname][text] = Element.value
3741 TextBox.Text = Element.value.Text
3742 end
3743
3744 elseif type == "Dropdown" then
3745 Section.Size = Section.Size + UDim2.new(0,0,0,39)
3746 Element.value = {Dropdown = data.options[1]}
3747
3748 local Dropdown = Instance.new("Frame")
3749 local Button = Instance.new("TextButton")
3750 local TextLabel = Instance.new("TextLabel")
3751 local Drop = Instance.new("ScrollingFrame")
3752 local Button_2 = Instance.new("TextButton")
3753 local TextLabel_2 = Instance.new("TextLabel")
3754 local UIListLayout = Instance.new("UIListLayout")
3755 local ImageLabel = Instance.new("ImageLabel")
3756 local TextLabel_3 = Instance.new("TextLabel")
3757
3758 Dropdown.Name = "Dropdown"
3759 Dropdown.Parent = Inner
3760 Dropdown.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3761 Dropdown.BackgroundTransparency = 1.000
3762 Dropdown.Position = UDim2.new(0, 0, 0.255102038, 0)
3763 Dropdown.Size = UDim2.new(1, 0, 0, 39)
3764
3765 Button.Name = "Button"
3766 Button.Parent = Dropdown
3767 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3768 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
3769 Button.Position = UDim2.new(0, 30, 0, 16)
3770 Button.Size = UDim2.new(0, 175, 0, 17)
3771 Button.AutoButtonColor = false
3772 Button.Font = Enum.Font.SourceSans
3773 Button.Text = ""
3774 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
3775 Button.TextSize = 14.000
3776
3777 TextLabel.Parent = Button
3778 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3779 TextLabel.BackgroundTransparency = 1.000
3780 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
3781 TextLabel.Position = UDim2.new(0, 5, 0, 0)
3782 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
3783 TextLabel.Font = Enum.Font.SourceSansSemibold
3784 TextLabel.Text = Element.value.Dropdown
3785 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
3786 TextLabel.TextSize = 14.000
3787 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
3788
3789 local abcd = TextLabel
3790
3791 Drop.Name = "Drop"
3792 Drop.Parent = Button
3793 Drop.Active = true
3794 Drop.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3795 Drop.BorderColor3 = Color3.fromRGB(27, 27, 35)
3796 Drop.Position = UDim2.new(0, 0, 1, 1)
3797 Drop.Size = UDim2.new(1, 0, 0, 20)
3798 Drop.Visible = false
3799 Drop.BottomImage = "http://www.roblox.com/asset/?id=6724808282"
3800 Drop.CanvasSize = UDim2.new(0, 0, 0, 0)
3801 Drop.ScrollBarThickness = 4
3802 Drop.TopImage = "http://www.roblox.com/asset/?id=6724808282"
3803 Drop.MidImage = "http://www.roblox.com/asset/?id=6724808282"
3804 Drop.AutomaticCanvasSize = "Y"
3805 Drop.ZIndex = 5
3806 Drop.ScrollBarImageColor3 = Color3.fromRGB(255, 37, 110)
3807
3808 UIListLayout.Parent = Drop
3809 UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
3810 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
3811
3812 local num = #data.options
3813 if num > 5 then
3814 Drop.Size = UDim2.new(1, 0, 0, 85)
3815 else
3816 Drop.Size = UDim2.new(1, 0, 0, 17*num)
3817 end
3818 local first = true
3819 for i,v in ipairs(data.options) do
3820 do
3821 local Button = Instance.new("TextButton")
3822 local TextLabel = Instance.new("TextLabel")
3823
3824 Button.Name = v
3825 Button.Parent = Drop
3826 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3827 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
3828 Button.Position = UDim2.new(0, 30, 0, 16)
3829 Button.Size = UDim2.new(0, 175, 0, 17)
3830 Button.AutoButtonColor = false
3831 Button.Font = Enum.Font.SourceSans
3832 Button.Text = ""
3833 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
3834 Button.TextSize = 14.000
3835 Button.BorderSizePixel = 0
3836 Button.ZIndex = 6
3837
3838 TextLabel.Parent = Button
3839 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3840 TextLabel.BackgroundTransparency = 1.000
3841 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
3842 TextLabel.Position = UDim2.new(0, 5, 0, -1)
3843 TextLabel.Size = UDim2.new(-0.21714285, 208, 1, 0)
3844 TextLabel.Font = Enum.Font.SourceSansSemibold
3845 TextLabel.Text = v
3846 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
3847 TextLabel.TextSize = 14.000
3848 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
3849 TextLabel.ZIndex = 6
3850
3851 Button.MouseButton1Down:Connect(function()
3852 Drop.Visible = false
3853 Element.value.Dropdown = v
3854 abcd.Text = v
3855 values[tabname][sectorname][text] = Element.value
3856 callback(Element.value)
3857 Drop.CanvasPosition = Vector2.new(0,0)
3858 end)
3859 Button.MouseEnter:Connect(function()
3860 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
3861 end)
3862 Button.MouseLeave:Connect(function()
3863 library:Tween(TextLabel, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
3864 end)
3865
3866 first = false
3867 end
3868 end
3869
3870 function Element:SetValue(val)
3871 Element.value = val
3872 abcd.Text = val.Dropdown
3873 values[tabname][sectorname][text] = Element.value
3874 callback(val)
3875 end
3876
3877 ImageLabel.Parent = Button
3878 ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3879 ImageLabel.BackgroundTransparency = 1.000
3880 ImageLabel.Position = UDim2.new(0, 165, 0, 6)
3881 ImageLabel.Size = UDim2.new(0, 6, 0, 4)
3882 ImageLabel.Image = "http://www.roblox.com/asset/?id=6724771531"
3883
3884 TextLabel_3.Parent = Dropdown
3885 TextLabel_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3886 TextLabel_3.BackgroundTransparency = 1.000
3887 TextLabel_3.Position = UDim2.new(0, 32, 0, -1)
3888 TextLabel_3.Size = UDim2.new(0.111913361, 208, 0.382215232, 0)
3889 TextLabel_3.Font = Enum.Font.SourceSansSemibold
3890 TextLabel_3.Text = text
3891 TextLabel_3.TextColor3 = Color3.fromRGB(200, 200, 200)
3892 TextLabel_3.TextSize = 14.000
3893 TextLabel_3.TextXAlignment = Enum.TextXAlignment.Left
3894
3895 Button.MouseButton1Down:Connect(function()
3896 Drop.Visible = not Drop.Visible
3897 if not Drop.Visible then
3898 Drop.CanvasPosition = Vector2.new(0,0)
3899 end
3900 end)
3901 local indrop = false
3902 local ind = false
3903 Drop.MouseEnter:Connect(function()
3904 indrop = true
3905 end)
3906 Drop.MouseLeave:Connect(function()
3907 indrop = false
3908 end)
3909 Button.MouseEnter:Connect(function()
3910 ind = true
3911 end)
3912 Button.MouseLeave:Connect(function()
3913 ind = false
3914 end)
3915 game:GetService("UserInputService").InputBegan:Connect(function(input)
3916 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.MouseButton2 then
3917 if Drop.Visible == true and not indrop and not ind then
3918 Drop.Visible = false
3919 Drop.CanvasPosition = Vector2.new(0,0)
3920 end
3921 end
3922 end)
3923 values[tabname][sectorname][text] = Element.value
3924 elseif type == "Slider" then
3925
3926 Section.Size = Section.Size + UDim2.new(0,0,0,25)
3927
3928 local Slider = Instance.new("Frame")
3929 local TextLabel = Instance.new("TextLabel")
3930 local Button = Instance.new("TextButton")
3931 local Frame = Instance.new("Frame")
3932 local UIGradient = Instance.new("UIGradient")
3933 local Value = Instance.new("TextLabel")
3934
3935 Slider.Name = "Slider"
3936 Slider.Parent = Inner
3937 Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3938 Slider.BackgroundTransparency = 1.000
3939 Slider.Position = UDim2.new(0, 0, 0.653061211, 0)
3940 Slider.Size = UDim2.new(1, 0, 0, 25)
3941
3942 TextLabel.Parent = Slider
3943 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3944 TextLabel.BackgroundTransparency = 1.000
3945 TextLabel.Position = UDim2.new(0, 32, 0, -2)
3946 TextLabel.Size = UDim2.new(0, 100, 0, 15)
3947 TextLabel.Font = Enum.Font.SourceSansSemibold
3948 TextLabel.Text = text
3949 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
3950 TextLabel.TextSize = 14.000
3951 TextLabel.TextXAlignment = Enum.TextXAlignment.Left
3952
3953 Button.Name = "Button"
3954 Button.Parent = Slider
3955 Button.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
3956 Button.BorderColor3 = Color3.fromRGB(27, 27, 35)
3957 Button.Position = UDim2.new(0, 30, 0, 15)
3958 Button.Size = UDim2.new(0, 175, 0, 5)
3959 Button.AutoButtonColor = false
3960 Button.Font = Enum.Font.SourceSans
3961 Button.Text = ""
3962 Button.TextColor3 = Color3.fromRGB(0, 0, 0)
3963 Button.TextSize = 14.000
3964
3965 Frame.Parent = Button
3966 Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3967 Frame.BorderSizePixel = 0
3968 Frame.Size = UDim2.new(0.5, 0, 1, 0)
3969
3970 UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0, Color3.fromRGB(153, 22, 65)), ColorSequenceKeypoint.new(1, Color3.fromRGB(109, 16, 46))}
3971 UIGradient.Rotation = 90
3972 UIGradient.Parent = Frame
3973
3974 Value.Name = "Value"
3975 Value.Parent = Slider
3976 Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
3977 Value.BackgroundTransparency = 1.000
3978 Value.Position = UDim2.new(0, 150, 0, -1)
3979 Value.Size = UDim2.new(0, 55, 0, 15)
3980 Value.Font = Enum.Font.SourceSansSemibold
3981 Value.Text = "50"
3982 Value.TextColor3 = Color3.fromRGB(200, 200, 200)
3983 Value.TextSize = 14.000
3984 Value.TextXAlignment = Enum.TextXAlignment.Right
3985 local min, max, default = data.min or 0, data.max or 100, data.default or 0
3986 Element.value = {Slider = default}
3987
3988 function Element:SetValue(value)
3989 Element.value = value
3990 local a
3991 if min > 0 then
3992 a = ((Element.value.Slider - min)) / (max-min)
3993 else
3994 a = (Element.value.Slider-min)/(max-min)
3995 end
3996 Value.Text = Element.value.Slider
3997 Frame.Size = UDim2.new(a,0,1,0)
3998 values[tabname][sectorname][text] = Element.value
3999 callback(value)
4000 end
4001 local a
4002 if min > 0 then
4003 a = ((Element.value.Slider - min)) / (max-min)
4004 else
4005 a = (Element.value.Slider-min)/(max-min)
4006 end
4007 Value.Text = Element.value.Slider
4008 Frame.Size = UDim2.new(a,0,1,0)
4009 values[tabname][sectorname][text] = Element.value
4010 local uis = game:GetService("UserInputService")
4011 local mouse = game.Players.LocalPlayer:GetMouse()
4012 local val
4013 Button.MouseButton1Down:Connect(function()
4014 Frame.Size = UDim2.new(0, math.clamp(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
4015 val = math.floor((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min)) or 0
4016 Value.Text = val
4017 Element.value.Slider = val
4018 values[tabname][sectorname][text] = Element.value
4019 callback(Element.value)
4020 moveconnection = mouse.Move:Connect(function()
4021 Frame.Size = UDim2.new(0, math.clamp(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
4022 val = math.floor((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min))
4023 Value.Text = val
4024 Element.value.Slider = val
4025 values[tabname][sectorname][text] = Element.value
4026 callback(Element.value)
4027 end)
4028 releaseconnection = uis.InputEnded:Connect(function(Mouse)
4029 if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
4030 Frame.Size = UDim2.new(0, math.clamp(mouse.X - Frame.AbsolutePosition.X, 0, 175), 0, 5)
4031 val = math.floor((((tonumber(max) - tonumber(min)) / 175) * Frame.AbsoluteSize.X) + tonumber(min))
4032 values[tabname][sectorname][text] = Element.value
4033 callback(Element.value)
4034 moveconnection:Disconnect()
4035 releaseconnection:Disconnect()
4036 end
4037 end)
4038 end)
4039 elseif type == "Button" then
4040
4041 Section.Size = Section.Size + UDim2.new(0,0,0,24)
4042 local Button = Instance.new("Frame")
4043 local Button_2 = Instance.new("TextButton")
4044 local TextLabel = Instance.new("TextLabel")
4045
4046 Button.Name = "Button"
4047 Button.Parent = Inner
4048 Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
4049 Button.BackgroundTransparency = 1.000
4050 Button.Position = UDim2.new(0, 0, 0.236059487, 0)
4051 Button.Size = UDim2.new(1, 0, 0, 24)
4052
4053 Button_2.Name = "Button"
4054 Button_2.Parent = Button
4055 Button_2.BackgroundColor3 = Color3.fromRGB(33, 35, 47)
4056 Button_2.BorderColor3 = Color3.fromRGB(27, 27, 35)
4057 Button_2.Position = UDim2.new(0, 30, 0.5, -9)
4058 Button_2.Size = UDim2.new(0, 175, 0, 18)
4059 Button_2.AutoButtonColor = false
4060 Button_2.Font = Enum.Font.SourceSans
4061 Button_2.Text = ""
4062 Button_2.TextColor3 = Color3.fromRGB(0, 0, 0)
4063 Button_2.TextSize = 14.000
4064
4065 TextLabel.Parent = Button_2
4066 TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
4067 TextLabel.BackgroundTransparency = 1.000
4068 TextLabel.BorderColor3 = Color3.fromRGB(27, 42, 53)
4069 TextLabel.Size = UDim2.new(1, 0, 1, 0)
4070 TextLabel.Font = Enum.Font.SourceSansSemibold
4071 TextLabel.Text = text
4072 TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
4073 TextLabel.TextSize = 14.000
4074
4075 function Element:SetValue()
4076 end
4077
4078 Button_2.MouseButton1Down:Connect(function()
4079 TextLabel.TextColor3 = Color3.fromRGB(175, 42, 86)
4080 library:Tween(TextLabel, TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
4081 callback()
4082 end)
4083 Button_2.MouseEnter:Connect(function()
4084 library:Tween(TextLabel, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(255, 255, 255)})
4085 end)
4086 Button_2.MouseLeave:Connect(function()
4087 library:Tween(TextLabel, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {TextColor3 = Color3.fromRGB(200, 200, 200)})
4088 end)
4089 end
4090 ConfigLoad:Connect(function(cfg)
4091 pcall(function()
4092 local fix = library:ConfigFix(cfg)
4093 if fix[tabname][sectorname][text] ~= nil then
4094 Element:SetValue(fix[tabname][sectorname][text])
4095 end
4096 end)
4097 end)
4098
4099 return Element
4100 end
4101 return Sector
4102 end
4103
4104 return Tab
4105 end
4106
4107 Aristois.Parent = game.CoreGui
4108
4109 return menu
4110end
4111
4112local UserInputService = game:GetService("UserInputService")
4113local ReplicatedStorage = game:GetService("ReplicatedStorage")
4114local RunService = game:GetService("RunService")
4115local Lighting = game:GetService("Lighting")
4116local Players = game:GetService("Players")
4117local LocalPlayer = Players.LocalPlayer
4118local PlayerGui = LocalPlayer.PlayerGui
4119local Mouse = LocalPlayer:GetMouse()
4120local Camera = workspace.CurrentCamera
4121local Client = getsenv(LocalPlayer.PlayerGui.Client)
4122
4123
4124local Crosshairs = PlayerGui.GUI.Crosshairs
4125local Crosshair = PlayerGui.GUI.Crosshairs.Crosshair
4126local oldcreatebullethole = Client.createbullethole
4127local LGlove, RGlove, LSleeve, RSleeve, RArm, LArm
4128local WeaponObj = {}
4129local SelfObj = {}
4130local Viewmodels = ReplicatedStorage.Viewmodels
4131local Weapons = ReplicatedStorage.Weapons
4132local ViewmodelOffset = CFrame.new(0,0,0)
4133local Smokes = {}
4134local Mollies = {}
4135local RayIgnore = workspace.Ray_Ignore
4136local RageTarget
4137local GetIcon = require(game.ReplicatedStorage.GetIcon)
4138local BodyVelocity = Instance.new("BodyVelocity")
4139BodyVelocity.MaxForce = Vector3.new(math.huge, 0, math.huge)
4140local Collision = {Camera, workspace.Ray_Ignore, workspace.Debris}
4141local FakelagFolder = Instance.new("Folder", workspace)
4142FakelagFolder.Name = "Fakelag"
4143local FakeAnim = Instance.new("Animation", workspace)
4144FakeAnim.AnimationId = "rbxassetid://0"
4145local Gloves = ReplicatedStorage.Gloves
4146if Gloves:FindFirstChild("ImageLabel") then
4147 Gloves.ImageLabel:Destroy()
4148end
4149local GloveModels = Gloves.Models
4150local Multipliers = {
4151 ["Head"] = 4,
4152 ["FakeHead"] = 4,
4153 ["HeadHB"] = 4,
4154 ["UpperTorso"] = 1,
4155 ["LowerTorso"] = 1.25,
4156 ["LeftUpperArm"] = 1,
4157 ["LeftLowerArm"] = 1,
4158 ["LeftHand"] = 1,
4159 ["RightUpperArm"] = 1,
4160 ["RightLowerArm"] = 1,
4161 ["RightHand"] = 1,
4162 ["LeftUpperLeg"] = 0.75,
4163 ["LeftLowerLeg"] = 0.75,
4164 ["LeftFoot"] = 0.75,
4165 ["RightUpperLeg"] = 0.75,
4166 ["RightLowerLeg"] = 0.75,
4167 ["RightFoot"] = 0.75,
4168}
4169local ChamItems = {}
4170local Skyboxes = {
4171 ["nebula"] = {
4172 SkyboxLf = "rbxassetid://159454286",
4173 SkyboxBk = "rbxassetid://159454299",
4174 SkyboxDn = "rbxassetid://159454296",
4175 SkyboxFt = "rbxassetid://159454293",
4176 SkyboxLf = "rbxassetid://159454286",
4177 SkyboxRt = "rbxassetid://159454300",
4178 SkyboxUp = "rbxassetid://159454288",
4179 },
4180 ["vaporwave"] = {
4181 SkyboxLf = "rbxassetid://1417494402",
4182 SkyboxBk = "rbxassetid://1417494030",
4183 SkyboxDn = "rbxassetid://1417494146",
4184 SkyboxFt = "rbxassetid://1417494253",
4185 SkyboxLf = "rbxassetid://1417494402",
4186 SkyboxRt = "rbxassetid://1417494499",
4187 SkyboxUp = "rbxassetid://1417494643",
4188 },
4189 ["clouds"] = {
4190 SkyboxLf = "rbxassetid://570557620",
4191 SkyboxBk = "rbxassetid://570557514",
4192 SkyboxDn = "rbxassetid://570557775",
4193 SkyboxFt = "rbxassetid://570557559",
4194 SkyboxLf = "rbxassetid://570557620",
4195 SkyboxRt = "rbxassetid://570557672",
4196 SkyboxUp = "rbxassetid://570557727",
4197 },
4198 ["twilight"] = {
4199 SkyboxLf = "rbxassetid://264909758",
4200 SkyboxBk = "rbxassetid://264908339",
4201 SkyboxDn = "rbxassetid://264907909",
4202 SkyboxFt = "rbxassetid://264909420",
4203 SkyboxLf = "rbxassetid://264909758",
4204 SkyboxRt = "rbxassetid://264908886",
4205 SkyboxUp = "rbxassetid://264907379",
4206 },
4207}
4208local NewScope
4209do
4210 local ScreenGui = Instance.new("ScreenGui")
4211 local Frame = Instance.new("Frame")
4212 local Frame_2 = Instance.new("Frame")
4213
4214 ScreenGui.Enabled = false
4215 ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
4216 ScreenGui.IgnoreGuiInset = true
4217
4218 Frame.Parent = ScreenGui
4219 Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
4220 Frame.BorderSizePixel = 0
4221 Frame.Position = UDim2.new(0, 0, 0.5, 0)
4222 Frame.Size = UDim2.new(1, 0, 0, 1)
4223
4224 Frame_2.Parent = ScreenGui
4225 Frame_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
4226 Frame_2.BorderSizePixel = 0
4227 Frame_2.Position = UDim2.new(0.5, 0, 0, 0)
4228 Frame_2.Size = UDim2.new(0, 1, 1, 0)
4229
4230 ScreenGui.Parent = game.CoreGui
4231
4232 NewScope = ScreenGui
4233end
4234local oldSkybox
4235
4236local function VectorRGB(RGB)
4237 return Vector3.new(RGB.R, RGB.G, RGB.B)
4238end
4239local function new(name, prop)
4240 local obj = Instance.new(name)
4241 for i,v in pairs(prop) do
4242 if i ~= "Parent" then
4243 obj[i] = v
4244 end
4245 end
4246 if prop["Parent"] ~= nil then
4247 obj.Parent = prop["Parent"]
4248 end
4249end
4250local function UpdateAccessory(Accessory)
4251 Accessory.Material = values.visuals.effects["accessory material"].Dropdown == "Smooth" and "SmoothPlastic" or "ForceField"
4252 Accessory.Mesh.VertexColor = VectorRGB(values.visuals.effects["accessory chams"].Color)
4253 Accessory.Color = values.visuals.effects["accessory chams"].Color
4254 Accessory.Transparency = values.visuals.effects["accessory chams"].Transparency
4255 if values.visuals.effects["accessory material"].Dropdown ~= "ForceField" then
4256 Accessory.Mesh.TextureId = ""
4257 else
4258 Accessory.Mesh.TextureId = Accessory.StringValue.Value
4259 end
4260end
4261local function ReverseAccessory(Accessory)
4262 Accessory.Material = "SmoothPlastic"
4263 Accessory.Mesh.VertexColor = Vector3.new(1,1,1)
4264 Accessory.Mesh.TextureId = Accessory.StringValue.Value
4265 Accessory.Transparency = 0
4266end
4267local function UpdateWeapon(obj)
4268 local selected = values.visuals.effects["weapon material"].Dropdown
4269
4270 if obj:IsA("MeshPart") then obj.TextureID = "" end
4271 if obj:IsA("Part") and obj:FindFirstChild("Mesh") and not obj:IsA("BlockMesh") then
4272 obj.Mesh.VertexColor = VectorRGB(values.visuals.effects["weapon chams"].Color)
4273 if selected == "Smooth" or selected == "Glass" then
4274 obj.Mesh.TextureId = ""
4275 else
4276 pcall(function()
4277 obj.Mesh.TextureId = obj.Mesh.OriginalTexture.Value
4278 obj.Mesh.TextureID = obj.Mesh.OriginalTexture.Value
4279 end)
4280 end
4281 end
4282 obj.Color = values.visuals.effects["weapon chams"].Color
4283 obj.Material = selected == "Smooth" and "SmoothPlastic" or selected == "Flat" and "Neon" or selected == "ForceField" and "ForceField" or "Glass"
4284 obj.Reflectance = values.visuals.effects["reflectance"].Slider/10
4285 obj.Transparency = values.visuals.effects["weapon chams"].Transparency
4286end
4287local Skins = ReplicatedStorage.Skins
4288local function MapSkin(Gun, Skin, CustomSkin)
4289 if CustomSkin ~= nil then
4290 for _,Data in pairs(CustomSkin) do
4291 local Obj = Camera.Arms:FindFirstChild(Data.Name)
4292 if Obj ~= nil and Obj.Transparency ~= 1 then
4293 Obj.TextureId = Data.Value
4294 end
4295 end
4296 else
4297 local SkinData = Skins:FindFirstChild(Gun):FindFirstChild(Skin)
4298 if not SkinData:FindFirstChild("Animated") then
4299 for _,Data in pairs(SkinData:GetChildren()) do
4300 local Obj = Camera.Arms:FindFirstChild(Data.Name)
4301 if Obj ~= nil and Obj.Transparency ~= 1 then
4302 if Obj:FindFirstChild("Mesh") then
4303 Obj.Mesh.TextureId = v.Value
4304 elseif not Obj:FindFirstChild("Mesh") then
4305 Obj.TextureID = Data.Value
4306 end
4307 end
4308 end
4309 end
4310 end
4311end
4312local function ChangeCharacter(NewCharacter)
4313 for _,Part in pairs (LocalPlayer.Character:GetChildren()) do
4314 if Part:IsA("Accessory") then
4315 Part:Destroy()
4316 end
4317 if Part:IsA("BasePart") then
4318 if NewCharacter:FindFirstChild(Part.Name) then
4319 Part.Color = NewCharacter:FindFirstChild(Part.Name).Color
4320 Part.Transparency = NewCharacter:FindFirstChild(Part.Name).Transparency
4321 end
4322 if Part.Name == "FakeHead" then
4323 Part.Color = NewCharacter:FindFirstChild("Head").Color
4324 Part.Transparency = NewCharacter:FindFirstChild("Head").Transparency
4325 end
4326 end
4327
4328 if (Part.Name == "Head" or Part.Name == "FakeHead") and Part:FindFirstChildOfClass("Decal") and NewCharacter.Head:FindFirstChildOfClass("Decal") then
4329 Part:FindFirstChildOfClass("Decal").Texture = NewCharacter.Head:FindFirstChildOfClass("Decal").Texture
4330 end
4331 end
4332
4333 if NewCharacter:FindFirstChildOfClass("Shirt") then
4334 if LocalPlayer.Character:FindFirstChildOfClass("Shirt") then
4335 LocalPlayer.Character:FindFirstChildOfClass("Shirt"):Destroy()
4336 end
4337 local Clone = NewCharacter:FindFirstChildOfClass("Shirt"):Clone()
4338 Clone.Parent = LocalPlayer.Character
4339 end
4340
4341 if NewCharacter:FindFirstChildOfClass("Pants") then
4342 if LocalPlayer.Character:FindFirstChildOfClass("Pants") then
4343 LocalPlayer.Character:FindFirstChildOfClass("Pants"):Destroy()
4344 end
4345 local Clone = NewCharacter:FindFirstChildOfClass("Pants"):Clone()
4346 Clone.Parent = LocalPlayer.Character
4347 end
4348
4349 for _,Part in pairs (NewCharacter:GetChildren()) do
4350 if Part:IsA("Accessory") then
4351 local Clone = Part:Clone()
4352 for _,Weld in pairs (Clone.Handle:GetChildren()) do
4353 if Weld:IsA("Weld") and Weld.Part1 ~= nil then
4354 Weld.Part1 = LocalPlayer.Character[Weld.Part1.Name]
4355 end
4356 end
4357 Clone.Parent = LocalPlayer.Character
4358 end
4359 end
4360
4361 if LocalPlayer.Character:FindFirstChildOfClass("Shirt") then
4362 local String = Instance.new("StringValue")
4363 String.Name = "OriginalTexture"
4364 String.Value = LocalPlayer.Character:FindFirstChildOfClass("Shirt").ShirtTemplate
4365 String.Parent = LocalPlayer.Character:FindFirstChildOfClass("Shirt")
4366
4367 if table.find(values.visuals.effects.removals.Jumbobox, "clothes") then
4368 LocalPlayer.Character:FindFirstChildOfClass("Shirt").ShirtTemplate = ""
4369 end
4370 end
4371 if LocalPlayer.Character:FindFirstChildOfClass("Pants") then
4372 local String = Instance.new("StringValue")
4373 String.Name = "OriginalTexture"
4374 String.Value = LocalPlayer.Character:FindFirstChildOfClass("Pants").PantsTemplate
4375 String.Parent = LocalPlayer.Character:FindFirstChildOfClass("Pants")
4376
4377 if table.find(values.visuals.effects.removals.Jumbobox, "clothes") then
4378 LocalPlayer.Character:FindFirstChildOfClass("Pants").PantsTemplate = ""
4379 end
4380 end
4381 for i,v in pairs(LocalPlayer.Character:GetChildren()) do
4382 if v:IsA("BasePart") and v.Transparency ~= 1 then
4383 table.insert(SelfObj, v)
4384 local Color = Instance.new("Color3Value")
4385 Color.Name = "OriginalColor"
4386 Color.Value = v.Color
4387 Color.Parent = v
4388
4389 local String = Instance.new("StringValue")
4390 String.Name = "OriginalMaterial"
4391 String.Value = v.Material.Name
4392 String.Parent = v
4393 elseif v:IsA("Accessory") and v.Handle.Transparency ~= 1 then
4394 table.insert(SelfObj, v.Handle)
4395 local Color = Instance.new("Color3Value")
4396 Color.Name = "OriginalColor"
4397 Color.Value = v.Handle.Color
4398 Color.Parent = v.Handle
4399
4400 local String = Instance.new("StringValue")
4401 String.Name = "OriginalMaterial"
4402 String.Value = v.Handle.Material.Name
4403 String.Parent = v.Handle
4404 end
4405 end
4406
4407 if values.visuals.self["self chams"].Toggle then
4408 for _,obj in pairs(SelfObj) do
4409 if obj.Parent ~= nil then
4410 obj.Material = Enum.Material.ForceField
4411 obj.Color = values.visuals.self["self chams"].Color
4412 end
4413 end
4414 end
4415end
4416local function GetDeg(pos1, pos2)
4417 local start = pos1.LookVector
4418 local vector = CFrame.new(pos1.Position, pos2).LookVector
4419 local angle = math.acos(start:Dot(vector))
4420 local deg = math.deg(angle)
4421 return deg
4422end
4423local Ping = game.Stats.PerformanceStats.Ping:GetValue()
4424
4425for i,v in pairs(Viewmodels:GetChildren()) do
4426 if v:FindFirstChild("HumanoidRootPart") and v.HumanoidRootPart.Transparency ~= 1 then
4427 v.HumanoidRootPart.Transparency = 1
4428 end
4429end
4430
4431local Models = game:GetObjects("rbxassetid://6708336356")[1]
4432repeat wait() until Models ~= nil
4433local ChrModels = game:GetObjects("rbxassetid://6937741242")[1]
4434repeat wait() until ChrModels ~= nil
4435
4436
4437local AllKnives = {
4438 "CT Knife",
4439 "T Knife",
4440 "Banana",
4441 "Bayonet",
4442 "Bearded Axe",
4443 "Butterfly Knife",
4444 "Cleaver",
4445 "Crowbar",
4446 "Falchion Knife",
4447 "Flip Knife",
4448 "Gut Knife",
4449 "Huntsman Knife",
4450 "Karambit",
4451 "Sickle",
4452}
4453
4454local AllGloves = {}
4455
4456
4457for _,fldr in pairs(Gloves:GetChildren()) do
4458 if fldr ~= GloveModels and fldr.Name ~= "Racer" then
4459 AllGloves[fldr.Name] = {}
4460 for _2,modl in pairs(fldr:GetChildren()) do
4461 table.insert(AllGloves[fldr.Name], modl.Name)
4462 end
4463 end
4464end
4465
4466for i,v in pairs(Models.Knives:GetChildren()) do
4467 table.insert(AllKnives, v.Name)
4468end
4469
4470local AllSkins = {}
4471local AllWeapons = {}
4472local AllCharacters = {}
4473
4474for i,v in pairs(ChrModels:GetChildren()) do
4475 table.insert(AllCharacters, v.Name)
4476end
4477
4478
4479for i,v in pairs(Skins:GetChildren()) do
4480 table.insert(AllWeapons, v.Name)
4481end
4482
4483table.sort(AllWeapons, function(a,b)
4484 return a < b
4485end)
4486
4487for i,v in ipairs(AllWeapons) do
4488 AllSkins[v] = {}
4489 table.insert(AllSkins[v], "Inventory")
4490 for _,v2 in pairs(Skins[v]:GetChildren()) do
4491 if not v2:FindFirstChild("Animated") then
4492 table.insert(AllSkins[v], v2.Name)
4493 end
4494 end
4495end
4496
4497makefolder("aristoislua")
4498
4499local allluas = {}
4500
4501for _,lua in pairs(listfiles("aristoislua")) do
4502 local luaname = string.gsub(lua, "aristoislua\\", "")
4503 table.insert(allluas, luaname)
4504end
4505
4506RunService.RenderStepped:Wait()
4507
4508local gui = library:New("Stormy")
4509local legit = gui:Tab("legit")
4510local rage = gui:Tab("rage")
4511local visuals = gui:Tab("visuals")
4512local misc = gui:Tab("misc")
4513local skins = gui:Tab("skins")
4514local luas = gui:Tab("luas")
4515
4516getgenv().api = {}
4517api.newtab = function(name)
4518 return gui:Tab(name)
4519end
4520api.newsection = function(tab, name, side)
4521 return tab:Sector(name, side)
4522end
4523api.newelement = function(section, type, name, data, callback)
4524 section:Element(type, name, data, callback)
4525end
4526
4527
4528local luascripts = luas:Sector("lua scripts", "Left")
4529luascripts:Element("Scroll", "lua", {options = allluas, Amount = 5})
4530luascripts:Element("Button", "load", {}, function()
4531 loadstring(readfile("aristoislua\\"..values.luas["lua scripts"].lua.Scroll))()
4532end)
4533
4534local knife = skins:Sector("knife", "Left")
4535knife:Element("Toggle", "knife changer")
4536knife:Element("Scroll", "model", {options = AllKnives, Amount = 15})
4537
4538local glove = skins:Sector("glove", "Left")
4539glove:Element("Toggle", "glove changer")
4540glove:Element("ScrollDrop", "model", {options = AllGloves, Amount = 9})
4541
4542local skin = skins:Sector("skins", "Right")
4543skin:Element("Toggle", "skin changer")
4544skin:Element("ScrollDrop", "skin", {options = AllSkins, Amount = 15, alphabet = true})
4545
4546local characters = skins:Sector("characters", "Right")
4547characters:Element("Toggle", "character changer", nil, function(tbl)
4548 if tbl.Toggle then
4549 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Gun") then
4550 ChangeCharacter(ChrModels:FindFirstChild(values.skins.characters.skin.Scroll))
4551 end
4552 end
4553end)
4554characters:Element("Scroll", "skin", {options = AllCharacters, Amount = 9, alphabet = true}, function(tbl)
4555 if values.skins.characters["character changer"].Toggle then
4556 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Gun") then
4557 ChangeCharacter(ChrModels:FindFirstChild(tbl.Scroll))
4558 end
4559 end
4560end)
4561
4562local aimbot = legit:Sector("aimbot", "Left")
4563aimbot:Element("ToggleKeybind", "aim assist")
4564aimbot:Element("ToggleKeybind", "silent aim")
4565aimbot:Element("ToggleKeybind", "triggerbot")
4566
4567local main = legit:MSector("main", "Left")
4568local default = main:Tab("default")
4569local pistol = main:Tab("pistol")
4570local smg = main:Tab("smg")
4571local rifle = main:Tab("rifle")
4572local sniper = main:Tab("sniper")
4573
4574local function AddLegit(Tab)
4575 Tab:Element("Jumbobox", "conditions", {options = {"visible", "standing", "blind", "smoke"}})
4576 Tab:Element("Dropdown", "target", {options = {"crosshair", "health", "distance"}})
4577 Tab:Element("Dropdown", "hitbox", {options = {"closest", "head", "chest"}})
4578 Tab:Element("Slider", "field of view", {min = 30, max = 420, default = 120})
4579 Tab:Element("Slider", "smoothing", {min = 1, max = 50, default = 1})
4580 Tab:Element("Toggle", "silent aim")
4581 Tab:Element("Slider", "hitchance", {min = 1, max = 100, default = 100})
4582 Tab:Element("Dropdown", "priority", {options = {"closest", "head", "chest"}})
4583 Tab:Element("Toggle", "triggerbot")
4584 Tab:Element("Slider", "delay (ms)", {min = 0, max = 300, default = 200})
4585 Tab:Element("Slider", "minimum dmg", {min = 0, max = 100, default = 15})
4586end
4587
4588AddLegit(default)
4589
4590pistol:Element("Toggle", "override default")
4591AddLegit(pistol)
4592
4593smg:Element("Toggle", "override default")
4594AddLegit(smg)
4595
4596rifle:Element("Toggle", "override default")
4597AddLegit(rifle)
4598
4599sniper:Element("Toggle", "override default")
4600AddLegit(sniper)
4601
4602local settings = legit:Sector("settings", "Right")
4603settings:Element("Toggle", "free for all")
4604settings:Element("Toggle", "forcefield check")
4605settings:Element("ToggleColor", "draw fov")
4606local aimbot = rage:Sector("aimbot", "Left")
4607aimbot:Element("Toggle", "enabled")
4608aimbot:Element("Dropdown", "origin", {options = {"character", "camera"}})
4609aimbot:Element("Toggle", "silent aim")
4610aimbot:Element("Dropdown", "automatic fire", {options = {"off", "standard", "hitpart"}})
4611aimbot:Element("Toggle", "automatic penetration")
4612aimbot:Element("Jumbobox", "resolver", {options = {"pitch"}})
4613aimbot:Element("Toggle", "delay shot")
4614aimbot:Element("Toggle", "force hit")
4615aimbot:Element("Dropdown", "prediction", {options = {"off", "cframe", "velocity"}})
4616aimbot:Element("Toggle", "teammates")
4617aimbot:Element("Toggle", "auto baim")
4618aimbot:Element("Toggle", "knifebot")
4619
4620local weapons = rage:MSector("weapons", "Left")
4621local default = weapons:Tab("default")
4622local pistol = weapons:Tab("pistol")
4623local rifle = weapons:Tab("rifle")
4624local scout = weapons:Tab("scout")
4625local awp = weapons:Tab("awp")
4626local auto = weapons:Tab("auto")
4627
4628local function AddRage(Tab)
4629 Tab:Element("Jumbobox", "hitboxes", {options = {"head", "torso", "pelvis"}})
4630 Tab:Element("Toggle", "prefer body")
4631 Tab:Element("Slider", "minimum damage", {min = 1, max = 100, default = 20})
4632 Tab:Element("Slider", "max fov", {min = 1, max = 180, default = 180})
4633end
4634
4635AddRage(default)
4636
4637pistol:Element("Toggle", "override default")
4638AddRage(pistol)
4639
4640rifle:Element("Toggle", "override default")
4641AddRage(rifle)
4642
4643scout:Element("Toggle", "override default")
4644AddRage(scout)
4645
4646awp:Element("Toggle", "override default")
4647AddRage(awp)
4648
4649auto:Element("Toggle", "override default")
4650AddRage(auto)
4651
4652local antiaim = rage:Sector("angles", "Right")
4653antiaim:Element("Toggle", "enabled")
4654antiaim:Element("Dropdown", "yaw base", {options = {"camera", "targets", "spin", "random"}})
4655antiaim:Element("Slider", "yaw offset", {min = -180, max = 180, default = 0})
4656antiaim:Element("Toggle", "jitter")
4657antiaim:Element("Slider", "jitter offset", {min = -180, max = 180, default = 0})
4658antiaim:Element("Dropdown", "pitch", {options = {"none", "up", "down", "zero", "180", "random"}})
4659antiaim:Element("Toggle", "extend pitch")
4660antiaim:Element("Dropdown", "body roll", {options = {"off", "180"}})
4661antiaim:Element("Slider", "spin speed", {min = 1, max = 48, default = 4})
4662
4663local others = rage:Sector("others", "Right")
4664others:Element("Toggle", "remove head")
4665others:Element("Toggle", "no animations")
4666others:Element("Dropdown", "leg movement", {options = {"off", "slide"}})
4667
4668local LagTick = 0
4669local fakelag = rage:Sector("fakelag", "Right")
4670fakelag:Element("Toggle", "enabled", {default = {Toggle = false}}, function(tbl)
4671 if tbl.Toggle then
4672 else
4673 FakelagFolder:ClearAllChildren()
4674 game:GetService("NetworkClient"):SetOutgoingKBPSLimit(9e9)
4675 end
4676end)
4677fakelag:Element("Dropdown", "amount", {options = {"static", "dynamic"}})
4678fakelag:Element("Slider", "limit", {min = 1, max = 16, default = 8})
4679fakelag:Element("ToggleColor", "visualize lag", {default = {Toggle = false, Color = Color3.fromRGB(255,255,255)}}, function(tbl)
4680 if tbl.Toggle then
4681 for _,obj in pairs(FakelagFolder:GetChildren()) do
4682 obj.Color = tbl.Color
4683 end
4684 else
4685 FakelagFolder:ClearAllChildren()
4686 end
4687end)
4688fakelag:Element("ToggleKeybind", "ping spike")
4689coroutine.wrap(function()
4690while wait(1/16) do
4691 LagTick = math.clamp(LagTick + 1, 0, values.rage.fakelag.limit.Slider)
4692 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("UpperTorso") and values.rage.fakelag.enabled.Toggle then
4693 if LagTick == (values.rage.fakelag.amount.Dropdown == "static" and values.rage.fakelag.limit.Slider or math.random(1, values.rage.fakelag.limit.Slider)) then
4694 game:GetService("NetworkClient"):SetOutgoingKBPSLimit(9e9)
4695 FakelagFolder:ClearAllChildren()
4696 LagTick = 0
4697 if values.rage.fakelag["visualize lag"].Toggle then
4698 for _,hitbox in pairs(LocalPlayer.Character:GetChildren()) do
4699 if hitbox:IsA("BasePart") and hitbox.Name ~= "HumanoidRootPart" then
4700 local part = Instance.new("Part")
4701 part.CFrame = hitbox.CFrame
4702 part.Anchored = true
4703 part.CanCollide = false
4704 part.Material = Enum.Material.ForceField
4705 part.Color = values.rage.fakelag["visualize lag"].Color
4706 part.Name = hitbox.Name
4707 part.Transparency = 0
4708 part.Size = hitbox.Size
4709 part.Parent = FakelagFolder
4710 end
4711 end
4712 end
4713 else
4714 if values.rage.fakelag.enabled.Toggle then
4715 game:GetService("NetworkClient"):SetOutgoingKBPSLimit(1)
4716 end
4717 end
4718 else
4719 FakelagFolder:ClearAllChildren()
4720 game:GetService("NetworkClient"):SetOutgoingKBPSLimit(9e9)
4721 end
4722end
4723end)()
4724
4725local exploits = rage:Sector("exploits", "Left")
4726exploits:Element("ToggleKeybind", "double tap")
4727exploits:Element("ToggleKeybind", "kill all")
4728
4729
4730local players = visuals:Sector("players", "Left")
4731players:Element("Toggle", "teammates")
4732players:Element("ToggleColor", "box", {default = {Color = Color3.fromRGB(255,255,255)}})
4733players:Element("ToggleColor", "name", {default = {Color = Color3.fromRGB(255,255,255)}})
4734players:Element("Toggle", "health")
4735players:Element("ToggleColor", "weapon", {default = {Color = Color3.fromRGB(255,255,255)}})
4736players:Element("ToggleColor", "weapon icon", {default = {Color = Color3.fromRGB(255,255,255)}})
4737players:Element("Jumbobox", "indicators", {options = {"armor"}})
4738players:Element("Jumbobox", "outlines", {options = {"drawings", "text"}, default = {Jumbobox = {"drawings", "text"}}})
4739players:Element("Dropdown", "font", {options = {"Plex", "Monospace", "System", "UI"}})
4740players:Element("Slider", "size", {min = 12, max = 16, default = 13})
4741players:Element("ToggleColor", "chams", nil, function(tbl)
4742 for _,Player in pairs(Players:GetPlayers()) do
4743 if Player.Character then
4744 for _2,Obj in pairs(Player.Character:GetDescendants()) do
4745 if Obj.Name == "VisibleCham" or Obj.Name == "WallCham" then
4746 if tbl.Toggle then
4747 if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
4748 Obj.Visible = true
4749 else
4750 Obj.Visible = false
4751 end
4752 else
4753 Obj.Visible = false
4754 end
4755 Obj.Color3 = tbl.Color
4756 end
4757 end
4758 end
4759 end
4760end)
4761local effects = visuals:Sector("effects", "Right")
4762effects:Element("ToggleTrans", "weapon chams", {default = {Color = Color3.fromRGB(255,255,255), Transparency = 0}}, function(tbl)
4763 if WeaponObj == nil then return end
4764 if tbl.Toggle then
4765 for i,v in pairs(WeaponObj) do
4766 UpdateWeapon(v)
4767 end
4768 else
4769 for i,v in pairs(WeaponObj) do
4770 if v:IsA("MeshPart") then v.TextureID = v.OriginalTexture.Value end
4771 if v:IsA("Part") and v:FindFirstChild("Mesh") and not v:IsA("BlockMesh") then
4772 v.Mesh.TextureId = v.Mesh.OriginalTexture.Value
4773 v.Mesh.VertexColor = Vector3.new(1,1,1)
4774 end
4775 v.Color = v.OriginalColor.Value
4776 v.Material = v.OriginalMaterial.Value
4777 v.Transparency = 0
4778 end
4779 end
4780end)
4781effects:Element("Dropdown", "weapon material", {options = {"Smooth", "Flat", "ForceField", "Glass"}}, function(tbl)
4782 if WeaponObj == nil then return end
4783 if values.visuals.effects["weapon chams"].Toggle then
4784 for i,v in pairs(WeaponObj) do
4785 UpdateWeapon(v)
4786 end
4787 end
4788end)
4789effects:Element("Slider", "reflectance", {min = 0, max = 100, default = 0}, function(tbl)
4790 if values.visuals.effects["weapon chams"].Toggle then
4791 for i,v in pairs(WeaponObj) do
4792 UpdateWeapon(v)
4793 end
4794 end
4795end)
4796effects:Element("ToggleTrans", "accessory chams", {default = {Color = Color3.fromRGB(255,255,255)}}, function(val)
4797 if RArm == nil or LArm == nil then return end
4798 if val.Toggle then
4799 if RGlove ~= nil then
4800 UpdateAccessory(RGlove)
4801 end
4802 if RSleeve ~= nil then
4803 UpdateAccessory(RSleeve)
4804 end
4805 if LGlove ~= nil then
4806 UpdateAccessory(LGlove)
4807 end
4808 if LSleeve ~= nil then
4809 UpdateAccessory(LSleeve)
4810 end
4811 else
4812 if RGlove then
4813 ReverseAccessory(RGlove)
4814 end
4815 if LGlove then
4816 ReverseAccessory(LGlove)
4817 end
4818 if RSleeve then
4819 ReverseAccessory(RSleeve)
4820 end
4821 if LSleeve then
4822 ReverseAccessory(LSleeve)
4823 end
4824 end
4825end)
4826effects:Element("Dropdown", "accessory material", {options = {"Smooth","ForceField"}}, function(val)
4827 if RArm == nil or LArm == nil then return end
4828 if values.visuals.effects["accessory chams"].Toggle then
4829 if RGlove ~= nil then
4830 UpdateAccessory(RGlove)
4831 end
4832 if RSleeve ~= nil then
4833 UpdateAccessory(RSleeve)
4834 end
4835 if LGlove ~= nil then
4836 UpdateAccessory(LGlove)
4837 end
4838 if LSleeve ~= nil then
4839 UpdateAccessory(LSleeve)
4840 end
4841 end
4842end)
4843effects:Element("ToggleTrans", "arm chams", {default = {Color = Color3.fromRGB(255,255,255)}}, function(val)
4844 if RArm == nil then return end
4845 if LArm == nil then return end
4846 if val.Toggle then
4847 RArm.Color = val.Color
4848 LArm.Color = val.Color
4849 RArm.Transparency = val.Transparency
4850 LArm.Transparency = val.Transparency
4851 else
4852 RArm.Color = RArm.Color3Value.Value
4853 LArm.Color = RArm.Color3Value.Value
4854 RArm.Transparency = 0
4855 LArm.Transparency = 0
4856 end
4857end)
4858effects:Element("Jumbobox", "removals", {options = {"scope", "scope lines", "flash", "smoke", "decals", "shadows", "clothes"}}, function(val)
4859 local tbl = val.Jumbobox
4860 if table.find(tbl, "decals") then
4861 Client.createbullethole = function() end
4862 for i,v in pairs(workspace.Debris:GetChildren()) do
4863 if v.Name == "Bullet" or v.Name == "SurfaceGui" then
4864 v:Destroy()
4865 end
4866 end
4867 else
4868 Client.createbullethole = oldcreatebullethole
4869 end
4870 if table.find(tbl, "clothes") then
4871 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("UpperTorso") then
4872 if LocalPlayer.Character:FindFirstChild("Shirt") then
4873 LocalPlayer.Character:FindFirstChild("Shirt").ShirtTemplate = ""
4874 end
4875 if LocalPlayer.Character:FindFirstChild("Pants") then
4876 LocalPlayer.Character:FindFirstChild("Pants").PantsTemplate = ""
4877 end
4878 end
4879 else
4880 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("UpperTorso") then
4881 if LocalPlayer.Character:FindFirstChild("Shirt") then
4882 LocalPlayer.Character:FindFirstChild("Shirt").ShirtTemplate = LocalPlayer.Character:FindFirstChild("Shirt").OriginalTexture.Value
4883 end
4884 if LocalPlayer.Character:FindFirstChild("Pants") then
4885 LocalPlayer.Character:FindFirstChild("Pants").PantsTemplate = LocalPlayer.Character:FindFirstChild("Pants").OriginalTexture.Value
4886 end
4887 end
4888 end
4889 if table.find(tbl, "scope") then
4890 Crosshairs.Scope.ImageTransparency = 1
4891 Crosshairs.Scope.Scope.ImageTransparency = 1
4892 Crosshairs.Frame1.Transparency = 1
4893 Crosshairs.Frame2.Transparency = 1
4894 Crosshairs.Frame3.Transparency = 1
4895 Crosshairs.Frame4.Transparency = 1
4896 else
4897 Crosshairs.Scope.ImageTransparency = 0
4898 Crosshairs.Scope.Scope.ImageTransparency = 0
4899 Crosshairs.Frame1.Transparency = 0
4900 Crosshairs.Frame2.Transparency = 0
4901 Crosshairs.Frame3.Transparency = 0
4902 Crosshairs.Frame4.Transparency = 0
4903 end
4904 PlayerGui.Blnd.Enabled = not table.find(tbl, "flash") and true or false
4905 Lighting.GlobalShadows = not table.find(tbl, "shadows") and true or false
4906 if RayIgnore:FindFirstChild("Smokes") then
4907 if table.find(tbl, "smoke") then
4908 for i,smoke in pairs(RayIgnore.Smokes:GetChildren()) do
4909 smoke.ParticleEmitter.Rate = 0
4910 end
4911 else
4912 for i,smoke in pairs(RayIgnore.Smokes:GetChildren()) do
4913 smoke.ParticleEmitter.Rate = smoke.OriginalRate.Value
4914 end
4915 end
4916 end
4917end)
4918effects:Element("Toggle", "force crosshair")
4919effects:Element("ToggleColor", "world color", {default = {Color = Color3.fromRGB(255,255,255)}}, function(val)
4920 if val.Toggle then
4921 Camera.ColorCorrection.TintColor = val.Color
4922 else
4923 Camera.ColorCorrection.TintColor = Color3.fromRGB(255,255,255)
4924 end
4925end)
4926effects:Element("Toggle", "shadowmap technology", nil, function(val) sethiddenproperty(Lighting, "Technology", val.Toggle and "ShadowMap" or "Legacy") end)
4927
4928local self = visuals:Sector("self", "Right")
4929self:Element("ToggleKeybind", "third person", {}, function(tbl)
4930 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
4931 if tbl.Toggle then
4932 if tbl.Active then
4933 LocalPlayer.CameraMaxZoomDistance = values.visuals.self.distance.Slider
4934 LocalPlayer.CameraMinZoomDistance = values.visuals.self.distance.Slider
4935 LocalPlayer.CameraMaxZoomDistance = values.visuals.self.distance.Slider
4936 LocalPlayer.CameraMinZoomDistance = values.visuals.self.distance.Slider
4937 else
4938 LocalPlayer.CameraMaxZoomDistance = 0
4939 LocalPlayer.CameraMinZoomDistance = 0
4940 LocalPlayer.CameraMaxZoomDistance = 0
4941 LocalPlayer.CameraMinZoomDistance = 0
4942 end
4943 else
4944 LocalPlayer.CameraMaxZoomDistance = 0
4945 LocalPlayer.CameraMinZoomDistance = 0
4946 end
4947 end
4948end)
4949self:Element("Slider", "distance", {min = 6, max = 18, default = 12}, function(tbl)
4950 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
4951 if values.visuals.self["third person"].Toggle then
4952 if values.visuals.self["third person"].Active then
4953 LocalPlayer.CameraMaxZoomDistance = tbl.Slider
4954 LocalPlayer.CameraMinZoomDistance = tbl.Slider
4955 LocalPlayer.CameraMaxZoomDistance = tbl.Slider
4956 LocalPlayer.CameraMinZoomDistance = tbl.Slider
4957 else
4958 LocalPlayer.CameraMaxZoomDistance = 0
4959 LocalPlayer.CameraMinZoomDistance = 0
4960 end
4961 else
4962 LocalPlayer.CameraMaxZoomDistance = 0
4963 LocalPlayer.CameraMinZoomDistance = 0
4964 end
4965 end
4966end)
4967LocalPlayer:GetPropertyChangedSignal("CameraMinZoomDistance"):Connect(function(current)
4968 if values.visuals.self["third person"].Toggle then
4969 if values.visuals.self["third person"].Active then
4970 if current ~= values.visuals.self.distance.Slider then
4971 LocalPlayer.CameraMinZoomDistance = values.visuals.self.distance.Slider
4972 end
4973 end
4974 end
4975end)
4976self:Element("Slider", "fov changer", {min = 0, max = 120, default = 80}, function(value)
4977 RunService.RenderStepped:Wait()
4978 if LocalPlayer.Character == nil then return end
4979 if fov == value.Slider then return end
4980 if values.visuals.self["on scope"].Toggle or not LocalPlayer.Character:FindFirstChild("AIMING") then
4981 Camera.FieldOfView = value.Slider
4982 end
4983end)
4984self:Element("Toggle", "on scope")
4985self:Element("Toggle", "viewmodel changer")
4986self:Element("Slider", "viewmodel x", {min = -10, max = 10}, function(val)
4987 ViewmodelOffset = CFrame.new(values.visuals.self["viewmodel x"].Slider/7, values.visuals.self["viewmodel y"].Slider/7, values.visuals.self["viewmodel z"].Slider/7) * CFrame.Angles(0, 0, values.visuals.self.roll.Slider/50)
4988end)
4989self:Element("Slider", "viewmodel y", {min = -10, max = 10}, function(val)
4990 ViewmodelOffset = CFrame.new(values.visuals.self["viewmodel x"].Slider/7, values.visuals.self["viewmodel y"].Slider/7, values.visuals.self["viewmodel z"].Slider/7) * CFrame.Angles(0, 0, values.visuals.self.roll.Slider/50)
4991end)
4992self:Element("Slider", "viewmodel z", {min = -10, max = 10}, function(val)
4993 ViewmodelOffset = CFrame.new(values.visuals.self["viewmodel x"].Slider/7, values.visuals.self["viewmodel y"].Slider/7, values.visuals.self["viewmodel z"].Slider/7) * CFrame.Angles(0, 0, values.visuals.self.roll.Slider/50)
4994end)
4995self:Element("Slider", "roll", {min = -100, max = 100}, function(val)
4996 ViewmodelOffset = CFrame.new(values.visuals.self["viewmodel x"].Slider/7, values.visuals.self["viewmodel y"].Slider/7, values.visuals.self["viewmodel z"].Slider/7) * CFrame.Angles(0, 0, values.visuals.self.roll.Slider/50)
4997end)
4998self:Element("ToggleColor", "self chams", {default = {Color = Color3.fromRGB(255,255,255)}}, function(tbl)
4999 if tbl.Toggle then
5000 for _,obj in pairs(SelfObj) do
5001 if obj.Parent ~= nil then
5002 obj.Material = Enum.Material.ForceField
5003 obj.Color = tbl.Color
5004 end
5005 end
5006 else
5007 for _,obj in pairs(SelfObj) do
5008 if obj.Parent ~= nil then
5009 obj.Material = obj.OriginalMaterial.Value
5010 obj.Color = obj.OriginalColor.Value
5011 end
5012 end
5013 end
5014end)
5015self:Element("Slider", "scope blend", {min = 0, max = 100, default = 0})
5016
5017local ads = Client.updateads
5018Client.updateads = function(self, ...)
5019 local args = {...}
5020 coroutine.wrap(function()
5021 wait()
5022 if LocalPlayer.Character ~= nil then
5023 for _,part in pairs(LocalPlayer.Character:GetDescendants()) do
5024 if part:IsA("Part") or part:IsA("MeshPart") then
5025 if part.Transparency ~= 1 then
5026 part.Transparency = LocalPlayer.Character:FindFirstChild("AIMING") and values.visuals.self["scope blend"].Slider/100 or 0
5027 end
5028 end
5029 if part:IsA("Accessory") then
5030 part.Handle.Transparency = LocalPlayer.Character:FindFirstChild("AIMING") and values.visuals.self["scope blend"].Slider/100 or 0
5031 end
5032 end
5033 end
5034 end)()
5035 return ads(self, ...)
5036end
5037
5038local world = visuals:Sector("world", "Left")
5039world:Element("ToggleTrans", "molly radius", {default = {Color = Color3.fromRGB(255,0,0)}}, function(tbl)
5040 if RayIgnore:FindFirstChild("Fires") == nil then return end
5041 if tbl.Toggle then
5042 for i,fire in pairs(RayIgnore:FindFirstChild("Fires"):GetChildren()) do
5043 fire.Transparency = tbl.Transparency
5044 fire.Color = tbl.Color
5045 end
5046 else
5047 for i,fire in pairs(RayIgnore:FindFirstChild("Fires"):GetChildren()) do
5048 fire.Transparency = 1
5049 end
5050 end
5051end)
5052world:Element("ToggleColor", "smoke radius", {default = {Color = Color3.fromRGB(0, 255, 0)}}, function(tbl)
5053 if RayIgnore:FindFirstChild("Smokes") == nil then return end
5054 if tbl.Toggle then
5055 for i,smoke in pairs(RayIgnore:FindFirstChild("Smokes"):GetChildren()) do
5056 smoke.Transparency = 0
5057 smoke.Color = tbl.Color
5058 end
5059 else
5060 for i,smoke in pairs(RayIgnore:FindFirstChild("Smokes"):GetChildren()) do
5061 smoke.Transparency = 1
5062 end
5063 end
5064end)
5065world:Element("ToggleColor", "bullet tracers", {default = {Color = Color3.fromRGB(0, 0, 255)}})
5066world:Element("ToggleColor", "impacts", {default = {Color = Color3.fromRGB(255, 0, 0)}})
5067world:Element("ToggleColor", "hit chams", {default = {Color = Color3.fromRGB(0, 0, 255)}})
5068world:Element("Dropdown", "hitsound", {options = {"none", "skeet", "neverlose", "rust", "bag", "baimware"}})
5069world:Element("Slider", "sound volume", {min = 1, max = 5, default = 3})
5070world:Element("Dropdown", "skybox", {options = {"none", "nebula", "vaporwave", "clouds"}}, function(tbl)
5071 local sky = tbl.Dropdown
5072 if sky ~= "none" then
5073 if Lighting:FindFirstChildOfClass("Sky") then Lighting:FindFirstChildOfClass("Sky"):Destroy() end
5074 local skybox = Instance.new("Sky")
5075 skybox.SkyboxLf = Skyboxes[sky].SkyboxLf
5076 skybox.SkyboxBk = Skyboxes[sky].SkyboxBk
5077 skybox.SkyboxDn = Skyboxes[sky].SkyboxDn
5078 skybox.SkyboxFt = Skyboxes[sky].SkyboxFt
5079 skybox.SkyboxRt = Skyboxes[sky].SkyboxRt
5080 skybox.SkyboxUp = Skyboxes[sky].SkyboxUp
5081 skybox.Name = "override"
5082 skybox.Parent = Lighting
5083 else
5084 if Lighting:FindFirstChildOfClass("Sky") then Lighting:FindFirstChildOfClass("Sky"):Destroy() end
5085 if oldSkybox ~= nil then oldSkybox:Clone().Parent = Lighting end
5086 end
5087end)
5088world:Element("ToggleColor", "item esp", {default = {Color = Color3.fromRGB(255, 255, 255)}}, function(tbl)
5089 for i,weapon in pairs(workspace.Debris:GetChildren()) do
5090 if weapon:IsA("BasePart") and Weapons:FindFirstChild(weapon.Name) then
5091 weapon.BillboardGui.ImageLabel.Visible = tbl.Toggle and table.find(values.visuals.world["types"].Jumbobox, "icon") and true or false
5092 end
5093 end
5094end)
5095world:Element("Jumbobox", "types", {options = {"icon"}}, function(tbl)
5096 for i,weapon in pairs(workspace.Debris:GetChildren()) do
5097 if weapon:IsA("BasePart") and Weapons:FindFirstChild(weapon.Name) then
5098 weapon.BillboardGui.ImageLabel.Visible = values.visuals.world["item esp"].Toggle and table.find(tbl.Jumbobox, "icon") and true or false
5099 weapon.BillboardGui.ImageLabel.ImageColor3 = values.visuals.world["item esp"].Color
5100 end
5101 end
5102end)
5103local configs = misc:Sector("configs", "Left")
5104configs:Element("TextBox", "config", {placeholder = "config name"})
5105configs:Element("Button", "save", {}, function() if values.misc.configs.config.Text ~= "" then library:SaveConfig(values.misc.configs.config.Text) end end)
5106configs:Element("Button", "load", {}, function() if values.misc.configs.config.Text ~= "" then ConfigLoad:Fire(values.misc.configs.config.Text) end end)
5107configs:Element("Toggle", "keybind list", nil, function(tbl)
5108 library:SetKeybindVisible(tbl.Toggle)
5109end)
5110
5111local crosshaireditor = misc:Sector("crosshair editor", "Right")
5112local function UpdateCrosshair()
5113 if values.misc["crosshair editor"].enabled.Toggle then
5114 local length = values.misc["crosshair editor"].length.Slider
5115 Crosshair.LeftFrame.Size = UDim2.new(0, length, 0, 2)
5116 Crosshair.RightFrame.Size = UDim2.new(0, length, 0, 2)
5117 Crosshair.TopFrame.Size = UDim2.new(0, 2, 0, length)
5118 Crosshair.BottomFrame.Size = UDim2.new(0, 2, 0, length)
5119 for _,frame in pairs(Crosshair:GetChildren()) do
5120 if string.find(frame.Name, "Frame") then
5121 frame.BorderColor3 = Color3.new(0,0,0)
5122 if values.misc["crosshair editor"].border.Toggle then
5123 frame.BorderSizePixel = 1
5124 else
5125 frame.BorderSizePixel = 0
5126 end
5127 end
5128 end
5129 else
5130 Crosshair.LeftFrame.Size = UDim2.new(0, 10, 0, 2)
5131 Crosshair.RightFrame.Size = UDim2.new(0, 10, 0, 2)
5132 Crosshair.TopFrame.Size = UDim2.new(0, 2, 0, 10)
5133 Crosshair.BottomFrame.Size = UDim2.new(0, 2, 0, 10)
5134 for _,frame in pairs(Crosshair:GetChildren()) do
5135 if string.find(frame.Name, "Frame") then
5136 frame.BorderSizePixel = 0
5137 end
5138 end
5139 end
5140end
5141crosshaireditor:Element("Toggle", "enabled", nil, UpdateCrosshair)
5142crosshaireditor:Element("Slider", "length", {min = 1, max = 15, default = 10}, UpdateCrosshair)
5143crosshaireditor:Element("Toggle", "border", nil, UpdateCrosshair)
5144
5145local client = misc:Sector("client", "Right")
5146client:Element("Toggle", "infinite cash", nil, function(tbl)
5147 if tbl.Toggle then
5148 LocalPlayer.Cash.Value = 8000
5149 end
5150end)
5151client:Element("Toggle", "infinite crouch")
5152client:Element("Jumbobox", "damage bypass", {options = {"fire", "fall"}})
5153client:Element("Jumbobox", "gun modifiers", {options = {"recoil", "spread", "reload", "equip", "ammo", "automatic", "penetration", "firerate"}})
5154client:Element("Toggle", "remove killers", {}, function(tbl)
5155 if tbl.Toggle then
5156 if workspace:FindFirstChild("Map") and workspace:FindFirstChild("Map"):FindFirstChild("Killers") then
5157 local clone = workspace:FindFirstChild("Map"):FindFirstChild("Killers"):Clone()
5158 clone.Name = "KillersClone"
5159 clone.Parent = workspace:FindFirstChild("Map")
5160
5161 workspace:FindFirstChild("Map"):FindFirstChild("Killers"):Destroy()
5162 end
5163 else
5164 if workspace:FindFirstChild("Map") and workspace:FindFirstChild("Map"):FindFirstChild("KillersClone") then
5165 workspace:FindFirstChild("Map"):FindFirstChild("KillersClone").Name = "Killers"
5166 end
5167 end
5168end)
5169client:Element("ToggleColor", "hitmarker", {default = {Color = Color3.fromRGB(255,255,255)}})
5170client:Element("Toggle", "buy any grenade")
5171client:Element("Toggle", "chat alive")
5172client:Element("Jumbobox", "shop", {options = {"inf time", "anywhere"}})
5173client:Element("Toggle", "anti spectate")
5174
5175local oldgrenadeallowed = Client.grenadeallowed
5176Client.grenadeallowed = function(...)
5177 if values.misc.client["buy any grenade"].Toggle then
5178 return true
5179 end
5180
5181 return oldgrenadeallowed(...)
5182end
5183
5184local movement = misc:Sector("movement", "Left")
5185movement:Element("Toggle", "bunny hop")
5186movement:Element("Dropdown", "direction", {options = {"forward", "directional", "directional 2"}})
5187movement:Element("Dropdown", "type", {options = {"gyro", "cframe"}})
5188movement:Element("Slider", "speed", {min = 15, max = 60, default = 40})
5189movement:Element("ToggleKeybind", "jump bug")
5190movement:Element("ToggleKeybind", "edge jump")
5191movement:Element("ToggleKeybind", "edge bug")
5192
5193local chat = misc:Sector("chat", "Left")
5194chat:Element("Toggle", "chat spam", nil, function(tbl)
5195 if tbl.Toggle then
5196 while values.misc.chat["chat spam"].Toggle do
5197 game:GetService("ReplicatedStorage").Events.PlayerChatted:FireServer(values.misc.chat.type.Dropdown == "standard" and "hi" or "buy stormy.solutions", false, "Innocent", false, true)
5198 wait(values.misc.chat["speed (ms)"].Slider/1000)
5199 end
5200 end
5201end)
5202chat:Element("Dropdown", "type", {options = {"standard", "stormy"}})
5203chat:Element("Slider", "speed (ms)", {min = 150, max = 1000, default = 500})
5204chat:Element("Toggle", "kill say")
5205chat:Element("TextBox", "message", {placeholder = "message"})
5206chat:Element("Toggle", "no filter")
5207
5208local grenades = misc:Sector("grenades", "Right")
5209grenades:Element("ToggleKeybind", "spam grenades")
5210coroutine.wrap(function()
5211 while true do
5212 wait(0.5)
5213 if values.misc.grenades["spam grenades"].Toggle and values.misc.grenades["spam grenades"].Active then
5214 local oh1 = game:GetService("ReplicatedStorage").Weapons[values.misc.grenades.grenade.Dropdown].Model
5215 local oh3 = 25
5216 local oh4 = 35
5217 local oh6 = ""
5218 local oh7 = ""
5219 game:GetService("ReplicatedStorage").Events.ThrowGrenade:FireServer(oh1, nil, oh3, oh4, Vector3.new(0,-100,0), oh6, oh7)
5220 end
5221 end
5222end)()
5223grenades:Element("Dropdown", "grenade", {options = {"Flashbang", "Smoke Grenade", "Molotov", "HE Grenade", "Decoy Grenade"}})
5224grenades:Element("Button", "crash server", {}, function()
5225 RunService.RenderStepped:Connect(function()
5226 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("UpperTorso") then
5227 local oh1 = game:GetService("ReplicatedStorage").Weapons[values.misc.grenades.grenade.Dropdown].Model
5228 local oh3 = 25
5229 local oh4 = 35
5230 local oh6 = ""
5231 local oh7 = ""
5232 game:GetService("ReplicatedStorage").Events.ThrowGrenade:FireServer(oh1, nil, oh3, oh4, Vector3.new(0,-100,0), oh6, oh7)
5233 game:GetService("ReplicatedStorage").Events.ThrowGrenade:FireServer(oh1, nil, oh3, oh4, Vector3.new(0,-100,0), oh6, oh7)
5234 game:GetService("ReplicatedStorage").Events.ThrowGrenade:FireServer(oh1, nil, oh3, oh4, Vector3.new(0,-100,0), oh6, oh7)
5235 end
5236 end)
5237end)
5238
5239local Dance = Instance.new("Animation")
5240Dance.AnimationId = "rbxassetid://5917459365"
5241
5242local LoadedAnim
5243
5244local animations = misc:Sector("animations", "Right")
5245animations:Element("ToggleKeybind", "enabled", nil, function(tbl)
5246 if not tbl.Toggle or tbl.Toggle and not tbl.Active then
5247 pcall(function()
5248 LoadedAnim:Stop()
5249 end)
5250 else
5251 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
5252 LoadedAnim = LocalPlayer.Character.Humanoid:LoadAnimation(Dance)
5253 LoadedAnim.Priority = Enum.AnimationPriority.Action
5254 LoadedAnim:Play()
5255 end
5256 end
5257end)
5258animations:Element("Dropdown", "animation", {options = {"floss", "default"}}, function(tbl)
5259 Dance.AnimationId = tbl.Dropdown == "floss" and "rbxassetid://5917459365" or tbl.Dropdown == "default" and "rbxassetid://3732699835"
5260
5261 pcall(function()
5262 LoadedAnim:Stop()
5263 end)
5264
5265 if values.misc.animations.enabled.Toggle and values.misc.animations.enabled.Active then
5266 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
5267 LoadedAnim = LocalPlayer.Character.Humanoid:LoadAnimation(Dance)
5268 LoadedAnim.Priority = Enum.AnimationPriority.Action
5269 LoadedAnim:Play()
5270 end
5271 end
5272end)
5273
5274local objects = {}
5275local utility = {}
5276do
5277 utility.default = {
5278 Line = {
5279 Thickness = 1.5,
5280 Color = Color3.fromRGB(255, 255, 255),
5281 Visible = false
5282 },
5283 Text = {
5284 Size = 13,
5285 Center = true,
5286 Outline = true,
5287 Font = Drawing.Fonts.Plex,
5288 Color = Color3.fromRGB(255, 255, 255),
5289 Visible = false
5290 },
5291 Square = {
5292 Thickness = 1.5,
5293 Filled = false,
5294 Color = Color3.fromRGB(255, 255, 255),
5295 Visible = false
5296 },
5297 }
5298 function utility.create(type, isOutline)
5299 local drawing = Drawing.new(type)
5300 for i, v in pairs(utility.default[type]) do
5301 drawing[i] = v
5302 end
5303 if isOutline then
5304 drawing.Color = Color3.new(0,0,0)
5305 drawing.Thickness = 3
5306 end
5307 return drawing
5308 end
5309 function utility.add(plr)
5310 if not objects[plr] then
5311 objects[plr] = {
5312 Name = utility.create("Text"),
5313 Weapon = utility.create("Text"),
5314 Armor = utility.create("Text"),
5315 BoxOutline = utility.create("Square", true),
5316 Box = utility.create("Square"),
5317 HealthOutline = utility.create("Line", true),
5318 Health = utility.create("Line"),
5319 }
5320 end
5321 end
5322 for _,plr in pairs(Players:GetPlayers()) do
5323 if Player ~= LocalPlayer then
5324 utility.add(plr)
5325 end
5326 end
5327 Players.PlayerAdded:Connect(utility.add)
5328 Players.PlayerRemoving:Connect(function(plr)
5329 wait()
5330 if objects[plr] then
5331 for i,v in pairs(objects[plr]) do
5332 for i2,v2 in pairs(v) do
5333 if v then
5334 v:Remove()
5335 end
5336 end
5337 end
5338
5339 objects[plr] = nil
5340 end
5341 end)
5342end
5343local Items = Instance.new("ScreenGui")
5344Items.Name = "Items"
5345Items.Parent = game.CoreGui
5346Items.ResetOnSpawn = false
5347Items.ZIndexBehavior = "Global"
5348do
5349 function add(plr)
5350 local ImageLabel = Instance.new("ImageLabel")
5351 ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
5352 ImageLabel.BackgroundTransparency = 1.000
5353 ImageLabel.Size = UDim2.new(0, 62, 0, 25)
5354 ImageLabel.Visible = false
5355 ImageLabel.Image = "rbxassetid://1784884358"
5356 ImageLabel.ScaleType = Enum.ScaleType.Fit
5357 ImageLabel.Name = plr.Name
5358 ImageLabel.AnchorPoint = Vector2.new(0.5,0.5)
5359 ImageLabel.Parent = Items
5360 end
5361 for _,plr in pairs(Players:GetPlayers()) do
5362 if Player ~= LocalPlayer then
5363 add(plr)
5364 end
5365 end
5366 Players.PlayerAdded:Connect(add)
5367 Players.PlayerRemoving:Connect(function(plr)
5368 wait()
5369 Items[plr.Name]:Destroy()
5370 end)
5371end
5372local debrisitems = {}
5373workspace.Debris.ChildAdded:Connect(function(obj)
5374 if obj:IsA("BasePart") and Weapons:FindFirstChild(obj.Name) then
5375 RunService.RenderStepped:Wait()
5376
5377 local BillboardGui = Instance.new("BillboardGui")
5378 BillboardGui.AlwaysOnTop = true
5379 BillboardGui.Size = UDim2.new(0, 40, 0, 40)
5380 BillboardGui.Adornee = obj
5381
5382 local ImageLabel = Instance.new("ImageLabel")
5383 ImageLabel.Parent = BillboardGui
5384 ImageLabel.BackgroundTransparency = 1
5385 ImageLabel.Size = UDim2.new(1, 0, 1, 0)
5386 ImageLabel.ImageColor3 = values.visuals.world["item esp"].Color
5387 ImageLabel.Image = GetIcon.getWeaponOfKiller(obj.Name)
5388 ImageLabel.ScaleType = Enum.ScaleType.Fit
5389 ImageLabel.Visible = values.visuals.world["item esp"].Toggle and table.find(values.visuals.world["types"].Jumbobox, "icon") and true or false
5390
5391 BillboardGui.Parent = obj
5392 end
5393end)
5394for _, obj in pairs(workspace.Debris:GetChildren()) do
5395 if obj:IsA("BasePart") and Weapons:FindFirstChild(obj.Name) then
5396 RunService.RenderStepped:Wait()
5397
5398 local BillboardGui = Instance.new("BillboardGui")
5399 BillboardGui.AlwaysOnTop = true
5400 BillboardGui.Size = UDim2.new(0, 40, 0, 40)
5401 BillboardGui.Adornee = obj
5402
5403 local ImageLabel = Instance.new("ImageLabel")
5404 ImageLabel.Parent = BillboardGui
5405 ImageLabel.BackgroundTransparency = 1
5406 ImageLabel.Size = UDim2.new(1, 0, 1, 0)
5407 ImageLabel.ImageColor3 = values.visuals.world["item esp"].Color
5408 ImageLabel.Image = GetIcon.getWeaponOfKiller(obj.Name)
5409 ImageLabel.ScaleType = Enum.ScaleType.Fit
5410 ImageLabel.Visible = values.visuals.world["item esp"].Toggle and table.find(values.visuals.world["types"].Jumbobox, "icon") and true or false
5411
5412 BillboardGui.Parent = obj
5413 end
5414end
5415local function YROTATION(cframe)
5416 local x, y, z = cframe:ToOrientation()
5417 return CFrame.new(cframe.Position) * CFrame.Angles(0,y,0)
5418end
5419local function XYROTATION(cframe)
5420 local x, y, z = cframe:ToOrientation()
5421 return CFrame.new(cframe.Position) * CFrame.Angles(x,y,0)
5422end
5423local weps = {
5424 Pistol = {"USP", "P2000", "Glock", "DualBerettas", "P250", "FiveSeven", "Tec9", "CZ", "DesertEagle", "R8"},
5425 SMG = {"MP9", "MAC10", "MP7", "UMP", "P90", "Bizon"},
5426 Rifle = {"M4A4", "M4A1", "AK47", "Famas", "Galil", "AUG", "SG"},
5427 Sniper = {"AWP", "Scout", "G3SG1"}
5428}
5429local weps2 = {
5430 Pistol = {"USP", "P2000", "Glock", "DualBerettas", "P250", "FiveSeven", "Tec9", "CZ", "DesertEagle", "R8"},
5431 SMG = {"MP9", "MAC10", "MP7", "UMP", "P90", "Bizon"},
5432 Rifle = {"M4A4", "M4A1", "AK47", "Famas", "Galil", "AUG", "SG"},
5433 Sniper = {"AWP", "Scout", "G3SG1"}
5434}
5435local function GetWeaponRage(weapon)
5436 return table.find(weps.Pistol, weapon) and "pistol" or table.find(weps.Rifle, weapon) and "rifle" or weapon == "AWP" and "awp" or weapon == "G3SG1" and "auto" or weapon == "Scout" and "scout" or "default"
5437end
5438local function GetStatsRage(weapon)
5439 if weapon == "default" then
5440 return values.rage.weapons.default
5441 else
5442 if values.rage.weapons[weapon]["override default"].Toggle then
5443 return values.rage.weapons[weapon]
5444 else
5445 return values.rage.weapons.default
5446 end
5447 end
5448end
5449local function GetWeaponLegit(weapon)
5450 return table.find(weps2.Pistol, weapon) and "pistol" or table.find(weps2.Rifle, weapon) and "rifle" or table.find(weps2.SMG, weapon) and "smg" or table.find(weps2.Sniper, weapon) and "sniper" or "default"
5451end
5452local function GetStatsLegit(weapon)
5453 if weapon == "default" then
5454 return values.legit.main.default
5455 else
5456 if values.legit.main[weapon]["override default"].Toggle then
5457 return values.legit.main[weapon]
5458 else
5459 return values.legit.main.default
5460 end
5461 end
5462end
5463local Jitter = false
5464local Spin = 0
5465local RageTarget
5466local Filter = false
5467local LastStep
5468local TriggerDebounce = false
5469local DisableAA = false
5470RunService.RenderStepped:Connect(function(step)
5471 LastStep = step
5472 Ping = game.Stats.PerformanceStats.Ping:GetValue()
5473 RageTarget = nil
5474 local CamCFrame = Camera.CFrame
5475 local CamLook = CamCFrame.LookVector
5476 local PlayerIsAlive = false
5477 local Character = LocalPlayer.Character
5478 RageTarget = nil
5479 Spin = math.clamp(Spin + values.rage.angles["spin speed"].Slider, 0, 360)
5480 if Spin == 360 then Spin = 0 end
5481 if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character:FindFirstChild("Humanoid").Health > 0 and LocalPlayer.Character:FindFirstChild("UpperTorso") then
5482 PlayerIsAlive = true
5483 end
5484 for i,v in pairs(ChamItems) do
5485 if v.Parent == nil then
5486 table.remove(ChamItems, i)
5487 end
5488 end
5489 if PlayerIsAlive then
5490 local SelfVelocity = LocalPlayer.Character.HumanoidRootPart.Velocity
5491 if values.rage.fakelag["ping spike"].Toggle and values.rage.fakelag["ping spike"].Active then
5492 for count = 1, 20 do
5493 game:GetService("ReplicatedStorage").Events.RemoteEvent:FireServer({[1] = "createparticle", [2] = "bullethole", [3] = LocalPlayer.Character.Head, [4] = Vector3.new(0,0,0)})
5494 end
5495 end
5496 local Root = LocalPlayer.Character.HumanoidRootPart
5497 if values.misc.client["infinite crouch"].Toggle then
5498 Client.crouchcooldown = 0
5499 end
5500 if table.find(values.misc.client["gun modifiers"].Jumbobox, "firerate") then
5501 Client.DISABLED = false
5502 end
5503 if values.rage.exploits["kill all"].Toggle and values.rage.exploits["kill all"].Active and LocalPlayer.Character:FindFirstChild("UpperTorso") and LocalPlayer.Character:FindFirstChild("Gun") then
5504 for _,Player in pairs(Players:GetPlayers()) do
5505 if Player.Character and Player.Team ~= LocalPlayer.Team and Player.Character:FindFirstChild("UpperTorso") then
5506 local oh1 = Player.Character.Head
5507 local oh2 = Player.Character.Head.CFrame.p
5508 local oh3 = Client.gun.Name
5509 local oh4 = 4096
5510 local oh5 = LocalPlayer.Character.Gun
5511 local oh8 = 15
5512 local oh9 = false
5513 local oh10 = false
5514 local oh11 = Vector3.new(0,0,0)
5515 local oh12 = 16868
5516 local oh13 = Vector3.new(0, 0, 0)
5517 game:GetService("ReplicatedStorage").Events.HitPart:FireServer(oh1, oh2, oh3, oh4, oh5, oh6, oh7, oh8, oh9, oh10, oh11, oh12, oh13)
5518 end
5519 end
5520 end
5521 if table.find(values.visuals.effects.removals.Jumbobox, "scope lines") then
5522 NewScope.Enabled = LocalPlayer.Character:FindFirstChild("AIMING") and true or false
5523 Crosshairs.Scope.Visible = false
5524 else
5525 NewScope.Enabled = false
5526 end
5527 local RageGuy
5528 if workspace:FindFirstChild("Map") and Client.gun ~= "none" and Client.gun.Name ~= "C4" then
5529 if values.rage.aimbot.enabled.Toggle then
5530 local Origin = values.rage.aimbot.origin.Dropdown == "character" and LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, 1.4, 0) or CamCFrame.p
5531 local Stats = GetStatsRage(GetWeaponRage(Client.gun.Name))
5532 for _,Player in pairs(Players:GetPlayers()) do
5533 if table.find(values.misc.client["gun modifiers"].Jumbobox, "firerate") then
5534 Client.DISABLED = false
5535 end
5536 if Player.Character and Player.Character:FindFirstChild("Humanoid") and Player.Character:FindFirstChild("Humanoid").Health > 0 and Player.Team ~= "TTT" and Player ~= LocalPlayer then
5537 if table.find(values.rage.aimbot.resolver.Jumbobox, "pitch") then
5538 Player.Character.UpperTorso.Waist.C0 = CFrame.new(Vector3.new(0,0.6,0))
5539 Player.Character.Head.CFrame = CFrame.new(Player.Character.Head.Position)
5540 end
5541 if table.find(values.rage.aimbot.resolver.Jumbobox, "roll") then
5542 Player.Character.Humanoid.MaxSlopeAngle = 0
5543 end
5544 end
5545 if Player.Character and Player.Character:FindFirstChild("Humanoid") and not Client.DISABLED and Player.Character:FindFirstChild("Humanoid").Health > 0 and Player.Team ~= "TTT" and not Player.Character:FindFirstChildOfClass("ForceField") and GetDeg(CamCFrame, Player.Character.Head.Position) <= Stats["max fov"].Slider and Player ~= LocalPlayer then
5546 if Player.Team ~= LocalPlayer.Team or values.rage.aimbot.teammates.Toggle and Player:FindFirstChild("Status") and Player.Status.Team.Value ~= LocalPlayer.Status.Team.Value and Player.Status.Alive.Value then
5547 if Client.gun:FindFirstChild("Melee") and values.rage.aimbot["knifebot"].Toggle then
5548 local Ignore = {unpack(Collision)}
5549 table.insert(Ignore, workspace.Map.Clips)
5550 table.insert(Ignore, workspace.Map.SpawnPoints)
5551 table.insert(Ignore, LocalPlayer.Character)
5552 table.insert(Ignore, Player.Character.HumanoidRootPart)
5553 if Player.Character:FindFirstChild("BackC4") then
5554 table.insert(Ignore, Player.Character.BackC4)
5555 end
5556 if Player.Character:FindFirstChild("Gun") then
5557 table.insert(Ignore, Player.Character.Gun)
5558 end
5559
5560 local Ray = Ray.new(Origin, (Player.Character.Head.Position - Origin).unit * 20)
5561 local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ignore, false, true)
5562
5563 if Hit and Hit.Parent == Player.Character then
5564 RageGuy = Hit
5565 RageTarget = Hit
5566 if not values.rage.aimbot["silent aim"].Toggle then
5567 Camera.CFrame = CFrame.new(CamCFrame.Position, Hit.Position)
5568 end
5569 Filter = true
5570 Client.firebullet()
5571 Filter = false
5572
5573 local Arguments = {
5574 [1] = Hit,
5575 [2] = Hit.Position,
5576 [3] = Client.gun.Name,
5577 [4] = 4096,
5578 [5] = LocalPlayer.Character.Gun,
5579 [8] = 1,
5580 [9] = false,
5581 [10] = false,
5582 [11] = Vector3.new(),
5583 [12] = 16868,
5584 [13] = Vector3.new()
5585 }
5586 game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
5587 end
5588 else
5589 local Ignore = {unpack(Collision)}
5590 table.insert(Ignore, workspace.Map.Clips)
5591 table.insert(Ignore, workspace.Map.SpawnPoints)
5592 table.insert(Ignore, LocalPlayer.Character)
5593 table.insert(Ignore, Player.Character.HumanoidRootPart)
5594 if Player.Character:FindFirstChild("BackC4") then
5595 table.insert(Ignore, Player.Character.BackC4)
5596 end
5597 if Player.Character:FindFirstChild("Gun") then
5598 table.insert(Ignore, Player.Character.Gun)
5599 end
5600
5601 local Hitboxes = {}
5602 for _,Hitbox in ipairs(Stats.hitboxes.Jumbobox) do
5603 if Stats["prefer body"].Toggle then
5604 if Hitbox == "head" and (not values.rage.aimbot["auto baim"].Toggle or Player.Character:FindFirstChild("FakeHead")) then
5605 table.insert(Hitboxes, Player.Character.Head)
5606 elseif Hitbox == "torso" then
5607 table.insert(Hitboxes, Player.Character.UpperTorso)
5608 else
5609 table.insert(Hitboxes, Player.Character.LowerTorso)
5610 end
5611 else
5612 if Hitbox == "torso" then
5613 table.insert(Hitboxes, Player.Character.UpperTorso)
5614 elseif Hitbox == "pelvis" then
5615 table.insert(Hitboxes, Player.Character.LowerTorso)
5616 elseif not values.rage.aimbot["auto baim"].Toggle or Player.Character:FindFirstChild("FakeHead") then
5617 table.insert(Hitboxes, Player.Character.Head)
5618 end
5619 end
5620 end
5621
5622 for _,Hitbox in ipairs(Hitboxes) do
5623 local Ignore2 = {unpack(Ignore)}
5624 for _,Part in pairs(Player.Character:GetChildren()) do
5625 if Part ~= Hitbox then table.insert(Ignore2, Part) end
5626 end
5627 if values.rage.aimbot["automatic penetration"].Toggle then
5628 local Hits = {}
5629 local EndHit, Hit, Pos
5630 local Penetration = Client.gun.Penetration.Value * 0.01
5631 local Ray1 = Ray.new(Origin, (Hitbox.Position - Origin).unit * (Hitbox.Position - Origin).magnitude)
5632 repeat
5633 Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray1, Ignore2, false, true)
5634 if Hit ~= nil and Hit.Parent ~= nil then
5635 if Hit and Multipliers[Hit.Name] ~= nil then
5636 EndHit = Hit
5637 else
5638 table.insert(Ignore2, Hit)
5639 table.insert(Hits, {["Position"] = Pos,["Hit"] = Hit})
5640 end
5641 end
5642 until EndHit ~= nil or #Hits >= 4 or Hit == nil
5643 if EndHit ~= nil and Multipliers[EndHit.Name] ~= nil and #Hits <= 4 then
5644 if #Hits == 0 then
5645 local Damage = Client.gun.DMG.Value * Multipliers[EndHit.Name]
5646 if Player:FindFirstChild("Kevlar") then
5647 if string.find(EndHit.Name, "Head") then
5648 if Player:FindFirstChild("Helmet") then
5649 Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
5650 end
5651 else
5652 Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
5653 end
5654 end
5655 Damage = Damage * (Client.gun.RangeModifier.Value/100 ^ ((Origin - EndHit.Position).Magnitude/500))/100
5656 if Damage >= Stats["minimum damage"].Slider then
5657 RageGuy = EndHit
5658 RageTarget = EndHit
5659 if not values.rage.aimbot["silent aim"].Toggle then
5660 Camera.CFrame = CFrame.new(CamCFrame.Position, EndHit.Position)
5661 end
5662 Filter = true
5663 if values.rage.aimbot["automatic fire"].Dropdown == "standard" then
5664 Client.firebullet()
5665 if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
5666 Client.firebullet()
5667 end
5668 elseif values.rage.aimbot["automatic fire"].Dropdown == "hitpart" then
5669 Client.firebullet()
5670 local Arguments = {
5671 [1] = EndHit,
5672 [2] = EndHit.Position,
5673 [3] = LocalPlayer.Character.EquippedTool.Value,
5674 [4] = 100,
5675 [5] = LocalPlayer.Character.Gun,
5676 [8] = 1,
5677 [9] = false,
5678 [10] = false,
5679 [11] = Vector3.new(),
5680 [12] = 100,
5681 [13] = Vector3.new()
5682 }
5683 game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
5684 if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
5685 Client.firebullet()
5686 local Arguments = {
5687 [1] = EndHit,
5688 [2] = EndHit.Position,
5689 [3] = LocalPlayer.Character.EquippedTool.Value,
5690 [4] = 100,
5691 [5] = LocalPlayer.Character.Gun,
5692 [8] = 1,
5693 [9] = false,
5694 [10] = false,
5695 [11] = Vector3.new(),
5696 [12] = 100,
5697 [13] = Vector3.new()
5698 }
5699 game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
5700 end
5701 end
5702 Filter = false
5703 break
5704 end
5705 else
5706 local penetration = Client.gun.Penetration.Value * 0.01
5707 local limit = 0
5708 local dmgmodifier = 1
5709 for i = 1, #Hits do
5710 local data = Hits[i]
5711 local part = data["Hit"]
5712 local pos = data["Position"]
5713 local modifier = 1
5714 if part.Material == Enum.Material.DiamondPlate then
5715 modifier = 3
5716 end
5717 if part.Material == Enum.Material.CorrodedMetal or part.Material == Enum.Material.Metal or part.Material == Enum.Material.Concrete or part.Material == Enum.Material.Brick then
5718 modifier = 2
5719 end
5720 if part.Name == "Grate" or part.Material == Enum.Material.Wood or part.Material == Enum.Material.WoodPlanks then
5721 modifier = 0.1
5722 end
5723 if part.Name == "nowallbang" then
5724 modifier = 100
5725 end
5726 if part:FindFirstChild("PartModifier") then
5727 modifier = part.PartModifier.Value
5728 end
5729 if part.Transparency == 1 or part.CanCollide == false or part.Name == "Glass" or part.Name == "Cardboard" then
5730 modifier = 0
5731 end
5732 local direction = (Hitbox.Position - pos).unit * math.clamp(Client.gun.Range.Value, 1, 100)
5733 local ray = Ray.new(pos + direction * 1, direction * -2)
5734 local _,endpos = workspace:FindPartOnRayWithWhitelist(ray, {part}, true)
5735 local thickness = (endpos - pos).Magnitude
5736 thickness = thickness * modifier
5737 limit = math.min(penetration, limit + thickness)
5738 dmgmodifier = 1 - limit / penetration
5739 end
5740 local Damage = Client.gun.DMG.Value * Multipliers[EndHit.Name] * dmgmodifier
5741 if Player:FindFirstChild("Kevlar") then
5742 if string.find(EndHit.Name, "Head") then
5743 if Player:FindFirstChild("Helmet") then
5744 Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
5745 end
5746 else
5747 Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
5748 end
5749 end
5750 Damage = Damage * (Client.gun.RangeModifier.Value/100 ^ ((Origin - EndHit.Position).Magnitude/500))/100
5751 if Damage >= Stats["minimum damage"].Slider then
5752 RageGuy = EndHit
5753 RageTarget = EndHit
5754 if not values.rage.aimbot["silent aim"].Toggle then
5755 Camera.CFrame = CFrame.new(CamCFrame.Position, EndHit.Position)
5756 end
5757 Filter = true
5758 if values.rage.aimbot["automatic fire"].Dropdown == "standard" then
5759 Client.firebullet()
5760 if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
5761 Client.firebullet()
5762 end
5763 elseif values.rage.aimbot["automatic fire"].Dropdown == "hitpart" then
5764 Client.firebullet()
5765 local Arguments = {
5766 [1] = EndHit,
5767 [2] = EndHit.Position,
5768 [3] = LocalPlayer.Character.EquippedTool.Value,
5769 [4] = 100,
5770 [5] = LocalPlayer.Character.Gun,
5771 [8] = 1,
5772 [9] = false,
5773 [10] = false,
5774 [11] = Vector3.new(),
5775 [12] = 100,
5776 [13] = Vector3.new()
5777 }
5778 game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
5779 if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
5780 Client.firebullet()
5781 local Arguments = {
5782 [1] = EndHit,
5783 [2] = EndHit.Position,
5784 [3] = LocalPlayer.Character.EquippedTool.Value,
5785 [4] = 100,
5786 [5] = LocalPlayer.Character.Gun,
5787 [8] = 1,
5788 [9] = false,
5789 [10] = false,
5790 [11] = Vector3.new(),
5791 [12] = 100,
5792 [13] = Vector3.new()
5793 }
5794 game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
5795 end
5796 end
5797 Filter = false
5798 break
5799 end
5800 end
5801 end
5802 else
5803 local Ray = Ray.new(Origin, (Hitbox.Position - Origin).unit * (Hitbox.Position - Origin).magnitude)
5804 local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray, Ignore2, false, true)
5805 if Hit and Multipliers[Hit.Name] ~= nil then
5806 local Damage = Client.gun.DMG.Value * Multipliers[Hit.Name]
5807 if Player:FindFirstChild("Kevlar") then
5808 if string.find(Hit.Name, "Head") then
5809 if Player:FindFirstChild("Helmet") then
5810 Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
5811 end
5812 else
5813 Damage = (Damage / 100) * Client.gun.ArmorPenetration.Value
5814 end
5815 end
5816 Damage = Damage * (Client.gun.RangeModifier.Value/100 ^ ((Origin - Hit.Position).Magnitude/500))
5817 if Damage >= Stats["minimum damage"].Slider then
5818 RageGuy = Hit
5819 RageTarget = Hit
5820 if not values.rage.aimbot["silent aim"].Toggle then
5821 Camera.CFrame = CFrame.new(CamCFrame.Position, Hit.Position)
5822 end
5823 Filter = true
5824 if values.rage.aimbot["automatic fire"].Dropdown == "standard" then
5825 Client.firebullet()
5826 if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
5827 Client.firebullet()
5828 end
5829 elseif values.rage.aimbot["automatic fire"].Dropdown == "hitpart" then
5830 Client.firebullet()
5831 local Arguments = {
5832 [1] = EndHit,
5833 [2] = EndHit.Position,
5834 [3] = LocalPlayer.Character.EquippedTool.Value,
5835 [4] = 100,
5836 [5] = LocalPlayer.Character.Gun,
5837 [8] = 1,
5838 [9] = false,
5839 [10] = false,
5840 [11] = Vector3.new(),
5841 [12] = 100,
5842 [13] = Vector3.new()
5843 }
5844 game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
5845 if values.rage.exploits["double tap"].Toggle and values.rage.exploits["double tap"].Active then
5846 Client.firebullet()
5847 local Arguments = {
5848 [1] = EndHit,
5849 [2] = EndHit.Position,
5850 [3] = LocalPlayer.Character.EquippedTool.Value,
5851 [4] = 100,
5852 [5] = LocalPlayer.Character.Gun,
5853 [8] = 1,
5854 [9] = false,
5855 [10] = false,
5856 [11] = Vector3.new(),
5857 [12] = 100,
5858 [13] = Vector3.new()
5859 }
5860 game.ReplicatedStorage.Events.HitPart:FireServer(unpack(Arguments))
5861 end
5862 end
5863 Filter = false
5864 break
5865 end
5866 end
5867 end
5868 end
5869 end
5870 end
5871 end
5872 end
5873 elseif values.legit.aimbot["aim assist"].Toggle and values.legit.aimbot["aim assist"].Active and not library.uiopen then
5874 local Stats = GetStatsLegit(GetWeaponLegit(Client.gun.Name))
5875 local Ignore = {LocalPlayer.Character, Camera, workspace.Map.Clips, workspace.Map.SpawnPoints, workspace.Debris}
5876 local Closest = 9999
5877 local Target
5878
5879 if not table.find(Stats.conditions.Jumbobox, "smoke") then
5880 table.insert(Ignore, workspace.Ray_Ignore)
5881 end
5882
5883 if not table.find(Stats.conditions.Jumbobox, "blind") or LocalPlayer.PlayerGui.Blnd.Blind.BackgroundTransparency > 0.9 then
5884 if not table.find(Stats.conditions.Jumbobox, "standing") or SelfVelocity < 3 then
5885 for _,Player in pairs(Players:GetPlayers()) do
5886 if Player.Character and Player.Character:FindFirstChild("Humanoid") and Player.Character:FindFirstChild("Humanoid").Health > 0 then
5887 if not values.legit.settings["forcefield check"].Toggle or not Player.Character:FindFirstChildOfClass("ForceField") then
5888 if Player.Team ~= LocalPlayer.Team or values.legit.settings["free for all"].Toggle then
5889 local Pos, onScreen = Camera:WorldToViewportPoint(Player.Character.HumanoidRootPart.Position)
5890 if onScreen then
5891 local Magnitude = (Vector2.new(Pos.X, Pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
5892 if Magnitude < Stats["field of view"].Slider then
5893 local Hitbox = Stats.hitbox.Dropdown == "head" and Player.Character.Head or Stats.hitbox.Dropdown == "chest" and Player.Character.UpperTorso
5894 if Stats.hitbox.Dropdown == "closest" then
5895 local HeadPos = Camera:WorldToViewportPoint(Player.Character.Head.Position)
5896 local TorsoPos = Camera:WorldToViewportPoint(Player.Character.UpperTorso.Position)
5897 local HeadDistance = (Vector2.new(HeadPos.X, HeadPos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
5898 local TorsoDistance = (Vector2.new(TorsoPos.X, TorsoPos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
5899 if HeadDistance < TorsoDistance then
5900 Hitbox = Player.Character.Head
5901 else
5902 Hitbox = Player.Character.UpperTorso
5903 end
5904 end
5905 if Hitbox ~= nil then
5906 if not table.find(Stats.conditions.Jumbobox, "visible") then
5907 Target = Hitbox
5908 else
5909 local Ray1 = Ray.new(Camera.CFrame.Position, (Hitbox.Position - Camera.CFrame.Position).unit * (Hitbox.Position - Camera.CFrame.Position).magnitude)
5910 local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray1, Ignore, false, true)
5911 if Hit and Hit:FindFirstAncestor(Player.Name) then
5912 Target = Hitbox
5913 end
5914 end
5915 end
5916 end
5917 end
5918 end
5919 end
5920 end
5921 end
5922 end
5923 end
5924
5925 if Target ~= nil then
5926 local Pos = Camera:WorldToScreenPoint(Target.Position)
5927 local Magnitude = Vector2.new(Pos.X - Mouse.X, Pos.Y - Mouse.Y)
5928 mousemoverel(Magnitude.x/Stats.smoothing.Slider, Magnitude.y/Stats.smoothing.Slider)
5929 end
5930 end
5931 if not values.rage.aimbot.enabled.Toggle and values.legit.aimbot["triggerbot"].Toggle and values.legit.aimbot["triggerbot"].Active and not TriggerDebounce then
5932 local Stats = GetStatsLegit(GetWeaponLegit(Client.gun.Name))
5933 if Stats.triggerbot.Toggle then
5934 if not table.find(Stats.conditions.Jumbobox, "blind") or LocalPlayer.PlayerGui.Blnd.Blind.BackgroundTransparency > 0.9 then
5935 if not table.find(Stats.conditions.Jumbobox, "standing") or SelfVelocity < 3 then
5936 if Mouse.Target and Mouse.Target.Parent and Players:GetPlayerFromCharacter(Mouse.Target.Parent) and Multipliers[Mouse.Target.Name] ~= nil and Client.gun.DMG.Value * Multipliers[Mouse.Target.Name] >= Stats["minimum dmg"].Slider then
5937 local OldTarget = Mouse.Target
5938 local Player = Players:GetPlayerFromCharacter(Mouse.Target.Parent)
5939 if Player.Team ~= LocalPlayer.Team or values.legit.settings["free for all"].Toggle then
5940 coroutine.wrap(function()
5941 TriggerDebounce = true
5942 wait(Stats["delay (ms)"].Slider/1000)
5943 repeat RunService.RenderStepped:Wait()
5944 if not Client.DISABLED then
5945 Client.firebullet()
5946 end
5947 until Mouse.Target == nil or Player ~= Players:GetPlayerFromCharacter(Mouse.Target.Parent)
5948 TriggerDebounce = false
5949 end)()
5950 end
5951 end
5952 end
5953 end
5954 end
5955 end
5956 end
5957 BodyVelocity:Destroy()
5958 BodyVelocity = Instance.new("BodyVelocity")
5959 BodyVelocity.MaxForce = Vector3.new(math.huge,0,math.huge)
5960 if UserInputService:IsKeyDown("Space") and values.misc.movement["bunny hop"].Toggle then
5961 local add = 0
5962 if values.misc.movement.direction.Dropdown == "directional" or values.misc.movement.direction.Dropdown == "directional 2" then
5963 if UserInputService:IsKeyDown("A") then add = 90 end
5964 if UserInputService:IsKeyDown("S") then add = 180 end
5965 if UserInputService:IsKeyDown("D") then add = 270 end
5966 if UserInputService:IsKeyDown("A") and UserInputService:IsKeyDown("W") then add = 45 end
5967 if UserInputService:IsKeyDown("D") and UserInputService:IsKeyDown("W") then add = 315 end
5968 if UserInputService:IsKeyDown("D") and UserInputService:IsKeyDown("S") then add = 225 end
5969 if UserInputService:IsKeyDown("A") and UserInputService:IsKeyDown("S") then add = 145 end
5970 end
5971 local rot = YROTATION(CamCFrame) * CFrame.Angles(0,math.rad(add),0)
5972 BodyVelocity.Parent = LocalPlayer.Character.UpperTorso
5973 LocalPlayer.Character.Humanoid.Jump = true
5974 BodyVelocity.Velocity = Vector3.new(rot.LookVector.X,0,rot.LookVector.Z) * (values.misc.movement["speed"].Slider * 2)
5975 if add == 0 and values.misc.movement.direction.Dropdown == "directional" and not UserInputService:IsKeyDown("W") then
5976 BodyVelocity:Destroy()
5977 else
5978 if values.misc.movement.type.Dropdown == "cframe" then
5979 BodyVelocity:Destroy()
5980 Root.CFrame = Root.CFrame + Vector3.new(rot.LookVector.X,0,rot.LookVector.Z) * values.misc.movement["speed"].Slider/50
5981 end
5982 end
5983 end
5984 if values.misc.movement["edge jump"].Toggle and values.misc.movement["edge jump"].Active then
5985 if LocalPlayer.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Freefall and LocalPlayer.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
5986 coroutine.wrap(function()
5987 RunService.RenderStepped:Wait()
5988 if LocalPlayer.Character ~= nil and LocalPlayer.Character:FindFirstChild("Humanoid") and LocalPlayer.Character.Humanoid:GetState() == Enum.HumanoidStateType.Freefall and LocalPlayer.Character.Humanoid:GetState() ~= Enum.HumanoidStateType.Jumping then
5989 LocalPlayer.Character.Humanoid:ChangeState("Jumping")
5990 end
5991 end)()
5992 end
5993 end
5994 Jitter = not Jitter
5995 LocalPlayer.Character.Humanoid.AutoRotate = false
5996 if values.rage.angles.enabled.Toggle and not DisableAA then
5997 local Angle = -math.atan2(CamLook.Z, CamLook.X) + math.rad(-90)
5998 if values.rage.angles["yaw base"].Dropdown == "spin" then
5999 Angle = Angle + math.rad(Spin)
6000 end
6001 if values.rage.angles["yaw base"].Dropdown == "random" then
6002 Angle = Angle + math.rad(math.random(0, 360))
6003 end
6004 local Offset = math.rad(-values.rage.angles["yaw offset"].Slider - (values.rage.angles.jitter.Toggle and Jitter and values.rage.angles["jitter offset"].Slider or 0))
6005 local CFramePos = CFrame.new(Root.Position) * CFrame.Angles(0, Angle + Offset, 0)
6006 if values.rage.angles["yaw base"].Dropdown == "targets" then
6007 local part
6008 local closest = 9999
6009 for _,plr in pairs(Players:GetPlayers()) do
6010 if plr.Character and plr.Character:FindFirstChild("Humanoid") and plr.Character:FindFirstChild("Humanoid").Health > 0 and plr.Team ~= LocalPlayer.Team then
6011 local pos, onScreen = Camera:WorldToViewportPoint(plr.Character.HumanoidRootPart.Position)
6012 local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
6013 if closest > magnitude then
6014 part = plr.Character.HumanoidRootPart
6015 closest = magnitude
6016 end
6017 end
6018 end
6019 if part ~= nil then
6020 CFramePos = CFrame.new(Root.Position, part.Position) * CFrame.Angles(0, Offset, 0)
6021 end
6022 end
6023
6024 Root.CFrame = YROTATION(CFramePos)
6025 if values.rage.angles["body roll"].Dropdown == "180" then
6026 Root.CFrame = Root.CFrame * CFrame.Angles(values.rage.angles["body roll"].Dropdown == "180" and math.rad(180) or 0, 1, 0)
6027 LocalPlayer.Character.Humanoid.HipHeight = 4
6028 else
6029 LocalPlayer.Character.Humanoid.HipHeight = 2
6030 end
6031
6032 local Pitch = values.rage.angles["pitch"].Dropdown == "none" and CamLook.Y or values.rage.angles["pitch"].Dropdown == "up" and 1 or values.rage.angles["pitch"].Dropdown == "down" and -1 or values.rage.angles["pitch"].Dropdown == "zero" and 0 or values.rage.angles["pitch"].Dropdown == "random" and math.random(-10, 10)/10 or 2.5
6033 if values.rage.angles["extend pitch"].Toggle and (values.rage.angles["pitch"].Dropdown == "up" or values.rage.angles["pitch"].Dropdown == "down") then
6034 Pitch = (Pitch*2)/1.6
6035 end
6036 game.ReplicatedStorage.Events.ControlTurn:FireServer(Pitch, LocalPlayer.Character:FindFirstChild("Climbing") and true or false)
6037 else
6038 LocalPlayer.Character.Humanoid.HipHeight = 2
6039 Root.CFrame = CFrame.new(Root.Position) * CFrame.Angles(0, -math.atan2(CamLook.Z, CamLook.X) + math.rad(270), 0)
6040 game.ReplicatedStorage.Events.ControlTurn:FireServer(CamLook.Y, LocalPlayer.Character:FindFirstChild("Climbing") and true or false)
6041 end
6042 if values.rage.others["remove head"].Toggle then
6043 if LocalPlayer.Character:FindFirstChild("FakeHead") then
6044 LocalPlayer.Character.FakeHead:Destroy()
6045 end
6046 if LocalPlayer.Character:FindFirstChild("HeadHB") then
6047 LocalPlayer.Character.HeadHB:Destroy()
6048 end
6049 end
6050 if table.find(values.misc.client["gun modifiers"].Jumbobox, "recoil") then
6051 Client.resetaccuracy()
6052 Client.RecoilX = 0
6053 Client.RecoilY = 0
6054 end
6055 end
6056 for _,Player in pairs(Players:GetPlayers()) do
6057 if Player.Character and Player ~= LocalPlayer and Player.Character:FindFirstChild("HumanoidRootPart") and Player.Character.HumanoidRootPart:FindFirstChild("OldPosition") then
6058 coroutine.wrap(function()
6059 local Position = Player.Character.HumanoidRootPart.Position
6060 RunService.RenderStepped:Wait()
6061 if Player.Character and Player ~= LocalPlayer and Player.Character:FindFirstChild("HumanoidRootPart") then
6062 if Player.Character.HumanoidRootPart:FindFirstChild("OldPosition") then
6063 Player.Character.HumanoidRootPart.OldPosition.Value = Position
6064 else
6065 local Value = Instance.new("Vector3Value")
6066 Value.Name = "OldPosition"
6067 Value.Value = Position
6068 Value.Parent = Player.Character.HumanoidRootPart
6069 end
6070 end
6071 end)()
6072 end
6073 end
6074 for _,Player in pairs(Players:GetPlayers()) do
6075 local tbl = objects[Player]
6076 if tbl == nil then return end
6077 if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") and Player.Team ~= "TTT" and (Player.Team ~= LocalPlayer.Team or values.visuals.players.teammates.Toggle) and Player.Character:FindFirstChild("Gun") and Player.Character:FindFirstChild("Humanoid") and Player ~= LocalPlayer then
6078 local HumanoidRootPart = Player.Character.HumanoidRootPart
6079 local RootPosition = HumanoidRootPart.Position
6080 local Pos, OnScreen = Camera:WorldToViewportPoint(RootPosition)
6081 local Size = (Camera:WorldToViewportPoint(RootPosition - Vector3.new(0, 3, 0)).Y - Camera:WorldToViewportPoint(RootPosition + Vector3.new(0, 2.6, 0)).Y) / 2
6082
6083 local Drawings, Text = table.find(values.visuals.players.outlines.Jumbobox, "drawings") ~= nil, table.find(values.visuals.players.outlines.Jumbobox, "text") ~= nil
6084
6085 tbl.Box.Color = values.visuals.players.box.Color
6086 tbl.Box.Size = Vector2.new(Size * 1.5, Size * 1.9)
6087 tbl.Box.Position = Vector2.new(Pos.X - Size*1.5 / 2, (Pos.Y - Size*1.6 / 2))
6088
6089 if values.visuals.players.box.Toggle then
6090 tbl.Box.Visible = OnScreen
6091 if Drawings then
6092 tbl.BoxOutline.Size = tbl.Box.Size
6093 tbl.BoxOutline.Position = tbl.Box.Position
6094 tbl.BoxOutline.Visible = OnScreen
6095 else
6096 tbl.BoxOutline.Visible = false
6097 end
6098 else
6099 tbl.Box.Visible = false
6100 tbl.BoxOutline.Visible = false
6101 end
6102
6103 if values.visuals.players.health.Toggle then
6104 tbl.Health.Color = Color3.new(0,1,0)
6105 tbl.Health.From = Vector2.new((tbl.Box.Position.X - 5), tbl.Box.Position.Y + tbl.Box.Size.Y)
6106 tbl.Health.To = Vector2.new(tbl.Health.From.X, tbl.Health.From.Y - (Player.Character.Humanoid.Health / Player.Character.Humanoid.MaxHealth) * tbl.Box.Size.Y)
6107 tbl.Health.Visible = OnScreen
6108 if Drawings then
6109 tbl.HealthOutline.From = Vector2.new(tbl.Health.From.X, tbl.Box.Position.Y + tbl.Box.Size.Y + 1)
6110 tbl.HealthOutline.To = Vector2.new(tbl.Health.From.X, (tbl.Health.From.Y - 1 * tbl.Box.Size.Y) -1)
6111 tbl.HealthOutline.Visible = OnScreen
6112 else
6113 tbl.HealthOutline.Visible = false
6114 end
6115 else
6116 tbl.Health.Visible = false
6117 tbl.HealthOutline.Visible = false
6118 end
6119
6120 if values.visuals.players.weapon.Toggle then
6121 tbl.Weapon.Color = values.visuals.players.weapon.Color
6122 tbl.Weapon.Text = Player.Character.EquippedTool.Value
6123 tbl.Weapon.Position = Vector2.new(tbl.Box.Size.X/2 + tbl.Box.Position.X, tbl.Box.Size.Y + tbl.Box.Position.Y + 1)
6124 tbl.Weapon.Font = Drawing.Fonts[values.visuals.players.font.Dropdown]
6125 tbl.Weapon.Outline = Text
6126 tbl.Weapon.Size = values.visuals.players.size.Slider
6127 tbl.Weapon.Visible = OnScreen
6128 else
6129 tbl.Weapon.Visible = false
6130 end
6131
6132 if values.visuals.players["weapon icon"].Toggle then
6133 Items[Player.Name].ImageColor3 = values.visuals.players["weapon icon"].Color
6134 Items[Player.Name].Image = GetIcon.getWeaponOfKiller(Player.Character.EquippedTool.Value)
6135 Items[Player.Name].Position = UDim2.new(0, tbl.Box.Size.X/2 + tbl.Box.Position.X, 0, tbl.Box.Size.Y + tbl.Box.Position.Y + (values.visuals.players.weapon.Toggle and -10 or -22))
6136 Items[Player.Name].Visible = OnScreen
6137 else
6138 Items[Player.Name].Visible = false
6139 end
6140
6141 if values.visuals.players.name.Toggle then
6142 tbl.Name.Color = values.visuals.players.name.Color
6143 tbl.Name.Text = Player.Name
6144 tbl.Name.Position = Vector2.new(tbl.Box.Size.X/2 + tbl.Box.Position.X, tbl.Box.Position.Y - 16)
6145 tbl.Name.Font = Drawing.Fonts[values.visuals.players.font.Dropdown]
6146 tbl.Name.Outline = Text
6147 tbl.Name.Size = values.visuals.players.size.Slider
6148 tbl.Name.Visible = OnScreen
6149 else
6150 tbl.Name.Visible = false
6151 end
6152 local LastInfoPos = tbl.Box.Position.Y - 1
6153 if table.find(values.visuals.players.indicators.Jumbobox, "armor") and Player:FindFirstChild("Kevlar") then
6154 tbl.Armor.Color = Color3.fromRGB(0, 150, 255)
6155 tbl.Armor.Text = Player:FindFirstChild("Helmet") and "HK" or "K"
6156 tbl.Armor.Position = Vector2.new(tbl.Box.Size.X + tbl.Box.Position.X + 12, LastInfoPos)
6157 tbl.Armor.Font = Drawing.Fonts[values.visuals.players.font.Dropdown]
6158 tbl.Armor.Outline = Text
6159 tbl.Armor.Size = values.visuals.players.size.Slider
6160 tbl.Armor.Visible = OnScreen
6161
6162 LastInfoPos = LastInfoPos + values.visuals.players.size.Slider
6163 else
6164 tbl.Armor.Visible = false
6165 end
6166 else
6167 if Player.Name ~= LocalPlayer.Name then
6168 Items[Player.Name].Visible = false
6169 for i,v in pairs(tbl) do
6170 v.Visible = false
6171 end
6172 end
6173 end
6174 end
6175end)
6176local mt = getrawmetatable(game)
6177local oldNamecall = mt.__namecall
6178local oldIndex = mt.__index
6179local oldNewIndex = mt.__newindex
6180setreadonly(mt,false)
6181mt.__namecall = function(self, ...)
6182 local method = tostring(getnamecallmethod())
6183 local args = {...}
6184
6185 if method == "SetPrimaryPartCFrame" and self.Name == "Arms" then
6186 if values.visuals.self["third person"].Toggle and values.visuals.self["third person"].Active and LocalPlayer.Character then
6187 args[1] = args[1] * CFrame.new(99, 99, 99)
6188 else
6189 if values.visuals.self["viewmodel changer"].Toggle then
6190 args[1] = args[1] * ViewmodelOffset
6191 end
6192 end
6193 end
6194 if method == "SetPrimaryPartCFrame" and self.Name ~= "Arms" then
6195 args[1] = args[1] + Vector3.new(0, 3, 0)
6196 coroutine.wrap(function()
6197 DisableAA = true
6198 wait(2)
6199 DisableAA = false
6200 end)()
6201 end
6202 if method == "Kick" then
6203 return
6204 end
6205 if method == "FireServer" then
6206 if string.len(self.Name) == 38 then
6207 return
6208 elseif self.Name == "FallDamage" and table.find(values.misc.client["damage bypass"].Jumbobox, "fall") or values.misc.movement["jump bug"].Toggle and values.misc.movement["jump bug"].Active then
6209 return
6210 elseif self.Name == "BURNME" and table.find(values.misc.client["damage bypass"].Jumbobox, "fire") then
6211 return
6212 elseif self.Name == "ControlTurn" and not checkcaller() then
6213 return
6214 end
6215 if self.Name == "PlayerChatted" and values.misc.client["chat alive"].Toggle then
6216 args[2] = false
6217 args[3] = "Innocent"
6218 args[4] = false
6219 args[5] = false
6220 end
6221 if self.Name == "ReplicateCamera" and values.misc.client["anti spectate"].Toggle then
6222 args[1] = CFrame.new()
6223 end
6224 end
6225 if method == "FindPartOnRayWithWhitelist" and not checkcaller() and Client.gun ~= "none" and Client.gun.Name ~= "C4" then
6226 if #args[2] == 1 and args[2][1].Name == "SpawnPoints" then
6227 local Team = LocalPlayer.Status.Team.Value
6228
6229 if table.find(values.misc.client.shop.Jumbobox, "anywhere") then
6230 return Team == "T" and args[2][1].BuyArea or args[2][1].BuyArea2
6231 end
6232 end
6233 end
6234 if method == "FindPartOnRayWithIgnoreList" and args[2][1] == workspace.Debris then
6235 if not checkcaller() or Filter then
6236 if table.find(values.misc.client["gun modifiers"].Jumbobox, "penetration") then
6237 table.insert(args[2], workspace.Map)
6238 end
6239 if table.find(values.misc.client["gun modifiers"].Jumbobox, "spread") then
6240 args[1] = Ray.new(Camera.CFrame.p, Camera.CFrame.LookVector * Client.gun.Range.Value)
6241 end
6242 if values.legit.aimbot["silent aim"].Toggle then
6243 local Stats = GetStatsLegit(GetWeaponLegit(Client.gun.Name))
6244 local Ignore = {LocalPlayer.Character, Camera, workspace.Map.Clips, workspace.Map.SpawnPoints, workspace.Debris}
6245 local Closest = 9999
6246 local Target
6247
6248 if not table.find(Stats.conditions.Jumbobox, "smoke") then
6249 table.insert(Ignore, workspace.Ray_Ignore)
6250 end
6251
6252 coroutine.wrap(function()
6253 if not table.find(Stats.conditions.Jumbobox, "blind") or LocalPlayer.PlayerGui.Blnd.Blind.BackgroundTransparency > 0.9 then
6254 if not table.find(Stats.conditions.Jumbobox, "blind") or SelfVelocity < 3 then
6255 for _,Player in pairs(Players:GetPlayers()) do
6256 if Player.Character and Player.Character:FindFirstChild("Humanoid") and Player.Character:FindFirstChild("Humanoid").Health > 0 then
6257 if not values.legit.settings["forcefield check"].Toggle or not Player.Character:FindFirstChildOfClass("ForceField") then
6258 if Player.Team ~= LocalPlayer.Team or values.legit.settings["free for all"].Toggle then
6259 local Pos, onScreen = Camera:WorldToViewportPoint(Player.Character.HumanoidRootPart.Position)
6260 if onScreen then
6261 local Magnitude = (Vector2.new(Pos.X, Pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
6262 if Magnitude < Stats["field of view"].Slider then
6263 local Hitbox = Stats.priority.Dropdown == "head" and Player.Character.Head or Stats.priority.Dropdown == "chest" and Player.Character.UpperTorso
6264 if Stats.priority.Dropdown == "closest" then
6265 local HeadPos = Camera:WorldToViewportPoint(Player.Character.Head.Position)
6266 local TorsoPos = Camera:WorldToViewportPoint(Player.Character.UpperTorso.Position)
6267 local HeadDistance = (Vector2.new(HeadPos.X, HeadPos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
6268 local TorsoDistance = (Vector2.new(TorsoPos.X, TorsoPos.Y) - Vector2.new(Mouse.X, Mouse.Y)).Magnitude
6269 if HeadDistance < TorsoDistance then
6270 Hitbox = Player.Character.Head
6271 else
6272 Hitbox = Player.Character.UpperTorso
6273 end
6274 end
6275 if Hitbox ~= nil then
6276 if not table.find(Stats.conditions.Jumbobox, "visible") then
6277 Target = Hitbox
6278 else
6279 local Ray1 = Ray.new(Camera.CFrame.Position, (Hitbox.Position - Camera.CFrame.Position).unit * (Hitbox.Position - Camera.CFrame.Position).magnitude)
6280 local Hit, Pos = workspace:FindPartOnRayWithIgnoreList(Ray1, Ignore, false, true)
6281 if Hit and Hit:FindFirstAncestor(Player.Name) then
6282 Target = Hitbox
6283 end
6284 end
6285 end
6286 end
6287 end
6288 end
6289 end
6290 end
6291 end
6292 end
6293 end
6294
6295 local Hit = math.random(1, 100) <= Stats.hitchance.Slider
6296 if Target ~= nil and Hit then
6297 args[1] = Ray.new(Camera.CFrame.Position, (Target.Position - Camera.CFrame.Position).unit * (Target.Position - Camera.CFrame.Position).magnitude)
6298 end
6299 end)()
6300 end
6301 if RageTarget ~= nil then
6302 local Origin = values.rage.aimbot.origin.Dropdown == "character" and LocalPlayer.Character.HumanoidRootPart.Position + Vector3.new(0, 1.4, 0) or Camera.CFrame.p
6303 if values.rage.aimbot["delay shot"].Toggle then
6304 spawn(function()
6305 args[1] = Ray.new(Origin, (RageTarget.Position - Origin).unit * (RageTarget.Position - Origin).magnitude)
6306 end)
6307 else
6308 args[1] = Ray.new(Origin, (RageTarget.Position - Origin).unit * (RageTarget.Position - Origin).magnitude)
6309 end
6310 end
6311 end
6312 end
6313 if method == "InvokeServer" then
6314 if self.Name == "Moolah" then
6315 return
6316 elseif self.Name == "Hugh" then
6317 return
6318 elseif self.Name == "Filter" and values.misc.chat["no filter"].Toggle then
6319 return args[1]
6320 end
6321 end
6322 if method == "LoadAnimation" and self.Name == "Humanoid" then
6323 if values.rage.others["leg movement"].Dropdown == "slide" then
6324 if string.find(args[1].Name, "Walk") or string.find(args[1].Name, "Run") then
6325 args[1] = FakeAnim
6326 end
6327 end
6328 if values.rage.others["no animations"].Toggle then
6329 args[1] = FakeAnim
6330 end
6331 end
6332 if method == "FireServer" and self.Name == "HitPart" then
6333 if values.rage.aimbot["force hit"].Toggle and RageTarget ~= nil then
6334 args[1] = RageTarget
6335 args[2] = RageTarget.Position
6336 end
6337 if values.rage.aimbot["prediction"].Dropdown ~= "off" and RageTarget ~= nil then
6338 coroutine.wrap(function()
6339 if Players:GetPlayerFromCharacter(args[1].Parent) or args[1] == RageTarget then
6340 if values.rage.aimbot["prediction"].Dropdown == "cframe" then
6341 local Velocity = (RageTarget.Parent.HumanoidRootPart.Position - RageTarget.Parent.HumanoidRootPart.OldPosition.Value)/LastStep
6342 local Direction = Vector3.new(Velocity.X/Velocity.magnitude, 0, Velocity.Z/Velocity.magnitude)
6343 if Velocity.magnitude >= 8 then
6344 args[2] = args[2] + Direction * ((Velocity.magnitude*(Ping/1000) * (Ping > 200 and 1.5 or 2)))
6345 args[4] = 0
6346 args[12] = args[12] - 500
6347 end
6348 else
6349 local Velocity = RageTarget.Parent.HumanoidRootPart.Velocity
6350 local Direction = Vector3.new(Velocity.X/Velocity.magnitude, 0, Velocity.Z/Velocity.magnitude)
6351 if Velocity.magnitude >= 8 then
6352 args[2] = args[2] + Direction * (Velocity.magnitude*(Ping/1000) * (Ping > 200 and 1.5 or 2))
6353 args[4] = 0
6354 args[12] = args[12] - 500
6355 end
6356 end
6357 end
6358 end)()
6359 end
6360 if values.visuals.world["bullet tracers"].Toggle then
6361 coroutine.wrap(function()
6362 local beam = Instance.new("Part")
6363 beam.Anchored = true
6364 beam.CanCollide = false
6365 beam.Material = Enum.Material.ForceField
6366 beam.Color = values.visuals.world["bullet tracers"].Color
6367 beam.Size = Vector3.new(0.1, 0.1, (Camera.CFrame.Position - args[2]).Magnitude)
6368 beam.CFrame = CFrame.new(Camera.CFrame.Position, args[2]) * CFrame.new(0, 0, -beam.Size.Z / 2)
6369 beam.Parent = workspace.Debris
6370 library:Tween(beam, TweenInfo.new(1.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Transparency = 1})
6371 wait(1.5)
6372 beam:Destroy()
6373 end)()
6374 end
6375 if values.visuals.world["impacts"].Toggle then
6376 coroutine.wrap(function()
6377 local hit = Instance.new("Part")
6378 hit.Transparency = 1
6379 hit.Anchored = true
6380 hit.CanCollide = false
6381 hit.Size = Vector3.new(0.3,0.3,0.3)
6382 hit.Position = args[2]
6383 local selection = Instance.new("SelectionBox")
6384 selection.LineThickness = 0
6385 selection.SurfaceTransparency = 0.5
6386 selection.Color3 = values.visuals.world["impacts"].Color
6387 selection.SurfaceColor3 = values.visuals.world["impacts"].Color
6388 selection.Parent = hit
6389 selection.Adornee = hit
6390 hit.Parent = workspace.Debris
6391 wait(5.9)
6392 library:Tween(selection, TweenInfo.new(0.1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {SurfaceTransparency = 1})
6393 hit:Destroy()
6394 end)()
6395 if values.visuals.world["hit chams"].Toggle then
6396 coroutine.wrap(function()
6397 if Players:GetPlayerFromCharacter(args[1].Parent) and Players:GetPlayerFromCharacter(args[1].Parent).Team ~= LocalPlayer.Team then
6398 for _,hitbox in pairs(args[1].Parent:GetChildren()) do
6399 if hitbox:IsA("BasePart") or hitbox.Name == "Head" then
6400 coroutine.wrap(function()
6401 local part = Instance.new("Part")
6402 part.CFrame = hitbox.CFrame
6403 part.Anchored = true
6404 part.CanCollide = false
6405 part.Material = Enum.Material.ForceField
6406 part.Color = values.visuals.world["hit chams"].Color
6407 part.Size = hitbox.Size
6408 part.Parent = workspace.Debris
6409 library:Tween(part, TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Transparency = 1})
6410 wait(2)
6411 part:Destroy()
6412 end)()
6413 end
6414 end
6415 end
6416 end)()
6417 end
6418 end
6419 end
6420
6421 return oldNamecall(self, unpack(args))
6422end
6423mt.__newindex = function(self, i, v)
6424 if self:IsA("Humanoid") and i == "JumpPower" and not checkcaller() then
6425 if values.misc.movement["jump bug"].Toggle and values.misc.movement["jump bug"].Active then
6426 v = 24
6427 end
6428 if values.misc.movement["edge bug"].Toggle and values.misc.movement["edge bug"].Active then
6429 v = 0
6430 end
6431 end
6432 if self:IsA("Humanoid") and i == "CameraOffset" then
6433 if values.rage.angles.enabled.Toggle and values.rage.angles["body roll"].Dropdown == "180" and not DisableAA then
6434 v = v + Vector3.new(0, -3.5, 0)
6435 end
6436 end
6437
6438 return oldNewIndex(self, i, v)
6439end
6440Crosshairs.Scope:GetPropertyChangedSignal("Visible"):Connect(function(current)
6441 if not table.find(values.visuals.effects.removals.Jumbobox, "scope lines") then return end
6442
6443 if current ~= false then
6444 Crosshairs.Scope.Visible = false
6445 end
6446end)
6447Crosshair:GetPropertyChangedSignal("Visible"):Connect(function(current)
6448 if not LocalPlayer.Character then return end
6449 if not values.visuals.effects["force crosshair"].Toggle then return end
6450 if LocalPlayer.Character:FindFirstChild("AIMING") then return end
6451
6452 Crosshair.Visible = true
6453end)
6454
6455LocalPlayer.Additionals.TotalDamage:GetPropertyChangedSignal("Value"):Connect(function(current)
6456 if current == 0 then return end
6457 coroutine.wrap(function()
6458 if values.misc.client.hitmarker.Toggle then
6459 local Line = Drawing.new("Line")
6460 local Line2 = Drawing.new("Line")
6461 local Line3 = Drawing.new("Line")
6462 local Line4 = Drawing.new("Line")
6463
6464 local x, y = Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2
6465
6466 Line.From = Vector2.new(x + 4, y + 4)
6467 Line.To = Vector2.new(x + 10, y + 10)
6468 Line.Color = values.misc.client.hitmarker.Color
6469 Line.Visible = true
6470
6471 Line2.From = Vector2.new(x + 4, y - 4)
6472 Line2.To = Vector2.new(x + 10, y - 10)
6473 Line2.Color = values.misc.client.hitmarker.Color
6474 Line2.Visible = true
6475
6476 Line3.From = Vector2.new(x - 4, y - 4)
6477 Line3.To = Vector2.new(x - 10, y - 10)
6478 Line3.Color = values.misc.client.hitmarker.Color
6479 Line3.Visible = true
6480
6481 Line4.From = Vector2.new(x - 4, y + 4)
6482 Line4.To = Vector2.new(x - 10, y + 10)
6483 Line4.Color = values.misc.client.hitmarker.Color
6484 Line4.Visible = true
6485
6486 Line.Transparency = 1
6487 Line2.Transparency = 1
6488 Line3.Transparency = 1
6489 Line4.Transparency = 1
6490
6491 Line.Thickness = 1
6492 Line2.Thickness = 1
6493 Line3.Thickness = 1
6494 Line4.Thickness = 1
6495
6496 wait(0.3)
6497 for i = 1,0,-0.1 do
6498 wait()
6499 Line.Transparency = i
6500 Line2.Transparency = i
6501 Line3.Transparency = i
6502 Line4.Transparency = i
6503 end
6504 Line:Remove()
6505 Line2:Remove()
6506 Line3:Remove()
6507 Line4:Remove()
6508 end
6509 end)()
6510 if values.visuals.world.hitsound.Dropdown == "none" then return end
6511
6512 local sound = Instance.new("Sound")
6513 sound.Parent = game:GetService("SoundService")
6514 sound.SoundId = values.visuals.world.hitsound.Dropdown == "skeet" and "rbxassetid://5447626464" or values.visuals.world.hitsound.Dropdown == "rust" and "rbxassetid://5043539486" or values.visuals.world.hitsound.Dropdown == "bag" and "rbxassetid://364942410" or values.visuals.world.hitsound.Dropdown == "baimware" and "rbxassetid://6607339542" or "rbxassetid://6607204501"
6515 sound.Volume = values.visuals.world["sound volume"].Slider
6516 sound.PlayOnRemove = true
6517 sound:Destroy()
6518end)
6519LocalPlayer.Status.Kills:GetPropertyChangedSignal("Value"):Connect(function(current)
6520 if current == 0 then return end
6521 if values.misc.chat["kill say"].Toggle then
6522 game:GetService("ReplicatedStorage").Events.PlayerChatted:FireServer(values.misc.chat["message"].Text ~= "" and values.misc.chat["message"].Text or "looks like you don't have stormy.solutions", false, "Innocent", false, true)
6523 end
6524end)
6525RayIgnore.ChildAdded:Connect(function(obj)
6526 if obj.Name == "Fires" then
6527 obj.ChildAdded:Connect(function(fire)
6528 if values.visuals.world["molly radius"].Toggle then
6529 fire.Transparency = values.visuals.world["molly radius"].Transparency
6530 fire.Color = values.visuals.world["molly radius"].Color
6531 end
6532 end)
6533 end
6534 if obj.Name == "Smokes" then
6535 obj.ChildAdded:Connect(function(smoke)
6536 RunService.RenderStepped:Wait()
6537 local OriginalRate = Instance.new("NumberValue")
6538 OriginalRate.Value = smoke.ParticleEmitter.Rate
6539 OriginalRate.Name = "OriginalRate"
6540 OriginalRate.Parent = smoke
6541 if table.find(values.visuals.effects.removals.Jumbobox, "smokes") then
6542 smoke.ParticleEmitter.Rate = 0
6543 end
6544 smoke.Material = Enum.Material.ForceField
6545 if values.visuals.world["smoke radius"].Toggle then
6546 smoke.Transparency = 0
6547 smoke.Color = values.visuals.world["smoke radius"].Color
6548 end
6549 end)
6550 end
6551end)
6552if RayIgnore:FindFirstChild("Fires") then
6553 RayIgnore:FindFirstChild("Fires").ChildAdded:Connect(function(fire)
6554 if values.visuals.world["molly radius"].Toggle then
6555 fire.Transparency = values.visuals.world["molly radius"].Transparency
6556 fire.Color = values.visuals.world["molly radius"].Color
6557 end
6558 end)
6559end
6560if RayIgnore:FindFirstChild("Smokes") then
6561 for _,smoke in pairs(RayIgnore:FindFirstChild("Smokes"):GetChildren()) do
6562 local OriginalRate = Instance.new("NumberValue")
6563 OriginalRate.Value = smoke.ParticleEmitter.Rate
6564 OriginalRate.Name = "OriginalRate"
6565 OriginalRate.Parent = smoke
6566 smoke.Material = Enum.Material.ForceField
6567 end
6568 RayIgnore:FindFirstChild("Smokes").ChildAdded:Connect(function(smoke)
6569 RunService.RenderStepped:Wait()
6570 local OriginalRate = Instance.new("NumberValue")
6571 OriginalRate.Value = smoke.ParticleEmitter.Rate
6572 OriginalRate.Name = "OriginalRate"
6573 OriginalRate.Parent = smoke
6574 if table.find(values.visuals.effects.removals.Jumbobox, "smokes") then
6575 smoke.ParticleEmitter.Rate = 0
6576 end
6577 smoke.Material = Enum.Material.ForceField
6578 if values.visuals.world["smoke radius"].Toggle then
6579 smoke.Transparency = 0
6580 smoke.Color = values.visuals.world["smoke radius"].Color
6581 end
6582 end)
6583end
6584Camera.ChildAdded:Connect(function(obj)
6585 if table.find(values.misc.client["gun modifiers"].Jumbobox, "ammo") then
6586 Client.ammocount = 999999
6587 Client.primarystored = 999999
6588 Client.ammocount2 = 999999
6589 Client.secondarystored = 999999
6590 end
6591 RunService.RenderStepped:Wait()
6592 if obj.Name ~= "Arms" then return end
6593 local Model
6594 for i,v in pairs(obj:GetChildren()) do
6595 if v:IsA("Model") and (v:FindFirstChild("Right Arm") or v:FindFirstChild("Left Arm")) then
6596 Model = v
6597 end
6598 end
6599 if Model == nil then return end
6600 for i,v in pairs(obj:GetChildren()) do
6601 if (v:IsA("BasePart") or v:IsA("Part")) and v.Transparency ~= 1 and v.Name ~= "Flash" then
6602 local valid = true
6603 if v:IsA("Part") and v:FindFirstChild("Mesh") and not v:IsA("BlockMesh") then
6604 valid = false
6605 local success, err = pcall(function()
6606 local OriginalTexture = Instance.new("StringValue")
6607 OriginalTexture.Value = v.Mesh.TextureId
6608 OriginalTexture.Name = "OriginalTexture"
6609 OriginalTexture.Parent = v.Mesh
6610 end)
6611 local success2, err2 = pcall(function()
6612 local OriginalTexture = Instance.new("StringValue")
6613 OriginalTexture.Value = v.Mesh.TextureID
6614 OriginalTexture.Name = "OriginalTexture"
6615 OriginalTexture.Parent = v.Mesh
6616 end)
6617 if success or success2 then valid = true end
6618 end
6619
6620 for i2,v2 in pairs(v:GetChildren()) do
6621 if (v2:IsA("BasePart") or v2:IsA("Part")) then
6622 table.insert(WeaponObj, v2)
6623 end
6624 end
6625
6626 if valid then
6627 table.insert(WeaponObj, v)
6628 end
6629 end
6630 end
6631
6632 local gunname = Client.gun ~= "none" and values.skins.knife["knife changer"].Toggle and Client.gun:FindFirstChild("Melee") and values.skins.knife.model.Scroll or Client.gun ~= "none" and Client.gun.Name
6633 if values.skins.skins["skin changer"].Toggle and gunname ~= nil and Skins:FindFirstChild(gunname) then
6634 if values.skins.skins.skin.Scroll[gunname] ~= "Inventory" then
6635 MapSkin(gunname, values.skins.skins.skin.Scroll[gunname])
6636 end
6637 end
6638 for _,v in pairs(WeaponObj) do
6639 if v:IsA("MeshPart") then
6640 local OriginalTexture = Instance.new("StringValue")
6641 OriginalTexture.Value = v.TextureID
6642 OriginalTexture.Name = "OriginalTexture"
6643 OriginalTexture.Parent = v
6644 end
6645
6646 local OriginalColor = Instance.new("Color3Value")
6647 OriginalColor.Value = v.Color
6648 OriginalColor.Name = "OriginalColor"
6649 OriginalColor.Parent = v
6650
6651 local OriginalMaterial = Instance.new("StringValue")
6652 OriginalMaterial.Value = v.Material.Name
6653 OriginalMaterial.Name = "OriginalMaterial"
6654 OriginalMaterial.Parent = v
6655
6656 if values.visuals.effects["weapon chams"].Toggle then
6657 UpdateWeapon(v)
6658 end
6659 end
6660 RArm = Model:FindFirstChild("Right Arm"); LArm = Model:FindFirstChild("Left Arm")
6661 if RArm then
6662 local OriginalColor = Instance.new("Color3Value")
6663 OriginalColor.Value = RArm.Color
6664 OriginalColor.Name = "Color3Value"
6665 OriginalColor.Parent = RArm
6666 if values.visuals.effects["arm chams"].Toggle then
6667 RArm.Color = values.visuals.effects["arm chams"].Color
6668 RArm.Transparency = values.visuals.effects["arm chams"].Transparency
6669 end
6670 RGlove = RArm:FindFirstChild("Glove") or RArm:FindFirstChild("RGlove")
6671 if values.skins.glove["glove changer"].Toggle and Client.gun ~= "none" then
6672 if RGlove then RGlove:Destroy() end
6673 RGlove = GloveModels[values.skins.glove.model.Dropdown].RGlove:Clone()
6674 RGlove.Mesh.TextureId = Gloves[values.skins.glove.model.Dropdown][values.skins.glove.model.Scroll[values.skins.glove.model.Dropdown]].Textures.TextureId
6675 RGlove.Parent = RArm
6676 RGlove.Transparency = 0
6677 RGlove.Welded.Part0 = RArm
6678 end
6679 if RGlove.Transparency == 1 then
6680 RGlove:Destroy()
6681 RGlove = nil
6682 else
6683 local GloveTexture = Instance.new("StringValue")
6684 GloveTexture.Value = RGlove.Mesh.TextureId
6685 GloveTexture.Name = "StringValue"
6686 GloveTexture.Parent = RGlove
6687
6688 if values.visuals.effects["accessory chams"].Toggle then
6689 UpdateAccessory(RGlove)
6690 end
6691 end
6692 RSleeve = RArm:FindFirstChild("Sleeve")
6693 if RSleeve ~= nil then
6694 local SleeveTexture = Instance.new("StringValue")
6695 SleeveTexture.Value = RSleeve.Mesh.TextureId
6696 SleeveTexture.Name = "StringValue"
6697 SleeveTexture.Parent = RSleeve
6698 if values.visuals.effects["arm chams"].Toggle then
6699 LArm.Color = values.visuals.effects["arm chams"].Color
6700 end
6701 if values.visuals.effects["accessory chams"].Toggle then
6702 UpdateAccessory(RSleeve)
6703 end
6704 end
6705 end
6706 if LArm then
6707 local OriginalColor = Instance.new("Color3Value")
6708 OriginalColor.Value = LArm.Color
6709 OriginalColor.Name = "Color3Value"
6710 OriginalColor.Parent = LArm
6711 if values.visuals.effects["arm chams"].Toggle then
6712 LArm.Color = values.visuals.effects["arm chams"].Color
6713 LArm.Transparency = values.visuals.effects["arm chams"].Transparency
6714 end
6715 LGlove = LArm:FindFirstChild("Glove") or LArm:FindFirstChild("LGlove")
6716 if values.skins.glove["glove changer"].Toggle and Client.gun ~= "none" then
6717 if LGlove then LGlove:Destroy() end
6718 LGlove = GloveModels[values.skins.glove.model.Dropdown].LGlove:Clone()
6719 LGlove.Mesh.TextureId = Gloves[values.skins.glove.model.Dropdown][values.skins.glove.model.Scroll[values.skins.glove.model.Dropdown]].Textures.TextureId
6720 LGlove.Transparency = 0
6721 LGlove.Parent = LArm
6722 LGlove.Welded.Part0 = LArm
6723 end
6724 if LGlove.Transparency == 1 then
6725 LGlove:Destroy()
6726 LGlove = nil
6727 else
6728 local GloveTexture = Instance.new("StringValue")
6729 GloveTexture.Value = LGlove.Mesh.TextureId
6730 GloveTexture.Name = "StringValue"
6731 GloveTexture.Parent = LGlove
6732
6733 if values.visuals.effects["accessory chams"].Toggle then
6734 UpdateAccessory(LGlove)
6735 end
6736 end
6737 LSleeve = LArm:FindFirstChild("Sleeve")
6738 if LSleeve ~= nil then
6739 local SleeveTexture = Instance.new("StringValue")
6740 SleeveTexture.Value = LSleeve.Mesh.TextureId
6741 SleeveTexture.Name = "StringValue"
6742 SleeveTexture.Parent = LSleeve
6743
6744 if values.visuals.effects["accessory chams"].Toggle then
6745 UpdateAccessory(LSleeve)
6746 end
6747 end
6748 end
6749end)
6750Camera.ChildAdded:Connect(function(obj)
6751 if obj.Name == "Arms" then
6752 RArm, LArm, RGlove, RSleeve, LGlove, LSleeve = nil, nil, nil, nil, nil, nil
6753 WeaponObj = {}
6754 end
6755end)
6756Camera:GetPropertyChangedSignal("FieldOfView"):Connect(function(fov)
6757 if LocalPlayer.Character == nil then return end
6758 if fov == values.visuals.self["fov changer"].Slider then return end
6759 if values.visuals.self["on scope"].Toggle or not LocalPlayer.Character:FindFirstChild("AIMING") then
6760 Camera.FieldOfView = values.visuals.self["fov changer"].Slider
6761 end
6762end)
6763LocalPlayer.Cash:GetPropertyChangedSignal("Value"):Connect(function(cash)
6764 if values.misc.client["infinite cash"].Toggle and cash ~= 8000 then
6765 LocalPlayer.Cash.Value = 8000
6766 end
6767end)
6768if workspace:FindFirstChild("Map") and workspace:FindFirstChild("Map"):FindFirstChild("Origin") then
6769 if workspace.Map.Origin.Value == "de_cache" or workspace.Map.Origin.Value == "de_vertigo" or workspace.Map.Origin.Value == "de_nuke" or workspace.Map.Origin.Value == "de_aztec" then
6770 oldSkybox = Lighting:FindFirstChildOfClass("Sky"):Clone()
6771 end
6772end
6773workspace.ChildAdded:Connect(function(obj)
6774 if obj.Name == "Map" then
6775 wait(5)
6776 if values.misc.client["remove killers"].Toggle then
6777 if workspace:FindFirstChild("Map") and workspace:FindFirstChild("Map"):FindFirstChild("Killers") then
6778 local clone = workspace:FindFirstChild("Map"):FindFirstChild("Killers"):Clone()
6779 clone.Name = "KillersClone"
6780 clone.Parent = workspace:FindFirstChild("Map")
6781
6782 workspace:FindFirstChild("Map"):FindFirstChild("Killers"):Destroy()
6783 end
6784 end
6785 if oldSkybox ~= nil then
6786 oldSkybox:Destroy()
6787 oldSkybox = nil
6788 end
6789 local Origin = workspace.Map:WaitForChild("Origin")
6790 if workspace.Map.Origin.Value == "de_cache" or workspace.Map.Origin.Value == "de_vertigo" or workspace.Map.Origin.Value == "de_nuke" or workspace.Map.Origin.Value == "de_aztec" then
6791 oldSkybox = Lighting:FindFirstChildOfClass("Sky"):Clone()
6792
6793 local sky = values.visuals.world.skybox.Dropdown
6794 if sky ~= "none" then
6795 Lighting:FindFirstChildOfClass("Sky"):Destroy()
6796 local skybox = Instance.new("Sky")
6797 skybox.SkyboxLf = Skyboxes[sky].SkyboxLf
6798 skybox.SkyboxBk = Skyboxes[sky].SkyboxBk
6799 skybox.SkyboxDn = Skyboxes[sky].SkyboxDn
6800 skybox.SkyboxFt = Skyboxes[sky].SkyboxFt
6801 skybox.SkyboxRt = Skyboxes[sky].SkyboxRt
6802 skybox.SkyboxUp = Skyboxes[sky].SkyboxUp
6803 skybox.Name = "override"
6804 skybox.Parent = Lighting
6805 end
6806 else
6807 local sky = values.visuals.world.skybox.Dropdown
6808 if sky ~= "none" then
6809 local skybox = Instance.new("Sky")
6810 skybox.SkyboxLf = Skyboxes[sky].SkyboxLf
6811 skybox.SkyboxBk = Skyboxes[sky].SkyboxBk
6812 skybox.SkyboxDn = Skyboxes[sky].SkyboxDn
6813 skybox.SkyboxFt = Skyboxes[sky].SkyboxFt
6814 skybox.SkyboxRt = Skyboxes[sky].SkyboxRt
6815 skybox.SkyboxUp = Skyboxes[sky].SkyboxUp
6816 skybox.Name = "override"
6817 skybox.Parent = Lighting
6818 end
6819 end
6820 end
6821end)
6822Lighting.ChildAdded:Connect(function(obj)
6823 if obj:IsA("Sky") and obj.Name ~= "override" then
6824 oldSkybox = obj:Clone()
6825 end
6826end)
6827
6828local function CollisionTBL(obj)
6829 if obj:IsA("Accessory") then
6830 table.insert(Collision, obj)
6831 end
6832 if obj:IsA("Part") then
6833 if obj.Name == "HeadHB" or obj.Name == "FakeHead" then
6834 table.insert(Collision, obj)
6835 end
6836 end
6837end
6838LocalPlayer.CharacterAdded:Connect(function(char)
6839 repeat RunService.RenderStepped:Wait()
6840 until char:FindFirstChild("Gun")
6841 SelfObj = {}
6842 if values.skins.characters["character changer"].Toggle then
6843 ChangeCharacter(ChrModels:FindFirstChild(values.skins.characters.skin.Scroll))
6844 end
6845 if char:FindFirstChildOfClass("Shirt") then
6846 local String = Instance.new("StringValue")
6847 String.Name = "OriginalTexture"
6848 String.Value = char:FindFirstChildOfClass("Shirt").ShirtTemplate
6849 String.Parent = char:FindFirstChildOfClass("Shirt")
6850
6851 if table.find(values.visuals.effects.removals.Jumbobox, "clothes") then
6852 char:FindFirstChildOfClass("Shirt").ShirtTemplate = ""
6853 end
6854 end
6855 if char:FindFirstChildOfClass("Pants") then
6856 local String = Instance.new("StringValue")
6857 String.Name = "OriginalTexture"
6858 String.Value = char:FindFirstChildOfClass("Pants").PantsTemplate
6859 String.Parent = char:FindFirstChildOfClass("Pants")
6860
6861 if table.find(values.visuals.effects.removals.Jumbobox, "clothes") then
6862 char:FindFirstChildOfClass("Pants").PantsTemplate = ""
6863 end
6864 end
6865 for i,v in pairs(char:GetChildren()) do
6866 if v:IsA("BasePart") and v.Transparency ~= 1 then
6867 table.insert(SelfObj, v)
6868 local Color = Instance.new("Color3Value")
6869 Color.Name = "OriginalColor"
6870 Color.Value = v.Color
6871 Color.Parent = v
6872
6873 local String = Instance.new("StringValue")
6874 String.Name = "OriginalMaterial"
6875 String.Value = v.Material.Name
6876 String.Parent = v
6877 elseif v:IsA("Accessory") and v.Handle.Transparency ~= 1 then
6878 table.insert(SelfObj, v.Handle)
6879 local Color = Instance.new("Color3Value")
6880 Color.Name = "OriginalColor"
6881 Color.Value = v.Handle.Color
6882 Color.Parent = v.Handle
6883
6884 local String = Instance.new("StringValue")
6885 String.Name = "OriginalMaterial"
6886 String.Value = v.Handle.Material.Name
6887 String.Parent = v.Handle
6888 end
6889 end
6890 if values.visuals.self["self chams"].Toggle then
6891 for _,obj in pairs(SelfObj) do
6892 if obj.Parent ~= nil then
6893 obj.Material = Enum.Material.ForceField
6894 obj.Color = values.visuals.self["self chams"].Color
6895 end
6896 end
6897 end
6898 LocalPlayer.Character.ChildAdded:Connect(function(Child)
6899 if Child:IsA("Accessory") and Child.Handle.Transparency ~= 1 then
6900 table.insert(SelfObj, Child.Handle)
6901 local Color = Instance.new("Color3Value")
6902 Color.Name = "OriginalColor"
6903 Color.Value = Child.Handle.Color
6904 Color.Parent = Child.Handle
6905
6906 local String = Instance.new("StringValue")
6907 String.Name = "OriginalMaterial"
6908 String.Value = Child.Handle.Material.Name
6909 String.Parent = Child.Handle
6910
6911 if values.visuals.self["self chams"].Toggle then
6912 for _,obj in pairs(SelfObj) do
6913 if obj.Parent ~= nil then
6914 obj.Material = Enum.Material.ForceField
6915 obj.Color = values.visuals.self["self chams"].Color
6916 end
6917 end
6918 end
6919 end
6920 end)
6921
6922 if values.misc.animations.enabled.Toggle and values.misc.animations.enabled.Active then
6923 LoadedAnim = LocalPlayer.Character.Humanoid:LoadAnimation(Dance)
6924 LoadedAnim.Priority = Enum.AnimationPriority.Action
6925 LoadedAnim:Play()
6926 end
6927end)
6928if LocalPlayer.Character ~= nil then
6929 for i,v in pairs(LocalPlayer.Character:GetChildren()) do
6930 if v:IsA("BasePart") and v.Transparency ~= 1 then
6931 table.insert(SelfObj, v)
6932 local Color = Instance.new("Color3Value")
6933 Color.Name = "OriginalColor"
6934 Color.Value = v.Color
6935 Color.Parent = v
6936
6937 local String = Instance.new("StringValue")
6938 String.Name = "OriginalMaterial"
6939 String.Value = v.Material.Name
6940 String.Parent = v
6941 elseif v:IsA("Accessory") and v.Handle.Transparency ~= 1 then
6942 table.insert(SelfObj, v.Handle)
6943 local Color = Instance.new("Color3Value")
6944 Color.Name = "OriginalColor"
6945 Color.Value = v.Handle.Color
6946 Color.Parent = v.Handle
6947
6948 local String = Instance.new("StringValue")
6949 String.Name = "OriginalMaterial"
6950 String.Value = v.Handle.Material.Name
6951 String.Parent = v.Handle
6952 end
6953 end
6954 if values.visuals.self["self chams"].Toggle then
6955 for _,obj in pairs(SelfObj) do
6956 if obj.Parent ~= nil then
6957 obj.Material = Enum.Material.ForceField
6958 obj.Color = values.visuals.self["self chams"].Color
6959 end
6960 end
6961 end
6962 LocalPlayer.Character.ChildAdded:Connect(function(Child)
6963 if Child:IsA("Accessory") and Child.Handle.Transparency ~= 1 then
6964 table.insert(SelfObj, Child.Handle)
6965 local Color = Instance.new("Color3Value")
6966 Color.Name = "OriginalColor"
6967 Color.Value = Child.Handle.Color
6968 Color.Parent = Child.Handle
6969
6970 local String = Instance.new("StringValue")
6971 String.Name = "OriginalMaterial"
6972 String.Value = Child.Handle.Material.Name
6973 String.Parent = Child.Handle
6974
6975 if values.visuals.self["self chams"].Toggle then
6976 for _,obj in pairs(SelfObj) do
6977 if obj.Parent ~= nil then
6978 obj.Material = Enum.Material.ForceField
6979 obj.Color = values.visuals.self["self chams"].Color
6980 end
6981 end
6982 end
6983 end
6984 end)
6985end
6986Players.PlayerAdded:Connect(function(Player)
6987 Player:GetPropertyChangedSignal("Team"):Connect(function(new)
6988 wait()
6989 if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
6990 for _2,Obj in pairs(Player.Character:GetDescendants()) do
6991 if Obj.Name == "VisibleCham" or Obj.Name == "WallCham" then
6992 if values.visuals.players.chams.Toggle then
6993 if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
6994 Obj.Visible = true
6995 else
6996 Obj.Visible = false
6997 end
6998 else
6999 Obj.Visible = false
7000 end
7001 Obj.Color3 = values.visuals.players.chams.Color
7002 end
7003 end
7004 end
7005 end)
7006 Player.CharacterAdded:Connect(function(Character)
7007 Character.ChildAdded:Connect(function(obj)
7008 wait(1)
7009 CollisionTBL(obj)
7010 end)
7011 wait(1)
7012 if Character ~= nil then
7013 local Value = Instance.new("Vector3Value")
7014 Value.Name = "OldPosition"
7015 Value.Value = Character.HumanoidRootPart.Position
7016 Value.Parent = Character.HumanoidRootPart
7017 for _,obj in pairs(Character:GetChildren()) do
7018 if obj:IsA("BasePart") and Player ~= LocalPlayer and obj.Name ~= "HumanoidRootPart" and obj.Name ~= "Head" and obj.Name ~= "BackC4" and obj.Name ~= "HeadHB" then
7019 local VisibleCham = Instance.new("BoxHandleAdornment")
7020 VisibleCham.Name = "VisibleCham"
7021 VisibleCham.AlwaysOnTop = false
7022 VisibleCham.ZIndex = 8
7023 VisibleCham.Size = obj.Size + Vector3.new(0.1,0.1,0.1)
7024 VisibleCham.AlwaysOnTop = false
7025 VisibleCham.Transparency = 0
7026
7027 local WallCham = Instance.new("BoxHandleAdornment")
7028 WallCham.Name = "WallCham"
7029 WallCham.AlwaysOnTop = true
7030 WallCham.ZIndex = 5
7031 WallCham.Size = obj.Size + Vector3.new(0.1,0.1,0.1)
7032 WallCham.AlwaysOnTop = true
7033 WallCham.Transparency = 0.7
7034
7035 if values.visuals.players.chams.Toggle then
7036 if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
7037 VisibleCham.Visible = true
7038 WallCham.Visible = true
7039 else
7040 VisibleCham.Visible = false
7041 WallCham.Visible = false
7042 end
7043 else
7044 VisibleCham.Visible = false
7045 WallCham.Visible = false
7046 end
7047
7048 table.insert(ChamItems, VisibleCham)
7049 table.insert(ChamItems, WallCham)
7050
7051 VisibleCham.Color3 = values.visuals.players.chams.Color
7052 WallCham.Color3 = values.visuals.players.chams.Color
7053
7054 VisibleCham.AdornCullingMode = "Never"
7055 WallCham.AdornCullingMode = "Never"
7056
7057 VisibleCham.Adornee = obj
7058 VisibleCham.Parent = obj
7059
7060 WallCham.Adornee = obj
7061 WallCham.Parent = obj
7062 end
7063 end
7064 end
7065 end)
7066end)
7067for _,Player in pairs(Players:GetPlayers()) do
7068 if Player ~= LocalPlayer then
7069 Player:GetPropertyChangedSignal("Team"):Connect(function(new)
7070 wait()
7071 if Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") then
7072 for _2,Obj in pairs(Player.Character:GetDescendants()) do
7073 if Obj.Name == "VisibleCham" or Obj.Name == "WallCham" then
7074 if values.visuals.players.chams.Toggle then
7075 if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
7076 Obj.Visible = true
7077 else
7078 Obj.Visible = false
7079 end
7080 else
7081 Obj.Visible = false
7082 end
7083 Obj.Color3 = values.visuals.players.chams.Color
7084 end
7085 end
7086 end
7087 end)
7088 else
7089 LocalPlayer:GetPropertyChangedSignal("Team"):Connect(function(new)
7090 wait()
7091 for _,Player in pairs(Players:GetPlayers()) do
7092 if Player.Character then
7093 for _2,Obj in pairs(Player.Character:GetDescendants()) do
7094 if Obj.Name == "VisibleCham" or Obj.Name == "WallCham" then
7095 if values.visuals.players.chams.Toggle then
7096 if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
7097 Obj.Visible = true
7098 else
7099 Obj.Visible = false
7100 end
7101 else
7102 Obj.Visible = false
7103 end
7104 Obj.Color3 = values.visuals.players.chams.Color
7105 end
7106 end
7107 end
7108 end
7109 end)
7110 end
7111 Player.CharacterAdded:Connect(function(Character)
7112 Character.ChildAdded:Connect(function(obj)
7113 wait(1)
7114 CollisionTBL(obj)
7115 end)
7116 wait(1)
7117 if Player.Character ~= nil and Player.Character:FindFirstChild("HumanoidRootPart") then
7118 local Value = Instance.new("Vector3Value")
7119 Value.Value = Player.Character.HumanoidRootPart.Position
7120 Value.Name = "OldPosition"
7121 Value.Parent = Player.Character.HumanoidRootPart
7122 for _,obj in pairs(Player.Character:GetChildren()) do
7123 if obj:IsA("BasePart") and Player ~= LocalPlayer and obj.Name ~= "HumanoidRootPart" and obj.Name ~= "Head" and obj.Name ~= "BackC4" and obj.Name ~= "HeadHB" then
7124 local VisibleCham = Instance.new("BoxHandleAdornment")
7125 VisibleCham.Name = "VisibleCham"
7126 VisibleCham.AlwaysOnTop = false
7127 VisibleCham.ZIndex = 5
7128 VisibleCham.Size = obj.Size + Vector3.new(0.1,0.1,0.1)
7129 VisibleCham.AlwaysOnTop = false
7130 VisibleCham.Transparency = 0
7131
7132 local WallCham = Instance.new("BoxHandleAdornment")
7133 WallCham.Name = "WallCham"
7134 WallCham.AlwaysOnTop = true
7135 WallCham.ZIndex = 5
7136 WallCham.Size = obj.Size + Vector3.new(0.1,0.1,0.1)
7137 WallCham.AlwaysOnTop = true
7138 WallCham.Transparency = 0.7
7139
7140 if values.visuals.players.chams.Toggle then
7141 if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
7142 VisibleCham.Visible = true
7143 WallCham.Visible = true
7144 else
7145 VisibleCham.Visible = false
7146 WallCham.Visible = false
7147 end
7148 else
7149 VisibleCham.Visible = false
7150 WallCham.Visible = false
7151 end
7152
7153 table.insert(ChamItems, VisibleCham)
7154 table.insert(ChamItems, WallCham)
7155
7156 VisibleCham.Color3 = values.visuals.players.chams.Color
7157 WallCham.Color3 = values.visuals.players.chams.Color
7158
7159 VisibleCham.AdornCullingMode = "Never"
7160 WallCham.AdornCullingMode = "Never"
7161
7162 VisibleCham.Adornee = obj
7163 VisibleCham.Parent = obj
7164
7165 WallCham.Adornee = obj
7166 WallCham.Parent = obj
7167 end
7168 end
7169 end
7170 end)
7171 if Player.Character ~= nil and Player.Character:FindFirstChild("UpperTorso") then
7172 local Value = Instance.new("Vector3Value")
7173 Value.Name = "OldPosition"
7174 Value.Value = Player.Character.HumanoidRootPart.Position
7175 Value.Parent = Player.Character.HumanoidRootPart
7176 for _,obj in pairs(Player.Character:GetChildren()) do
7177 CollisionTBL(obj)
7178 if obj:IsA("BasePart") and Player ~= LocalPlayer and obj.Name ~= "HumanoidRootPart" and obj.Name ~= "Head" and obj.Name ~= "BackC4" and obj.Name ~= "HeadHB" then
7179 local VisibleCham = Instance.new("BoxHandleAdornment")
7180 VisibleCham.Name = "VisibleCham"
7181 VisibleCham.AlwaysOnTop = false
7182 VisibleCham.ZIndex = 5
7183 VisibleCham.Size = obj.Size + Vector3.new(0.1,0.1,0.1)
7184 VisibleCham.AlwaysOnTop = false
7185 VisibleCham.Transparency = 0
7186
7187 local WallCham = Instance.new("BoxHandleAdornment")
7188 WallCham.Name = "WallCham"
7189 WallCham.AlwaysOnTop = true
7190 WallCham.ZIndex = 5
7191 WallCham.Size = obj.Size + Vector3.new(0.1,0.1,0.1)
7192 WallCham.AlwaysOnTop = true
7193 WallCham.Transparency = 0.7
7194
7195 if values.visuals.players.chams.Toggle then
7196 if values.visuals.players.teammates.Toggle or Player.Team ~= LocalPlayer.Team then
7197 VisibleCham.Visible = true
7198 WallCham.Visible = true
7199 else
7200 VisibleCham.Visible = false
7201 WallCham.Visible = false
7202 end
7203 else
7204 VisibleCham.Visible = false
7205 WallCham.Visible = false
7206 end
7207
7208 table.insert(ChamItems, VisibleCham)
7209 table.insert(ChamItems, WallCham)
7210
7211 VisibleCham.Color3 = values.visuals.players.chams.Color
7212 WallCham.Color3 = values.visuals.players.chams.Color
7213
7214 VisibleCham.AdornCullingMode = "Never"
7215 WallCham.AdornCullingMode = "Never"
7216
7217 VisibleCham.Adornee = obj
7218 VisibleCham.Parent = obj
7219
7220 WallCham.Adornee = obj
7221 WallCham.Parent = obj
7222 end
7223 end
7224 end
7225end
7226