· 6 years ago · Dec 23, 2019, 03:48 PM
1local is_synapse_function = is_synapse_function or issentinelclosure
2local Library
3local uESP
4local Utils = {}
5local Library
6local TweenService = game:GetService("TweenService")
7local window
8local universal
9local loopAPI = {}
10local LoopThreads = {}
11local Games = {
12 [155615604] = "Prison Life",
13 [2677609345] = "Sound Space",
14 [2607077439] = "Operation Scorpion",
15 [621129760] = "KAT",
16 [2262441883] = "Electric State DarkRP",
17 [2377868063] = "Strucid",
18 [3214306383] = "Adventure Up",
19 [286090429] = "Arsenal",
20 [3527629287] = "Big Paintball",
21}
22local GameName = Games[game.PlaceId] or (function() -- solution for multiple places in a game
23 local Game = "No Game Detected"
24 return Game
25end)()
26local function Resize (part,new,_delay)
27 _delay = _delay or 0.5
28 local tweenInfo = TweenInfo.new(_delay, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
29 local tween = TweenService:Create(part, tweenInfo, new)
30 tween:Play()
31end
32do -- Loop API (since jailtapper)
33 local function CreateThread(func)
34 local thread = coroutine.create(func)
35 coroutine.resume(thread)
36 end
37 function loopAPI:CreateLoop(name, WaitMethod, func, runLoop)
38 LoopThreads[name] = {}
39 LoopThreads[name]["running"] = false
40 LoopThreads[name]["destroy"] = false
41 CreateThread(function()
42 while true do
43 if typeof(WaitMethod) == "userdata" then WaitMethod:Wait() else WaitMethod() end
44 if LoopThreads[name]["running"] then
45 func()
46 end
47 if LoopThreads[name]["destroy"] then
48 LoopThreads[name] = nil
49 break
50 end
51 end
52 end)
53 if runLoop then
54 self:RunLoop(name)
55 end
56 end
57 function loopAPI:RunLoop(name, WaitMethod, func)
58 if LoopThreads[name] then
59 LoopThreads[name]["running"] = true
60 end
61 end
62 function loopAPI:StopLoop(name)
63 if LoopThreads[name] then
64 LoopThreads[name]["running"] = false
65 end
66 end
67 function loopAPI:DestroyLoop(name)
68 if LoopThreads[name] then
69 LoopThreads[name]["destroy"] = true
70 end
71 end
72end
73local function CreateDrag(gui)
74 local UserInputService = game:GetService("UserInputService")
75 local dragging
76 local dragInput
77 local dragStart
78 local startPos
79
80 local function update(input)
81 local delta = input.Position - dragStart
82 Resize(gui, {Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)}, 0.16)
83 end
84
85 gui.InputBegan:Connect(function(input)
86 if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
87 dragging = true
88 dragStart = input.Position
89 startPos = gui.Position
90
91 input.Changed:Connect(function()
92 if input.UserInputState == Enum.UserInputState.End then
93 dragging = false
94 end
95 end)
96 end
97 end)
98
99 gui.InputChanged:Connect(function(input)
100 if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
101 dragInput = input
102 end
103 end)
104
105 UserInputService.InputChanged:Connect(function(input)
106 if input == dragInput and dragging then
107 update(input)
108 end
109 end)
110end
111do -- UI Library
112
113 --// Services \\--
114 local TweenService = game:GetService("TweenService")
115 local RunService = game:GetService("RunService")
116 local UserInputService = game:GetService("UserInputService")
117 local CoreGui = RunService:IsStudio() and game:GetService("Players").LocalPlayer.PlayerGui or game:GetService("CoreGui")
118
119 --// Functions \\--
120 local BlacklistedKeys = { --add or remove keys if you find the need to
121 Enum.KeyCode.Unknown,Enum.KeyCode.W,Enum.KeyCode.A,Enum.KeyCode.S,Enum.KeyCode.D,Enum.KeyCode.Slash,Enum.KeyCode.Tab,Enum.KeyCode.Backspace,Enum.KeyCode.One,Enum.KeyCode.Two,Enum.KeyCode.Three,Enum.KeyCode.Four,Enum.KeyCode.Five,Enum.KeyCode.Six,Enum.KeyCode.Seven,Enum.KeyCode.Eight,Enum.KeyCode.Nine,Enum.KeyCode.Zero,Enum.KeyCode.Escape,Enum.KeyCode.F1,Enum.KeyCode.F2,Enum.KeyCode.F3,Enum.KeyCode.F4,Enum.KeyCode.F5,Enum.KeyCode.F6,Enum.KeyCode.F7,Enum.KeyCode.F8,Enum.KeyCode.F9,Enum.KeyCode.F10,Enum.KeyCode.F11,Enum.KeyCode.F12
122 }
123
124 local WhitelistedMouseInputs = { --add or remove mouse inputs if you find the need to
125 Enum.UserInputType.MouseButton1,Enum.UserInputType.MouseButton2,Enum.UserInputType.MouseButton3
126 }
127
128 local function keyCheck(x,x1)
129 for _,v in next, x1 do
130 if v == x then
131 return true
132 end
133 end
134 end
135
136 local function Round(num, bracket)
137 bracket = bracket or 1
138 local a = math.floor(num/bracket + (math.sign(num) * 0.5)) * bracket
139 if a < 0 then
140 a = a + bracket
141 end
142 return a
143 end
144
145 local function AddHighlight(obj)
146 local InContact
147 obj.InputBegan:connect(function(input)
148 if input.UserInputType == Enum.UserInputType.MouseMovement then
149 InContact = true
150 TweenService:Create(obj, TweenInfo.new(0.2), {BackgroundTransparency = 0.9}):Play()
151 end
152 if input.UserInputType == Enum.UserInputType.MouseButton1 then
153 TweenService:Create(obj, TweenInfo.new(0.4), {BackgroundTransparency = 0.8}):Play()
154 end
155 end)
156 obj.InputEnded:connect(function(input)
157 if input.UserInputType == Enum.UserInputType.MouseMovement then
158 InContact = false
159 TweenService:Create(obj, TweenInfo.new(0.4), {BackgroundTransparency = 1}):Play()
160 end
161 if input.UserInputType == Enum.UserInputType.MouseButton1 and InContact then
162 TweenService:Create(obj, TweenInfo.new(0.2), {BackgroundTransparency = 0.9}):Play()
163 end
164 end)
165 end
166
167 local DDCheck
168 local ExtFrames = {}
169 local function CloseExt()
170 if not DDCheck then return end
171 DDCheck.Closed = true
172 DDCheck.Container.Size = UDim2.new(DDCheck.Container.Size.X.Scale, DDCheck.Container.Size.X.Offset, 0, 0)
173 if DDCheck.Closed then DDCheck.Main.Parent.Parent.ClipsDescendants = true end
174 if DDCheck.Arrow then
175 DDCheck.Arrow.Text = ">"
176 end
177 for _,v in next, ExtFrames do
178 v.Parent = nil
179 end
180 DDCheck = nil
181 end
182 for i=1,4 do
183 local Frame = Instance.new("Frame")
184 Frame.ZIndex = 50
185 Frame.BackgroundTransparency = 1
186 Frame.Visible = true
187 if i == 1 then
188 Frame.Size = UDim2.new(0,1000,0,-1000)
189 elseif i == 2 then
190 Frame.Size = UDim2.new(0,1000,0,1000)
191 Frame.Position = UDim2.new(1,0,0,0)
192 elseif i == 3 then
193 Frame.Size = UDim2.new(0,-1000,0,1000)
194 Frame.Position = UDim2.new(1,0,1,0)
195 elseif i == 4 then
196 Frame.Size = UDim2.new(0,-1000,0,-1000)
197 Frame.Position = UDim2.new(0,0,1,0)
198 end
199 table.insert(ExtFrames, Frame)
200 Frame.InputBegan:connect(function(input)
201 if input.UserInputType == Enum.UserInputType.MouseButton1 then
202 CloseExt()
203 end
204 end)
205 end
206
207 local function CloseWindow(Obj)
208 for _,v in next, ExtFrames do
209 DDCheck = Obj
210 v.Parent = Obj.Container
211 end
212 end
213
214 local ChromaColor
215 spawn(function()
216 local a = 0
217 while wait() do
218 ChromaColor = Color3.fromHSV(a,1,1)
219 a = a >= 1 and 0 or a + 0.01
220 end
221 end)
222
223 --LIBRARY
224 Library = {Tabs = {}, FocusedTab = nil, Open = true}
225
226 Library.settings = {
227 UiToggle = Enum.KeyCode.RightShift,
228 Theme = Color3.fromRGB(255,65,65)
229 }
230
231 UserInputService.InputBegan:connect(function(input)
232 if input.KeyCode == Library.settings.UiToggle and Library.Base then
233 Library.Open = not Library.Open
234 if Library.FocusedTab then
235 if Library.Open then
236 Library.Base.Enabled = true
237 for _,Tab in next, Library.Tabs do
238 Tab.ButtonHolder.Visible = Tab.Visible
239 end
240 else
241 CloseExt()
242 for _,Tab in next, Library.Tabs do
243 Tab.ButtonHolder.Visible = false
244 end
245 Library.Base.Enabled = false
246 end
247 end
248 end
249 end)
250
251 UserInputService.InputChanged:connect(function(input)
252 if input.UserInputType == Enum.UserInputType.MouseMovement and Library.Pointer then
253 local Mouse = UserInputService:GetMouseLocation() + Vector2.new(0,-36)
254 Library.Pointer.Position = UDim2.new(0,Mouse.X,0,Mouse.Y)
255 end
256 end)
257
258 function Library:Create(class, properties)
259 local inst = Instance.new(class)
260 for property, value in pairs(properties) do
261 inst[property] = value
262 end
263 return inst
264 end
265
266 function Library:CreateTab(TabName)
267 local Tab = {Sections = {}, Visible = true}
268
269 self.Base = self.Base or self:Create("ScreenGui", {
270 ZIndexBehavior = Enum.ZIndexBehavior.Global,
271 Parent = CoreGui
272 })
273
274 self.Line = self.Line or self:Create("Frame", {
275 AnchorPoint = Vector2.new(0.5,0),
276 Position = UDim2.new(0.5,0,1,0),
277 Size = UDim2.new(0,0,0,-2),
278 BackgroundColor3 = Library.settings.Theme,
279 BorderSizePixel = 0
280 })
281
282 self.Pointer = self.Pointer or self:Create("Frame", {
283 ZIndex = 100,
284 AnchorPoint = Vector2.new(0,0),
285 Size = UDim2.new(0,4,0,4),
286 BackgroundColor3 = Color3.fromRGB(255,255,255),
287 Parent = self.Base
288 })
289
290 self.PointerDot = self.PointerDot or self:Create("Frame", {
291 ZIndex = 100,
292 Size = UDim2.new(0,2,0,2),
293 BackgroundColor3 = Library.settings.Theme,
294 BorderSizePixel = 0,
295 Parent = self.Pointer
296 })
297
298 Tab.XPos = 5 + (#self.Tabs * 205)
299
300 Tab.ButtonHolder = self:Create("Frame", {
301 Position = UDim2.new(0,Tab.XPos,0,5),
302 Size = UDim2.new(0,200,0,28),
303 BackgroundColor3 = Color3.fromRGB(40,40,40),
304 BorderSizePixel = 0,
305 Parent = self.Base
306 })
307
308 Tab.Button = self:Create("TextButton", {
309 Size = UDim2.new(1,0,1,0),
310 BackgroundTransparency = 1,
311 BackgroundColor3 = Color3.fromRGB(255,255,255),
312 BorderSizePixel = 0,
313 Text = TabName,
314 TextSize = 18,
315 TextColor3 = Color3.fromRGB(255,255,255),
316 Font = Enum.Font.SourceSans,
317 AutoButtonColor = false,
318 Modal = true,
319 Parent = Tab.ButtonHolder
320 })
321
322 Tab.Main = self:Create("Frame", {
323 ZIndex = -10,
324 Position = UDim2.new(0,0,0,-36),
325 Size = UDim2.new(1,0,1,36),
326 BackgroundTransparency = 1,
327 BackgroundColor3 = Color3.new(),
328 Visible = false,
329 Parent = self.Base
330 })
331
332 AddHighlight(Tab.Button)
333
334 self.FocusOnTab = self.FocusOnTab or function(t)
335 if self.FocusedTab then
336 self.FocusedTab.Main.Visible = false
337 end
338 self.FocusedTab = t
339 self.FocusedTab.Main.Visible = true
340 end
341
342 Tab.Button.MouseButton1Click:connect(function()
343 if self.FocusedTab ~= Tab then
344 if DDCheck then
345 DDCheck.Main.Parent.Parent.ClipsDescendants = true
346 end
347 self.FocusOnTab(Tab)
348 end
349 end)
350
351 if not self.FocusedTab then
352 self.FocusOnTab(Tab)
353 end
354
355 function Tab:AddSection(SectionName)
356 local Section = {Options = {}}
357 Section.YSize = 24
358
359 Section.Main = Library:Create("Frame", {
360 Position = UDim2.new(0,5 + (#self.Sections * 205),0,74),
361 Size = UDim2.new(0,200,0,24),
362 BackgroundColor3 = Color3.fromRGB(20,20,20),
363 BorderSizePixel = 0,
364 ClipsDescendants = true,
365 Parent = self.Main
366 })
367
368 Section.Label = Library:Create("TextLabel", {
369 Size = UDim2.new(1,0,0,24),
370 BackgroundColor3 = Color3.fromRGB(30,30,30),
371 BorderSizePixel = 0,
372 Text = SectionName,
373 TextSize = 16,
374 TextColor3 = Color3.fromRGB(255,255,255),
375 Font = Enum.Font.SourceSans,
376 Parent = Section.Main
377 })
378
379 Section.Content = Library:Create("Frame", {
380 Position = UDim2.new(0,0,0,24),
381 Size = UDim2.new(1,0,1,-24),
382 BackgroundTransparency = 1,
383 BorderSizePixel = 0,
384 Parent = Section.Main
385 })
386
387 Section.Layout = Library:Create("UIListLayout", {
388 SortOrder = Enum.SortOrder.LayoutOrder,
389 Parent = Section.Content
390 })
391
392 function Section:AddLabel(LabelText)
393 local Label = {}
394
395 Label.Main = Library:Create("TextLabel", {
396 LayoutOrder = #self.Options + 1,
397 Size = UDim2.new(1,0,0,22),
398 BackgroundTransparency = 1,
399 Text = " "..LabelText,
400 TextSize = 16,
401 TextColor3 = Color3.fromRGB(255,255,255),
402 Font = Enum.Font.SourceSans,
403 TextXAlignment = Enum.TextXAlignment.Left,
404 Parent = self.Content
405 })
406
407 Section.YSize = Section.YSize + 22
408 Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
409 table.insert(self.Options, Label)
410 return Label
411 end
412
413 function Section:AddButton(ButtonText, Callback)
414 local Button = {}
415 Callback = Callback or function() end
416
417 Button.Main = Library:Create("TextButton", {
418 LayoutOrder = #self.Options + 1,
419 Size = UDim2.new(1,0,0,22),
420 BackgroundTransparency = 1,
421 BackgroundColor3 = Color3.fromRGB(220,220,220),
422 BorderSizePixel = 0,
423 Text = " "..ButtonText,
424 TextSize = 16,
425 TextColor3 = Color3.fromRGB(255,255,255),
426 Font = Enum.Font.SourceSans,
427 TextXAlignment = Enum.TextXAlignment.Left,
428 AutoButtonColor = false,
429 Parent = self.Content
430 })
431
432 AddHighlight(Button.Main)
433
434 Button.Main.MouseButton1Click:connect(function()
435 Callback()
436 end)
437
438 Section.YSize = Section.YSize + 22
439 Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
440 table.insert(self.Options, Button)
441 return Button
442 end
443
444 function Section:AddToggle(ToggleText, Callback)
445 local Toggle = {State = false, Callback = Callback}
446 Toggle.Callback = Callback or function() end
447
448 Toggle.Main = Library:Create("TextButton", {
449 LayoutOrder = #self.Options + 1,
450 Size = UDim2.new(1,0,0,22),
451 BackgroundTransparency = 1,
452 BackgroundColor3 = Color3.fromRGB(220,220,220),
453 BorderSizePixel = 0,
454 Text = " "..ToggleText,
455 TextSize = 16,
456 TextColor3 = Color3.fromRGB(255,255,255),
457 Font = Enum.Font.SourceSans,
458 TextXAlignment = Enum.TextXAlignment.Left,
459 AutoButtonColor = false,
460 Parent = self.Content
461 })
462
463 Toggle.Visualize = Library:Create("Frame", {
464 Position = UDim2.new(1,-2,0,2),
465 Size = UDim2.new(0,-18,0,18),
466 BackgroundColor3 = Color3.fromRGB(35,35,35),
467 BorderSizePixel = 0,
468 Parent = Toggle.Main
469 })
470
471 AddHighlight(Toggle.Main)
472
473 local on = TweenService:Create(Toggle.Visualize, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Library.settings.Theme})
474 local off = TweenService:Create(Toggle.Visualize, TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {BackgroundColor3 = Color3.fromRGB(35,35,35)})
475
476 function Toggle:SetToggle(State)
477 Toggle.State = State
478 if Toggle.State then
479 on:Play()
480 else
481 off:Play()
482 end
483 Toggle.Callback(Toggle.State)
484 end
485
486 Toggle.Main.MouseButton1Click:connect(function()
487 Toggle:SetToggle(not Toggle.State)
488 end)
489
490 Section.YSize = Section.YSize + 22
491 Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
492 table.insert(self.Options, Toggle)
493 return Toggle
494 end
495
496 function Section:AddBox(BoxText, Callback)
497 local Box = {Callback = Callback}
498 Box.Callback = Callback or function() end
499
500 Box.Main = Library:Create("TextButton", {
501 LayoutOrder = #self.Options + 1,
502 Size = UDim2.new(1,0,0,42),
503 BackgroundTransparency = 1,
504 BackgroundColor3 = Color3.fromRGB(220,220,220),
505 BorderSizePixel = 0,
506 Text = " "..BoxText,
507 TextSize = 16,
508 TextColor3 = Color3.fromRGB(255,255,255),
509 Font = Enum.Font.SourceSans,
510 TextXAlignment = Enum.TextXAlignment.Left,
511 TextYAlignment = Enum.TextYAlignment.Top,
512 AutoButtonColor = false,
513 Parent = self.Content
514 })
515
516 Box.Box = Library:Create("TextBox", {
517 Position = UDim2.new(0,2,0,20),
518 Size = UDim2.new(1,-4,0,20),
519 BackgroundColor3 = Color3.fromRGB(35,35,35),
520 BorderSizePixel = 0,
521 Text = "",
522 TextColor3 = Color3.fromRGB(240,240,240),
523 ClipsDescendants = true,
524 Parent = Box.Main
525 })
526
527 AddHighlight(Box.Main)
528
529 Box.Main.MouseButton1Click:connect(function()
530 Box.Box:CaptureFocus()
531 end)
532
533 Box.Box.FocusLost:connect(function(EnterPressed)
534 TweenService:Create(Box.Main, TweenInfo.new(0.4), {BackgroundTransparency = 1}):Play()
535 Box.Callback(Box.Box.Text, EnterPressed)
536 end)
537
538 Section.YSize = Section.YSize + 42
539 Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
540 table.insert(self.Options, Box)
541 return Box
542 end
543
544 function Section:AddDropdown(DropdownText, Options, Callback, Groupbox)
545 if Options then
546 if typeof(Options) == "function" then
547 Callback = Options
548 Options = {}
549 end
550 if typeof(Options) == "boolean" then
551 Groupbox = Options
552 Callback = typeof(Options) == "function" and Options or function() end
553 Options = {}
554 end
555 end
556 if Callback and typeof(Callback) == "boolean" then
557 Groupbox = Callback
558 Callback = function() end
559 end
560 local Dropdown = {Order = 0, Closed = true, Value = Groupbox and nil or Options[1], Callback = Callback, Selected = {}}
561 Dropdown.Callback = Callback or function() end
562
563 Dropdown.Main = Library:Create("TextButton", {
564 LayoutOrder = #self.Options + 1,
565 Size = UDim2.new(1,0,0,42),
566 BackgroundTransparency = 1,
567 BackgroundColor3 = Color3.fromRGB(220,220,220),
568 BorderSizePixel = 0,
569 Text = " "..DropdownText,
570 TextSize = 16,
571 TextColor3 = Color3.fromRGB(255,255,255),
572 Font = Enum.Font.SourceSans,
573 TextXAlignment = Enum.TextXAlignment.Left,
574 TextYAlignment = Enum.TextYAlignment.Top,
575 AutoButtonColor = false,
576 Parent = self.Content
577 })
578
579 Dropdown.Label = Library:Create("TextLabel", {
580 Position = UDim2.new(0,2,0,20),
581 Size = UDim2.new(1,-4,0,20),
582 BackgroundColor3 = Color3.fromRGB(35,35,35),
583 BorderSizePixel = 0,
584 Text = Groupbox and "" or Dropdown.Value,
585 TextSize = 16,
586 TextColor3 = Color3.fromRGB(255,255,255),
587 TextTruncate = Enum.TextTruncate.AtEnd,
588 Font = Enum.Font.SourceSans,
589 Parent = Dropdown.Main
590 })
591
592 Dropdown.Arrow = Library:Create("TextLabel", {
593 Position = UDim2.new(1,0,0,2),
594 Size = UDim2.new(0,-16,0,16),
595 Rotation = 90,
596 BackgroundTransparency = 1,
597 Text = ">",
598 TextColor3 = Color3.fromRGB(80,80,80),
599 Font = Enum.Font.Arcade,
600 TextSize = 18,
601 Parent = Dropdown.Label
602 })
603
604 Dropdown.Container = Library:Create("Frame", {
605 ZIndex = 2,
606 Position = UDim2.new(0,0,1,2),
607 Size = UDim2.new(1,0,0,0),
608 BackgroundTransparency = 1,
609 Parent = Dropdown.Label
610 })
611
612 Dropdown.SubContainer = Library:Create("Frame", {
613 Size = UDim2.new(1,0,1,0),
614 BackgroundTransparency = 1,
615 ClipsDescendants = true,
616 Parent = Dropdown.Container
617 })
618
619 Dropdown.Contentholder = Library:Create("ScrollingFrame", {
620 ZIndex = 2,
621 Size = UDim2.new(1,0,1,0),
622 BackgroundColor3 = Color3.fromRGB(40,40,40),
623 BorderColor3 = Color3.fromRGB(30,30,30),
624 ScrollBarThickness = 6,
625 ScrollBarImageColor3 = Color3.fromRGB(80,80,80),
626 BottomImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
627 TopImage = "rbxasset://textures/ui/Scroll/scroll-middle.png",
628 Parent = Dropdown.SubContainer
629 })
630
631 Dropdown.Layout = Library:Create("UIListLayout", {
632 Padding = UDim.new(0,0),
633 SortOrder = Enum.SortOrder.LayoutOrder,
634 Parent = Dropdown.Contentholder
635 })
636
637 AddHighlight(Dropdown.Main)
638
639 Dropdown.Main.InputBegan:connect(function(input)
640 if input.UserInputType == Enum.UserInputType.MouseButton1 then
641 Dropdown.Closed = not Dropdown.Closed
642 if Dropdown.Closed then
643 Dropdown.Arrow.Text = ">"
644 Dropdown.Container:TweenSize(UDim2.new(1,0,0,0), "Out", "Quad", 0.2, true, function() if Dropdown.Closed then self.Main.ClipsDescendants = true end end)
645 else
646 CloseWindow(Dropdown)
647 self.Main.ClipsDescendants = false
648 Dropdown.Arrow.Text = "<"
649 if Dropdown.Order > 5 then
650 Dropdown.Container:TweenSize(UDim2.new(1,0,0,5*20), "Out", "Quad", 0.3, true)
651 else
652 Dropdown.Container:TweenSize(UDim2.new(1,0,0,Dropdown.Order*20), "Out", "Quad", 0.3, true)
653 end
654 end
655 end
656 end)
657
658 local SelectedCount = 0
659 local function AddOptions(Options)
660 for _,value in pairs(Options) do
661 Dropdown.Order = Dropdown.Order + 1
662 local State
663 local Pos = Dropdown.Order
664
665 local Option = Library:Create("TextButton", {
666 ZIndex = 3,
667 LayoutOrder = Dropdown.Order,
668 Size = UDim2.new(1,0,0,20),
669 BackgroundTransparency = 1,
670 BackgroundColor3 = Color3.fromRGB(255,255,255),
671 Text = value,
672 TextSize = 16,
673 TextColor3 = Color3.fromRGB(240,240,240),
674 Font = Enum.Font.SourceSans,
675 AutoButtonColor = false,
676 Parent = Dropdown.Contentholder
677 })
678
679 AddHighlight(Option)
680
681 Option.MouseButton1Click:connect(function()
682 Dropdown.Value = value
683 if Groupbox then
684 State = not State
685 SelectedCount = SelectedCount + (State and 1 or -1)
686 if State then
687 Option.BackgroundColor3 = Library.settings.Theme
688 Dropdown.Selected[value] = value
689 else
690 Option.BackgroundColor3 = Color3.fromRGB(255,255,255)
691 Dropdown.Selected[value] = nil
692 end
693 local Text = ""
694 for _,v in next, Dropdown.Selected do
695 Text = SelectedCount > 1 and Text .. v .. ", " or Text .. v
696 end
697 Dropdown.Label.Text = SelectedCount > 1 and string.sub(Text, 1, string.len(Text) - 2) or Text
698 if not State then return end
699 else
700 self.Main.ClipsDescendants = true
701 Dropdown.Label.Text = Dropdown.Value
702 Dropdown.Closed = true
703 Dropdown.Arrow.Text = ">"
704 Dropdown.Container:TweenSize(UDim2.new(1,0,0,0), "Out", "Quad", 0.2, true)
705 end
706 Dropdown.Callback(Dropdown.Value)
707 end)
708 Dropdown.Contentholder.CanvasSize = UDim2.new(0,0,0,Dropdown.Order*20)
709 end
710 end
711
712 AddOptions(Options)
713
714 if Groupbox then
715 function Dropdown:IsSelected(Value)
716 for _, v in next, self.Selected do
717 if v == Value then
718 return true
719 end
720 end
721 return false
722 end
723 end
724
725 function Dropdown:Refresh(options, keep)
726 if not keep then
727 Dropdown.Selected = {}
728 Dropdown.Label.Text = Groupbox and "" or options[1]
729 for _,v in pairs(Dropdown.Contentholder:GetChildren()) do
730 if v:IsA"TextButton" then
731 v:Destroy()
732 Dropdown.Order = Dropdown.Order - 1
733 Dropdown.Contentholder.CanvasSize = UDim2.new(0,0,0,Dropdown.Layout.AbsoluteContentSize.Y)
734 end
735 end
736 end
737 AddOptions(options)
738 end
739
740 if not Groupbox then
741 function Dropdown:SetValue(value)
742 Dropdown.Value = value
743 Dropdown.Label.Text = Dropdown.Value
744 Dropdown.Callback(Dropdown.Value)
745 end
746 end
747
748 Section.YSize = Section.YSize + 42
749 Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
750 table.insert(self.Options, Dropdown)
751 return Dropdown
752 end
753
754 function Section:AddKeybind(BindText, BindKey, Callback, Hold)
755 if BindKey then
756 if typeof(BindKey) == "function" then
757 Hold = Callback or false
758 Callback = BindKey
759 BindKey = Enum.KeyCode.F
760 end
761 if typeof(BindKey) == "string" then
762 if not keyCheck(Enum.KeyCode[BindKey:upper()], BlacklistedKeys) then
763 BindKey = Enum.KeyCode[BindKey:upper()]
764 end
765 if keyCheck(BindKey, WhitelistedMouseInputs) then
766 BindKey = Enum.UserInputType[BindKey:upper()]
767 end
768 end
769 if typeof(BindKey) == "boolean" then
770 Hold = BindKey
771 BindKey = Enum.KeyCode.F
772 end
773 end
774 local Bind = {Binding = false, Holding = false, Key = BindKey, Hold = Hold, Callback = Callback}
775 Bind.Callback = Callback or function() end
776
777 local Bounds = game:GetService('TextService'):GetTextSize(Bind.Key.Name, 16, Enum.Font.SourceSans, Vector2.new(math.huge, math.huge))
778 Bind.Main = Library:Create("TextButton", {
779 LayoutOrder = #self.Options + 1,
780 Size = UDim2.new(1,0,0,22),
781 BackgroundTransparency = 1,
782 BackgroundColor3 = Color3.fromRGB(220,220,220),
783 Text = " "..BindText,
784 TextSize = 16,
785 TextColor3 = Color3.fromRGB(255,255,255),
786 Font = Enum.Font.SourceSans,
787 TextXAlignment = Enum.TextXAlignment.Left,
788 AutoButtonColor = false,
789 Parent = self.Content
790 })
791
792 Bind.Label = Library:Create("TextLabel", {
793 Position = UDim2.new(1,-2,0,2),
794 Size = UDim2.new(0,-Bounds.X-8,0,18),
795 BackgroundColor3 = Color3.fromRGB(35,35,35),
796 BorderSizePixel = 0,
797 Text = Bind.Key.Name,
798 TextSize = 16,
799 TextColor3 = Color3.fromRGB(255,255,255),
800 Font = Enum.Font.SourceSans,
801 Parent = Bind.Main
802 })
803
804 AddHighlight(Bind.Main)
805
806 Bind.Main.InputBegan:connect(function(input)
807 if input.UserInputType == Enum.UserInputType.MouseButton1 then
808 Bind.Label.Text = "..."
809 Bind.Label.Size = UDim2.new(0,-Bind.Label.TextBounds.X-8,1,-4)
810 end
811 end)
812
813 Bind.Main.InputEnded:connect(function(input)
814 if input.UserInputType == Enum.UserInputType.MouseButton1 then
815 Bind.Binding = true
816 end
817 end)
818
819 local function SetKey(key)
820 Bind.Key = key
821 Bind.Label.Text = Bind.Key.Name
822 if string.match(tostring(key), "Mouse") then
823 Bind.Label.Text = string.sub(tostring(key), 20, 24)..string.sub(tostring(key), 31, 32)
824 end
825 Bind.Label.Size = UDim2.new(0,-Bind.Label.TextBounds.X-8,1,-4)
826 Bind.Callback(Bind.Key)
827 end
828
829 local Loop
830 local function DisconnectLoop()
831 if Loop then
832 Loop:Disconnect()
833 Bind.Callback(true)
834 end
835 end
836
837 UserInputService.InputBegan:connect(function(input)
838 if Bind.Binding then
839 if input.KeyCode == Enum.KeyCode.Backspace then
840 SetKey(Bind.Key)
841 Bind.Binding = false
842 else
843 if not keyCheck(input.KeyCode, BlacklistedKeys) then
844 SetKey(input.KeyCode)
845 Bind.Binding = false
846 end
847 if keyCheck(input.UserInputType, WhitelistedMouseInputs) then
848 SetKey(input.UserInputType)
849 Bind.Binding = false
850 end
851 end
852 DisconnectLoop()
853 else
854 if not Library.Open then
855 if input.KeyCode.Name == Bind.Key.Name or input.UserInputType.Name == Bind.Key.Name then
856 Bind.Holding = true
857 if Bind.Hold then
858 Loop = RunService.RenderStepped:connect(function()
859 Bind.Callback()
860 if Library.Open or Bind.Holding == false or not Bind.Hold then
861 DisconnectLoop()
862 end
863 end)
864 else
865 Bind.Callback()
866 end
867 end
868 end
869 end
870 end)
871
872 UserInputService.InputEnded:connect(function(input)
873 if input.KeyCode.Name == Bind.Key.Name or input.UserInputType.Name == Bind.Key.Name then
874 Bind.Holding = false
875 DisconnectLoop()
876 end
877 end)
878
879 function Bind:SetKeybind(Key)
880 if typeof(Key) == "string" then
881 if not keyCheck(Enum.KeyCode[Key:upper()], BlacklistedKeys) then
882 Key = Enum.KeyCode[Key:upper()]
883 end
884 if keyCheck(Enum.KeyCode[Key:upper()], WhitelistedMouseInputs) then
885 Key = Enum.UserInputType[Key:upper()]
886 end
887 end
888 DisconnectLoop()
889 SetKey(Key)
890 end
891
892 Section.YSize = Section.YSize + 22
893 Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
894 table.insert(self.Options, Bind)
895 return Bind
896 end
897
898 function Section:AddSlider(SliderText, MinVal, MaxVal, SetVal, Callback, Float)
899 if SetVal and typeof(SetVal) == "function" then
900 Float = Callback
901 Callback = SetVal
902 SetVal = 0
903 end
904 if Callback and typeof(Callback) == "number" then
905 Float = Callback
906 Callback = function() end
907 end
908 SetVal = SetVal or 0
909 if SetVal > MaxVal then
910 SetVal = MaxVal
911 end
912 if SetVal < MinVal then
913 SetVal = MinVal
914 end
915 local Slider = {Value = SetVal, Callback = Callback}
916 Slider.Callback = Callback or function() end
917 Float = Float or 1
918
919 Slider.Main = Library:Create("TextButton", {
920 LayoutOrder = #self.Options + 1,
921 Size = UDim2.new(1,0,0,42),
922 BackgroundTransparency = 1,
923 BackgroundColor3 = Color3.fromRGB(220,220,220),
924 Text = " "..SliderText,
925 TextSize = 16,
926 TextColor3 = Color3.fromRGB(255,255,255),
927 Font = Enum.Font.SourceSans,
928 TextXAlignment = Enum.TextXAlignment.Left,
929 TextYAlignment = Enum.TextYAlignment.Top,
930 AutoButtonColor = false,
931 Parent = self.Content
932 })
933
934 Slider.Holder = Library:Create("Frame", {
935 Position = UDim2.new(0,0,0,18),
936 Size = UDim2.new(1,0,0,17),
937 BackgroundTransparency = 1,
938 Parent = Slider.Main
939 })
940
941 Slider.Visualize = Library:Create("TextBox", {
942 Position = UDim2.new(0,0,0.6,0),
943 Size = UDim2.new(1,0,0.4,0),
944 BackgroundTransparency = 1,
945 Text = Slider.Value,
946 TextSize = 16,
947 TextColor3 = Color3.fromRGB(255,255,255),
948 Font = Enum.Font.SourceSans,
949 TextWrapped = true,
950 Parent = Slider.Holder
951 })
952
953 Slider.Bar = Library:Create("Frame", {
954 AnchorPoint = Vector2.new(0.5,0.5),
955 Position = UDim2.new(0.5,0,0.2,0),
956 Size = UDim2.new(1,-6,0,2),
957 BackgroundColor3 = Color3.fromRGB(35,35,35),
958 BorderSizePixel = 0,
959 Parent = Slider.Holder
960 })
961
962 Slider.Fill = Library:Create("Frame", {
963 BackgroundColor3 = Library.settings.Theme,
964 BorderSizePixel = 0,
965 Parent = Slider.Bar
966 })
967 if MinVal >= 0 then
968 Slider.Fill.Size = UDim2.new((SetVal - MinVal) / (MaxVal - MinVal),0,1,0)
969 else
970 Slider.Fill.Position = UDim2.new((0 - MinVal) / (MaxVal - MinVal),0,0,0)
971 Slider.Fill.Size = UDim2.new(SetVal / (MaxVal - MinVal),0,1,0)
972 end
973
974 Slider.Box = Library:Create("Frame", {
975 AnchorPoint = Vector2.new(0.5,0.5),
976 Position = UDim2.new((SetVal - MinVal) / (MaxVal - MinVal),0,0.5,0),
977 Size = UDim2.new(0,4,0,12),
978 BackgroundColor3 = Color3.fromRGB(5,5,5),
979 BorderSizePixel = 0,
980 Parent = Slider.Bar
981 })
982
983 AddHighlight(Slider.Main)
984
985 function Slider:SetValue(Value)
986 Value = Round(Value, Float)
987 if Value >= MaxVal then
988 Value = MaxVal
989 end
990 if Value <= MinVal then
991 Value = MinVal
992 end
993 Slider.Box.Position = UDim2.new((Value - MinVal) / (MaxVal - MinVal),0,0.5,0)
994 if MinVal >= 0 then
995 Slider.Fill.Size = UDim2.new((Value - MinVal) / (MaxVal - MinVal),0,1,0)
996 else
997 Slider.Fill.Size = UDim2.new(Value / (MaxVal - MinVal),0,1,0)
998 end
999 Slider.Value = Value
1000 Slider.Visualize.Text = Value
1001 Slider.Callback(Value)
1002 end
1003
1004 local Sliding
1005 local Modifying
1006 Slider.Main.InputBegan:connect(function(input)
1007 if input.UserInputType == Enum.UserInputType.MouseButton1 then
1008 if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
1009 Modifying = true
1010 Slider.Visualize:CaptureFocus()
1011 else
1012 Sliding = true
1013 Slider:SetValue(MinVal + ((input.Position.X - Slider.Bar.AbsolutePosition.X) / Slider.Bar.AbsoluteSize.X) * (MaxVal - MinVal))
1014 input.Changed:connect(function()
1015 if input.UserInputState == Enum.UserInputState.End then
1016 Sliding = false
1017 end
1018 end)
1019 end
1020 end
1021 end)
1022
1023 Slider.Visualize.Focused:connect(function()
1024 if not Modifying then
1025 Slider.Visualize:ReleaseFocus()
1026 end
1027 end)
1028
1029 Slider.Visualize.FocusLost:connect(function()
1030 if Modifying then
1031 if tonumber(Slider.Visualize.Text) then
1032 Slider:SetValue(tonumber(Slider.Visualize.Text))
1033 else
1034 Slider.Visualize.Text = Slider.Value
1035 end
1036 end
1037 Modifying = false
1038 end)
1039
1040 UserInputService.InputChanged:connect(function(input)
1041 if Modifying then
1042 if input.KeyCode == Enum.KeyCode.Escape or input.KeyCode == Enum.KeyCode.Space then
1043 Slider.Visualize:ReleaseFocus()
1044 end
1045 end
1046 if input.UserInputType == Enum.UserInputType.MouseMovement and Sliding then
1047 Slider:SetValue(MinVal + ((input.Position.X - Slider.Bar.AbsolutePosition.X) / Slider.Bar.AbsoluteSize.X) * (MaxVal - MinVal))
1048 end
1049 end)
1050
1051 Section.YSize = Section.YSize + 42
1052 Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
1053 table.insert(self.Options, Slider)
1054 return Slider
1055 end
1056
1057 function Section:AddCP(ColorText, NewColor, Alpha, Callback)
1058 if Alpha then
1059 if typeof(Alpha) == "function" then
1060 Callback = Alpha
1061 Alpha = 1
1062 end
1063 end
1064 if NewColor then
1065 if typeof(NewColor) == "function" then
1066 Callback = NewColor
1067 NewColor = Color3.fromRGB(255,255,255)
1068 Alpha = 1
1069 end
1070 if typeof(NewColor) == "number" then
1071 Callback = Alpha
1072 Alpha = NewColor
1073 NewColor = Color3.fromRGB(255,255,255)
1074 end
1075 end
1076 Alpha = Alpha or 1
1077 local Color = {Color = NewColor, Alpha = Alpha, Closed = true, Callback = Callback}
1078 Color.Callback = Callback or function() end
1079 local Rain
1080 local Hue, Sat, Val = Color3.toHSV(Color3.fromRGB(NewColor.r*255,NewColor.g*255,NewColor.b*255))
1081 if Hue == 0 then
1082 Hue = 1
1083 end
1084
1085 Color.Main = Library:Create("TextButton", {
1086 LayoutOrder = #self.Options + 1,
1087 Size = UDim2.new(1,0,0,22),
1088 BackgroundTransparency = 1,
1089 BackgroundColor3 = Color3.fromRGB(220,220,220),
1090 Text = " "..tostring(ColorText),
1091 TextColor3 = Color3.fromRGB(255,255,255),
1092 Font = Enum.Font.SourceSans,
1093 TextSize = 16,
1094 TextXAlignment = Enum.TextXAlignment.Left,
1095 AutoButtonColor = false,
1096 Parent = self.Content,
1097 })
1098
1099 Color.Visualizebg = Library:Create("ImageLabel", {
1100 Position = UDim2.new(1,-2,0,2),
1101 Size = UDim2.new(0,-18,0,18),
1102 BorderSizePixel = 0,
1103 Image = "rbxassetid://3887014957",
1104 ScaleType = Enum.ScaleType.Tile,
1105 TileSize = UDim2.new(0,9,0,9),
1106 Parent = Color.Main
1107 })
1108
1109 Color.Visualize = Library:Create("Frame", {
1110 Size = UDim2.new(1,0,1,0),
1111 BackgroundTransparency = 1 - Color.Alpha,
1112 BackgroundColor3 = Color.Color,
1113 BorderSizePixel = 0,
1114 Parent = Color.Visualizebg,
1115 })
1116
1117 Color.Container = Library:Create("Frame", {
1118 Position = UDim2.new(1,4,0,0),
1119 Size = UDim2.new(0,200,0,0),
1120 BackgroundColor3 = Color3.fromRGB(40,40,40),
1121 BorderSizePixel = 0,
1122 Parent = Color.Visualize
1123 })
1124
1125 Color.SubContainer = Library:Create("Frame", {
1126 Size = UDim2.new(1,0,1,0),
1127 BackgroundTransparency = 1,
1128 ClipsDescendants = true,
1129 Parent = Color.Container
1130 })
1131
1132 Color.SatVal = Library:Create("ImageLabel", {
1133 ZIndex = 2,
1134 Position = UDim2.new(0,5,0,5),
1135 Size = UDim2.new(1,-30,1,-30),
1136 BackgroundColor3 = Color3.fromHSV(Hue,1,1),
1137 BorderSizePixel = 0,
1138 Image = "rbxassetid://4155801252",
1139 Parent = Color.SubContainer
1140 })
1141
1142 Color.Pointer = Library:Create("Frame", {
1143 ZIndex = 2,
1144 AnchorPoint = Vector2.new(0.5,0.5),
1145 Position = UDim2.new(Sat,0,1-Val,0),
1146 Size = UDim2.new(0,4,0,4),
1147 BackgroundTransparency = 0.4,
1148 BackgroundColor3 = Color3.fromRGB(255,255,255),
1149 BorderColor3 = Color3.fromRGB(0,0,0),
1150 Parent = Color.SatVal
1151 })
1152
1153 Color.Hue = Library:Create("ImageLabel", {
1154 ZIndex = 2,
1155 AnchorPoint = Vector2.new(1,0),
1156 Position = UDim2.new(1,-5,0,5),
1157 Size = UDim2.new(0,15,1,-30),
1158 BackgroundTransparency = 0,
1159 Image = "rbxassetid://4174584406",
1160 Parent = Color.SubContainer
1161 })
1162
1163 Color.Pointer1 = Library:Create("TextLabel", {
1164 ZIndex = 2,
1165 AnchorPoint = Vector2.new(0,0.5),
1166 Position = UDim2.new(1,-10,1-Hue,0),
1167 Size = UDim2.new(0,16,0,16),
1168 BackgroundTransparency = 1,
1169 Text = utf8.char(9668),
1170 TextColor3 = Color3.fromRGB(0,0,0),
1171 TextStrokeTransparency = 0,
1172 TextStrokeColor3 = Color3.fromRGB(130,130,130),
1173 TextSize = 6,
1174 Parent = Color.Hue
1175 })
1176
1177 Color.Alphabg = Library:Create("ImageLabel", {
1178 ZIndex = 2,
1179 Position = UDim2.new(0,5,1,-20),
1180 Size = UDim2.new(1,-30,0,15),
1181 BorderSizePixel = 0,
1182 Image = "rbxassetid://3887014957",
1183 ScaleType = Enum.ScaleType.Tile,
1184 TileSize = UDim2.new(0,10,0,10),
1185 Parent = Color.SubContainer
1186 })
1187
1188 Color.Alphaimg = Library:Create("ImageLabel", {
1189 ZIndex = 2,
1190 Size = UDim2.new(1,0,1,0),
1191 BackgroundTransparency = 1,
1192 Image = "rbxassetid://3887017050",
1193 ImageColor3 = NewColor,
1194 Parent = Color.Alphabg
1195 })
1196
1197 Color.Pointer2 = Library:Create("TextLabel", {
1198 ZIndex = 2,
1199 AnchorPoint = Vector2.new(0.5,0),
1200 Position = UDim2.new(1 - Color.Alpha,0,1,-10),
1201 Size = UDim2.new(0,16,0,16),
1202 BackgroundTransparency = 1,
1203 Text = utf8.char(9650),
1204 TextColor3 = Color3.fromRGB(0,0,0),
1205 TextStrokeTransparency = 0,
1206 TextStrokeColor3 = Color3.fromRGB(130,130,130),
1207 TextSize = 6,
1208 Parent = Color.Alphabg
1209 })
1210
1211 Color.Rainbow = Library:Create("Frame", {
1212 ZIndex = 2,
1213 AnchorPoint = Vector2.new(1,1),
1214 Position = UDim2.new(1,-5,1,-5),
1215 Size = UDim2.new(0,15,0,15),
1216 BackgroundTransparency = 0.4,
1217 BackgroundColor3 = Color3.fromRGB(20,20,20),
1218 BorderSizePixel = 0,
1219 Parent = Color.SubContainer
1220 })
1221
1222 spawn(function()
1223 while wait() do
1224 Color.Rainbow.BackgroundColor3 = ChromaColor
1225 end
1226 end)
1227
1228 AddHighlight(Color.Main)
1229
1230 Color.Main.InputBegan:connect(function(input)
1231 if input.UserInputType == Enum.UserInputType.MouseButton1 then
1232 Color.Closed = not Color.Closed
1233 if Color.Closed then
1234 Color.Container:TweenSize(UDim2.new(0,200,0,0), "Out", "Quad", 0.2, true, function() if Color.Closed then self.Main.ClipsDescendants = true end end)
1235 else
1236 CloseWindow(Color)
1237 self.Main.ClipsDescendants = false
1238 Color.Container:TweenSize(UDim2.new(0,200,0,200), "Out", "Quad", 0.3, true)
1239 end
1240 end
1241 end)
1242
1243 local Modifying
1244 local Modifying1
1245 local Modifying2
1246
1247 function Color:UpdateSatVal(InputPos)
1248 local x = (InputPos.X - Color.SatVal.AbsolutePosition.X) / Color.SatVal.AbsoluteSize.X
1249 local y = (InputPos.Y - Color.SatVal.AbsolutePosition.Y) / Color.SatVal.AbsoluteSize.Y
1250 x = tonumber(string.format("%.2f", x))
1251 y = tonumber(string.format("%.2f", y))
1252 y = y > 1 and 1 or y < 0 and 0 or y
1253 x = x > 1 and 1 or x < 0 and 0 or x
1254 Color.Pointer.Position = UDim2.new(x,0,y,0)
1255 Sat = x
1256 Val = 1-y
1257 Color.Color = Color3.fromHSV(Hue, Sat, Val)
1258 Color.Visualize.BackgroundColor3 = Color.Color
1259 Color.Alphaimg.ImageColor3 = Color.Color
1260 Color.Callback(Color.Color, Color.Alpha)
1261 end
1262
1263 function Color:UpdateHue(InputPos)
1264 local y = (InputPos.Y - Color.Hue.AbsolutePosition.Y) / Color.Hue.AbsoluteSize.Y
1265 y = tonumber(string.format("%.2f", y))
1266 y = y > 1 and 1 or y < 0 and 0 or y
1267 Hue = 1-y
1268 Color.Color = Color3.fromHSV(Hue, Sat, Val)
1269 Color.Pointer1.Position = UDim2.new(1,-10,1-Hue,0)
1270 Color.Visualize.BackgroundColor3 = Color.Color
1271 Color.SatVal.BackgroundColor3 = Color3.fromHSV(Hue,1,1)
1272 Color.Alphaimg.ImageColor3 = Color.Color
1273 Color.Callback(Color.Color, Color.Alpha)
1274 end
1275
1276 function Color:SetAlpha(Alpha)
1277 local x = (Alpha - Color.Alphabg.AbsolutePosition.X) / Color.Alphabg.AbsoluteSize.X
1278 x = tonumber(string.format("%.2f", x))
1279 x = x > 1 and 1 or x < 0 and 0 or x
1280 Color.Alpha = 1 - x
1281 Color.Pointer2.Position = UDim2.new(1 - Color.Alpha,0,1,-10)
1282 Color.Visualize.BackgroundTransparency = 1 - Color.Alpha
1283 Color.Callback(Color.Color, Color.Alpha)
1284 end
1285
1286 UserInputService.InputChanged:connect(function(input)
1287 if not Rain and input.UserInputType == Enum.UserInputType.MouseMovement and Modifying or Modifying1 or Modifying2 then
1288 local Mouse = UserInputService:GetMouseLocation() + Vector2.new(0, -36)
1289 if Modifying then
1290 Color:UpdateSatVal(Mouse)
1291 end
1292 if Modifying1 then
1293 Color:UpdateHue(Mouse)
1294 end
1295 if Modifying2 then
1296 Color:SetAlpha(Mouse.X)
1297 end
1298 end
1299 end)
1300
1301 Color.SatVal.InputBegan:connect(function(input)
1302 if not Rain and input.UserInputType == Enum.UserInputType.MouseButton1 then
1303 Modifying = true
1304 Color:UpdateSatVal(input.Position)
1305 input.Changed:connect(function()
1306 if input.UserInputState == Enum.UserInputState.End then
1307 Modifying = false
1308 end
1309 end)
1310 end
1311 end)
1312
1313 Color.SatVal.InputChanged:connect(function(input)
1314 if not Rain and input.UserInputType == Enum.UserInputType.MouseMovement and Modifying then
1315 Color:UpdateSatVal(input.Position)
1316 end
1317 end)
1318
1319 Color.Hue.InputBegan:connect(function(input)
1320 if not Rain and input.UserInputType == Enum.UserInputType.MouseButton1 then
1321 Modifying1 = true
1322 Color:UpdateHue(input.Position)
1323 input.Changed:connect(function()
1324 if input.UserInputState == Enum.UserInputState.End then
1325 Modifying1 = false
1326 end
1327 end)
1328 end
1329 end)
1330
1331 Color.Hue.InputChanged:connect(function(input)
1332 if not Rain and input.UserInputType == Enum.UserInputType.MouseMovement and Modifying1 then
1333 Color:UpdateHue(input.Position)
1334 end
1335 end)
1336
1337 Color.Alphabg.InputBegan:connect(function(input)
1338 if input.UserInputType == Enum.UserInputType.MouseButton1 then
1339 Modifying2 = true
1340 Color:SetAlpha(input.Position.X)
1341 input.Changed:connect(function()
1342 if input.UserInputState == Enum.UserInputState.End then
1343 Modifying2 = false
1344 end
1345 end)
1346 end
1347 end)
1348
1349 Color.Alphabg.InputChanged:connect(function(input)
1350 if input.UserInputType == Enum.UserInputType.MouseMovement and Modifying2 then
1351 Color:SetAlpha(input.Position.X)
1352 end
1353 end)
1354
1355 local OldColor
1356 local RainbowLoop
1357 Color.Rainbow.InputBegan:connect(function(input)
1358 if input.UserInputType == Enum.UserInputType.MouseButton1 then
1359 Rain = not Rain
1360 Color.Rainbow.BackgroundTransparency = Rain and 1 or 0.4
1361 if Rain then
1362 OldColor = Color.Color
1363 RainbowLoop = RunService.RenderStepped:connect(function()
1364 Color.Color = ChromaColor
1365 Color.Callback(Color.Color, Color.Alpha)
1366 end)
1367 else
1368 RainbowLoop:Disconnect()
1369 Color.Color = OldColor
1370 Color.Callback(Color.Color, Color.Alpha)
1371 end
1372 end
1373 end)
1374
1375 Section.YSize = Section.YSize + 22
1376 Section.Main.Size = UDim2.new(0,200,0,Section.YSize)
1377 table.insert(self.Options, Color)
1378 return Color
1379 end
1380
1381 table.insert(self.Sections, Section)
1382 return Section
1383 end
1384
1385 table.insert(self.Tabs, Tab)
1386 return Tab
1387 end
1388end
1389do -- ESP Library
1390 local Players = game:GetService'Players';
1391 local RunService = game:GetService'RunService';
1392 local HttpService = game:GetService'HttpService';
1393 local LocalPlayer = Players.LocalPlayer;
1394 local Camera = workspace.CurrentCamera;
1395
1396 uESP = {
1397 Enabled = false;
1398 Settings = {
1399 Box3D = false;
1400 DrawBox = true;
1401 DrawDistance = true;
1402 DrawNames = true;
1403 DrawTracers = false;
1404 MaxDistance = 10000;
1405 RefreshRate = 100;
1406 TextSize = 18;
1407 TextOutline = true;
1408 VisibilityCheck = false;
1409 TeamCheck = false;
1410 HeadDots = false;
1411 TeamColor = Color3.new(0, 1, 0);
1412 EnemyColor = Color3.new(1, 0, 0);
1413 };
1414 RenderList = {};
1415 RenderingCache = {};
1416 LastTick = 0;
1417 };
1418
1419 local Active = {};
1420 local function Set(t, i, v)
1421 t[i] = v;
1422 end
1423
1424 local function Combine(...)
1425 local Output = {};
1426 for i, v in pairs{...} do
1427 if typeof(v) == 'table' then
1428 table.foreach(v, function(i, v)
1429 Output[i] = v;
1430 end)
1431 end
1432 end
1433 return Output
1434 end
1435
1436 function NewDrawing(InstanceName)
1437 local Instance = Drawing.new(InstanceName);
1438 return (function(Properties)
1439 for i, v in pairs(Properties) do
1440 pcall(Set, Instance, i, v);
1441 end
1442 return Instance;
1443 end)
1444 end
1445
1446 function IsTeam(Player)
1447 if Player == LocalPlayer then return true; end
1448 if Player.Neutral and LocalPlayer.Neutral then
1449 return true;
1450 end
1451 if Player.TeamColor == LocalPlayer.TeamColor then
1452 return true;
1453 end
1454 return false;
1455 end
1456
1457 local DrawingTypes = {
1458 Text = true;
1459 Line = true;
1460 Square = true;
1461 Circle = true;
1462 Rectangle = true;
1463 Triangle = true;
1464 Image = true;
1465 }
1466
1467 function CleanDrawings(Table, Cache)
1468 Cache = Cache or {};
1469 if Cache[Table] or typeof(Table) ~= 'table' then return end
1470 Cache[Table] = true;
1471 for i, v in pairs(Table) do
1472 if DrawingTypes[typeof(v)] then
1473 v:Remove();
1474 end
1475 CleanDrawings(v, Cache);
1476 end
1477 end
1478
1479 local Box = {};
1480
1481 local Colors = {
1482 Color3.new(1, 0, 0);
1483 Color3.new(0, 1, 0);
1484 Color3.new(0, 0, 1);
1485 Color3.new(1, 0, 1);
1486 Color3.new(1, 1, 0);
1487 Color3.new(0, 1, 1);
1488 }
1489
1490 function Box.new(Instance)
1491 local Box = {
1492 Instance = Instance;
1493 Cache = {};
1494 Lines = {};
1495 Was3D = uESP.Settings.Box3D;
1496 };
1497
1498 function Box:Update(Properties) -- a lot of shorthand code im sorry
1499 local Properties = Properties or {};
1500
1501 local Lines = self.Lines or {};
1502 local Instance = (self.Instance.ClassName == 'Model') and self.Instance or ((self.Instance.Parent.ClassName == 'Model') and self.Instance.Parent or self.Instance);
1503
1504 if Instance == nil then
1505 self:Remove();
1506 end
1507
1508 local Color = Properties.Color or Color3.new(1, 1, 1);
1509
1510 local Properties = Combine({
1511 Transparency = 1;
1512 Thickness = 3;
1513 Color = Color;
1514 Visible = true;
1515 }, Properties);
1516
1517 local Position, Size;
1518
1519 if Instance.ClassName == 'Model' then
1520 Position, Size = Instance:GetBoundingBox();
1521 elseif Instance:IsA'BasePart' then
1522 Position, Size = Instance.CFrame, Instance.Size;
1523 else
1524 return;
1525 end
1526
1527 if not uESP.Settings.Box3D and self.Was3D then
1528 self.Was3D = false;
1529 CleanDrawings(Lines);
1530 Lines = {};
1531 elseif uESP.Settings.Box3D and not self.Was3D then
1532 self.Was3D = true;
1533 CleanDrawings(Lines);
1534 Lines = {};
1535 end
1536
1537 if Size.X < 16 and Size.Y < 16 and Size.Z < 16 then
1538 if uESP.Settings.Box3D then
1539 local Positions = {};
1540
1541 Size = Size / 2;
1542 local Minimum, Maximum = -Size, Size
1543
1544 local Corners = { -- https://www.unknownUtilss.me/forum/counterstrike-global-offensive/175021-3d-box-esp.html
1545 [0] = CFrame.new(Minimum.x, Minimum.y, Minimum.z);
1546 [1] = CFrame.new(Minimum.x, Maximum.y, Minimum.z);
1547 [2] = CFrame.new(Maximum.x, Maximum.y, Minimum.z);
1548 [3] = CFrame.new(Maximum.x, Minimum.y, Minimum.z);
1549 [4] = CFrame.new(Minimum.x, Minimum.y, Maximum.z);
1550 [5] = CFrame.new(Minimum.x, Maximum.y, Maximum.z);
1551 [6] = CFrame.new(Maximum.x, Maximum.y, Maximum.z);
1552 [7] = CFrame.new(Maximum.x, Minimum.y, Maximum.z);
1553 }
1554
1555 for i, v in pairs(Corners) do
1556 local SP = Camera:WorldToViewportPoint((Position * v).p);
1557 Positions[i] = Vector2.new(SP.X, SP.Y);
1558 end
1559
1560 for i = 1, 4 do
1561 Lines[i] = Lines[i] or {};
1562
1563 Lines[i][1] = Lines[i][1] or NewDrawing'Line'(Properties);
1564 Lines[i][2] = Lines[i][2] or NewDrawing'Line'(Properties);
1565 Lines[i][3] = Lines[i][3] or NewDrawing'Line'(Properties);
1566
1567 Lines[i][1].Color = Color;
1568 Lines[i][2].Color = Color;
1569 Lines[i][3].Color = Color;
1570
1571 Lines[i][1].From = Positions[i - 1];
1572 Lines[i][1].To = Positions[i % 4];
1573
1574 Lines[i][2].From = Positions[i - 1];
1575 Lines[i][2].To = Positions[i + 3];
1576
1577 Lines[i][3].From = Positions[i + 3];
1578 Lines[i][3].To = Positions[i % 4 + 4];
1579 end
1580 else
1581 local Positions = {};
1582
1583 Size = Size / 2;
1584 local Minimum, Maximum = -Size, Size
1585
1586 local Corners = {
1587 CFrame.new(Maximum.x, Maximum.y, 0);
1588 CFrame.new(-Maximum.x, Maximum.y, 0);
1589 CFrame.new(Minimum.x, Minimum.y, 0);
1590 CFrame.new(-Minimum.x, Minimum.y, 0);
1591 }
1592
1593 for i, v in pairs(Corners) do
1594 local SP = Camera:WorldToViewportPoint((Position * v).p);
1595 Positions[i] = Vector2.new(SP.X, SP.Y);
1596 end
1597
1598 Lines[1] = Lines[1] or {};
1599 -- these stupid [1]'s are there because i'm too lazy to make a check if box is 2d or 3d even tho its easy/shrug
1600 Lines[1][1] = Lines[1][1] or NewDrawing'Line'(Properties);
1601 Lines[1][2] = Lines[1][2] or NewDrawing'Line'(Properties);
1602 Lines[1][3] = Lines[1][3] or NewDrawing'Line'(Properties);
1603 Lines[1][4] = Lines[1][4] or NewDrawing'Line'(Properties);
1604
1605 Lines[1][1].Color = Color;
1606 Lines[1][2].Color = Color;
1607 Lines[1][3].Color = Color;
1608 Lines[1][4].Color = Color;
1609
1610 Lines[1][1].From = Positions[1];
1611 Lines[1][1].To = Positions[2];
1612
1613 Lines[1][2].From = Positions[2];
1614 Lines[1][2].To = Positions[3];
1615
1616 Lines[1][3].From = Positions[3];
1617 Lines[1][3].To = Positions[4];
1618
1619 Lines[1][4].From = Positions[4];
1620 Lines[1][4].To = Positions[1];
1621 end
1622
1623 self.Lines = Lines;
1624 end
1625 end
1626
1627 function Box:SetVisible(boolean)
1628 for i, v in pairs(self.Lines) do
1629 for _, Line in pairs(v) do
1630 Line.Visible = boolean;
1631 end
1632 end
1633 end
1634
1635 function Box:Remove()
1636 for i, v in pairs(self.Lines) do
1637 for _, Line in pairs(v) do
1638 Line.Visible = false;
1639 Line:Remove();
1640 end
1641 end
1642
1643 self.Update = function () end;
1644 end
1645
1646 return setmetatable(Box, {
1647 __tostring = function()
1648 return 'Box';
1649 end;
1650 });
1651 end
1652
1653 function uESP:Toggle()
1654 self.Enabled = not self.Enabled;
1655 end
1656
1657 function uESP:UpdateSetting(Key, Value)
1658 if Settings[Key] ~= nil and typeof(Settings[Key]) == typeof(Value) then -- prevent setting shit like boolean to integer
1659 Settings[Key] = Value;
1660 end
1661 end
1662
1663 function uESP:AddToRenderList(Instance, ...)
1664 if typeof(Instance) ~= 'Instance' then return end
1665 if not Instance:IsA'BasePart' then return end
1666
1667 rawset(self.RenderList, Instance, {...});
1668 end
1669
1670 function uESP:DrawInstance(Instance, Properties)
1671 Properties = Properties or {};
1672
1673 --
1674 end
1675
1676 function uESP:DrawPlayer(Player)
1677
1678 Active[Player] = true;
1679
1680 local Character = Player.Character;
1681
1682 if not Character or not Character:IsDescendantOf(workspace) then return end
1683 if Player == LocalPlayer then return end;
1684
1685 local Cache = uESP.RenderingCache[Character] or {};
1686
1687 Cache.Box = Cache.Box or Box.new(Character);
1688 Cache.NameTag = Cache.NameTag or NewDrawing'Text'{
1689 Center = true;
1690 Outline = uESP.Settings.TextOutline;
1691 Size = uESP.Settings.TextSize;
1692 Visible = true;
1693 };
1694 Cache.DistanceTag = Cache.DistanceTag or NewDrawing'Text'{
1695 Center = true;
1696 Outline = uESP.Settings.TextOutline;
1697 Size = uESP.Settings.TextSize;
1698 Visible = true;
1699 };
1700 Cache.Tracer = Cache.Tracer or NewDrawing'Line'{
1701 Transparency = 1;
1702 Thickness = 2;
1703 };
1704 Cache.HeadDots = Cache.HeadDots or NewDrawing'Circle'{
1705 Filled = true;
1706 NumSides = 30;
1707 }
1708
1709 uESP.RenderingCache[Character] = Cache;
1710
1711 if uESP.Enabled and Player.Character:FindFirstChild'Head' then
1712 local Head = Character.Head;
1713 local Humanoid = Character:FindFirstChildOfClass'Humanoid';
1714 if Head then
1715 local ScreenPosition, Visible = Camera:WorldToViewportPoint(Head.Position + Vector3.new(0, Head.Size.Y / 2, 0));
1716 local ScreenPositionOnly = Camera:WorldToViewportPoint(Head.Position);
1717 local Scale = Head.Size.Y / 2;
1718 local Color = uESP.Settings.TeamCheck and not Player.Neutral and Player.TeamColor.Color or IsTeam(Player) and uESP.Settings.TeamColor or uESP.Settings.EnemyColor
1719
1720 if Humanoid and Humanoid.Health < 1 then
1721 Visible = false;
1722 end
1723
1724 if Visible then
1725 if uESP.Settings.DrawNames then
1726 LocalPlayer.NameDisplayDistance = 0;
1727 Cache.NameTag.Color = Color;
1728 Cache.NameTag.Position = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
1729 Cache.NameTag.Text = Player.Name;
1730 Cache.NameTag.Visible = true;
1731 else
1732 LocalPlayer.NameDisplayDistance = 100;
1733 Cache.NameTag.Visible = false;
1734 end
1735 if uESP.Settings.HeadDots then
1736 local Top = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, Scale, 0)).p);
1737 local Bottom = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, -Scale, 0)).p);
1738 local Radius = (Top - Bottom).y;
1739 Cache.HeadDots.Visible = true
1740 Cache.HeadDots.Position = Vector2.new(ScreenPositionOnly.X, ScreenPositionOnly.Y)
1741 Cache.HeadDots.Color = Color
1742 Cache.HeadDots.Radius = Radius
1743 else
1744 Cache.HeadDots.Visible = false
1745 end
1746 if uESP.Settings.DrawDistance then
1747 Cache.DistanceTag.Color = Color3.new(1, 1, 1);
1748 Cache.DistanceTag.Position = Vector2.new(ScreenPosition.X, ScreenPosition.Y + (Cache.NameTag.TextBounds.Y));
1749 Cache.DistanceTag.Text = '[' .. math.floor(ScreenPosition.Z) .. ' Studs]';
1750 Cache.DistanceTag.Visible = true;
1751 else
1752 Cache.DistanceTag.Visible = false;
1753 end
1754 if uESP.Settings.DrawTracers then
1755 Cache.Tracer.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y);
1756 Cache.Tracer.To = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
1757 Cache.Tracer.Color = Color;
1758 Cache.Tracer.Visible = true;
1759 else
1760 Cache.Tracer.Visible = false;
1761 end
1762 if ScreenPosition.Z >= 1.5 then
1763 Cache.Box:SetVisible(true);
1764 else
1765 Cache.Box:SetVisible(false);
1766 end
1767 Cache.Box:Update({Color = Color});
1768 else
1769 Cache.NameTag.Visible = false;
1770 Cache.DistanceTag.Visible = false;
1771 Cache.Tracer.Visible = false;
1772 Cache.HeadDots.Visible = false;
1773 Cache.Box:SetVisible(false);
1774 end
1775 end
1776 else
1777 Cache.NameTag.Visible = false;
1778 Cache.DistanceTag.Visible = false;
1779 Cache.Tracer.Visible = false;
1780 Cache.HeadDots.Visible = false;
1781 Cache.Box:SetVisible(false);
1782 end
1783
1784 uESP.RenderingCache[Character] = Cache;
1785 Active[Player] = false;
1786 end
1787 function uESP:Draw()
1788 if uESP.Settings.RefreshRate > 1 and (tick() - uESP.LastTick) <= (uESP.Settings.RefreshRate / 1000) then
1789 return;
1790 end
1791
1792 for i, v in pairs(Players:GetPlayers()) do
1793 uESP:DrawPlayer(v);
1794 end
1795 for i, v in pairs(self.RenderList) do
1796 uESP:DrawInstance(i, v);
1797 end
1798
1799 for i, v in pairs(self.RenderingCache) do -- Remove trash
1800 if not i:IsDescendantOf(game) then
1801 CleanDrawings(self.RenderingCache[i]);
1802 self.RenderingCache[i] = nil;
1803 end
1804 end
1805 end
1806
1807 function uESP:Unload()
1808 RunService:UnbindFromRenderStep(shared.ESPAPIName);
1809 CleanDrawings(uESP.RenderingCache);
1810 uESP = {};
1811 end
1812
1813 function uESP:Init()
1814 pcall(function() uESP:Unload() end);
1815 wait(1/4);
1816
1817 RunService:BindToRenderStep("esp", 1, function()
1818 uESP:Draw();
1819 end);
1820 end
1821end
1822do -- Utils API
1823 Utils.AddLaunch = function(LaunchName, func)
1824 getfenv(1)[LaunchName] = {}
1825 getfenv(1)[LaunchName].launch = function()
1826 func()
1827 end
1828 end
1829 Utils.FindValue = function(Table, Value)
1830 local Found = false
1831 for i, v in next, Table do
1832 if Value == v then
1833 Found = true
1834 end
1835 end
1836 return Found
1837 end
1838 Utils.FindConstant = function(func, ...)
1839 local args = {...}
1840 local ConstantsFound = 0
1841 local Found = false
1842 pcall(function()
1843 for i, v in next, debug.getconstants(func) do
1844 if Utils.FindValue(args, v) then
1845 ConstantsFound = ConstantsFound + 1
1846 end
1847 end
1848 end)
1849 if #args == ConstantsFound then
1850 Found = true
1851 end
1852 return Found
1853 end
1854 Utils.SetConstant = function(func, Constant, NewConstant)
1855 pcall(function()
1856 for i, v in next, debug.getconstants(func) do
1857 if v == Constant then
1858 debug.setconstant(func, i, NewConstant)
1859 end
1860 end
1861 end)
1862 end
1863 Utils.getClosestPlayer = function()
1864 local joe = game:GetService("Workspace").CurrentCamera
1865 local closestPlayer = nil
1866 local shortestDistance = math.huge
1867 local lp = game:GetService("Players").LocalPlayer
1868 for i, v in pairs(game:GetService("Players"):GetPlayers()) do
1869 if v ~= lp and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
1870 local magnitude = (v.Character.HumanoidRootPart.Position - lp.Character.HumanoidRootPart.Position).magnitude
1871
1872 if magnitude < shortestDistance then
1873 closestPlayer = v
1874 shortestDistance = magnitude
1875 end
1876 end
1877 end
1878
1879 return closestPlayer
1880 end
1881end
1882Utils.AddLaunch("ESP", function()
1883 local ESP = universal:AddSection("ESP")
1884 uESP:Init()
1885 local Enable = ESP:AddToggle("Enable", function(toggle)
1886 uESP.Enabled = toggle
1887 end)
1888 ESP:AddToggle("Tracers", function(toggle)
1889 uESP.Settings.DrawTracers = toggle
1890 end)
1891 ESP:AddToggle("Team Check", function(toggle)
1892 uESP.Settings.TeamCheck = toggle
1893 end)
1894 ESP:AddToggle("Head Dots", function(toggle) uESP.Settings.HeadDots = toggle end)
1895 ESP:AddCP("Team Color", uESP.Settings.TeamColor, function(Color, Alpha)
1896 uESP.Settings.TeamColor = Color
1897 end)
1898 ESP:AddCP("Enemy Color", uESP.Settings.EnemyColor, function(Color, Alpha)
1899 uESP.Settings.EnemyColor = Color
1900 end)
1901end)
1902Utils.AddLaunch("Universal", function()
1903 universal = Library:CreateTab("Universal")
1904 ESP.launch()
1905end)
1906Utils.AddLaunch("PrisonLife", function()
1907 local Game = window:AddSection("Main")
1908 local TeleportsWindow = window:AddSection("Teleports")
1909 local CharactersCheat = window:AddSection("Character Cheats")
1910 local NoClipToggle = CharactersCheat:AddToggle("NoClip")
1911 --local TeamsWindow = window:AddSection("Teams")
1912 local ToolTip = require(game.ReplicatedStorage.Modules_client.TooltipModule)
1913 local WalkSpeedEnabled = false
1914 local GameMT, MTBackups = getrawmetatable(game), {}
1915 for i, v in next, GameMT do MTBackups[i] = v end
1916 local Teleports = {
1917 ["Guard Base"] = CFrame.new(802, 99, 2270),
1918 ["Criminal Base"] = CFrame.new(-943, 96, 2055),
1919 ["Police Room"] = CFrame.new(834.972, 99.989, 2275.318),
1920 ["Yard"] = CFrame.new(779.092, 96.001, 2451.114),
1921 ["Cafeteria"] = CFrame.new(930, 97.54, 2291),
1922 ["Prison Cells"] = CFrame.new(918, 97.73, 2447),
1923 ["Sewer Enterance"] = CFrame.new(917.174, 76.406, 2426.199),
1924 ["Sewer Exit"] = CFrame.new(916.506, 96.285, 2111.396)
1925 }
1926 Utils.GunMod = function()
1927 for i, v in next, getgc(true) do
1928 if type(v) == "table" and rawget(v, "MaxAmmo") then
1929 v.AutoFire = true
1930 v.MaxAmmo = math.huge
1931 v.CurrentAmmo = math.huge
1932 v.FireRate = 0
1933 v.Bullets = 10
1934 end
1935 end
1936 end
1937 Utils.Teleport = function(pos)
1938 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
1939 end
1940 Utils.SetWalkSpeed = function(Speed)
1941 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Speed
1942 end
1943 Utils.GetWalkSpeed = function()
1944 return game.Players.LocalPlayer.Character.Humanoid.WalkSpeed
1945 end
1946 Utils.GetJumpPower = function()
1947 return game.Players.LocalPlayer.Character.Humanoid.JumpPower
1948 end
1949 Utils.SetJumpPower = function(Speed)
1950 game.Players.LocalPlayer.Character.Humanoid.JumpPower = Speed
1951 end
1952 Utils.GetTeam = function(TeamName)
1953 return game.Teams[TeamName].TeamColor.Name
1954 end
1955 local DefaultWalkSpeed = Utils.GetWalkSpeed()
1956 local DefaultJumpPower = Utils.GetJumpPower()
1957 Utils.GetCharacter = function()
1958 return game.Players.LocalPlayer.Character
1959 end
1960 Utils.SuperPunch = function()
1961 end
1962 Utils.GiveGuns = function()
1963 for i, v in next, Workspace.Prison_ITEMS.giver:GetChildren() do
1964 workspace.Remote.ItemHandler:InvokeServer(v.ITEMPICKUP)
1965 end
1966 end
1967 Utils.KillAura = function()
1968 while wait(0.1) do
1969 for i, plr in pairs(game.Players:GetChildren()) do
1970 if plr.Name ~= game.Players.LocalPlayer.Name then
1971 for i = 1, 10 do
1972 game.ReplicatedStorage.meleeEvent:FireServer(plr)
1973 end
1974 end
1975 end
1976 end
1977 end
1978 --[[Game:AddButton("Super Punch", function()
1979 Utils.SuperPunch()
1980 end)]]
1981 local StaminaBypass = Game:AddToggle("Stamina Bypass")
1982 for i, v in next, Teleports do
1983 TeleportsWindow:AddButton(i, function()
1984 Utils.Teleport(v)
1985 end)
1986 end
1987 Game:AddButton("Gun Mod", Utils.GunMod)
1988 Game:AddButton("Give Guns", Utils.GiveGuns)
1989 local JumpPowerEnabled = false
1990 local WS = CharactersCheat:AddSlider("WalkSpeed", DefaultWalkSpeed, 500, function(Speed)
1991 WalkSpeedEnabled = Speed > DefaultWalkSpeed
1992 Utils.SetWalkSpeed(Speed)
1993 end)
1994 local JP = CharactersCheat:AddSlider("JumpPower", DefaultJumpPower, 700, function(Speed)
1995 JumpPowerEnabled = Speed > DefaultJumpPower
1996 Utils.SetJumpPower(Speed)
1997 end)
1998 game:GetService("RunService").RenderStepped:Connect(function()
1999 if NoClipToggle.State then
2000 Utils.GetCharacter().Humanoid:ChangeState(11)
2001 end
2002 end)
2003 setreadonly(GameMT, false)
2004 local old = GameMT.__newindex
2005 GameMT.__newindex = newcclosure(function(t, k, n)
2006 local CallerScript = getfenv(2).script
2007 local shouldReturn = true
2008 if CallerScript.Name == "ClientInputHandler" and k == "WalkSpeed" and WalkSpeedEnabled then
2009 shouldReturn = false
2010 end
2011 if CallerScript.Name == "ClientInputHandler" and k == "Jump" and StaminaBypass.State then
2012 shouldReturn = false
2013 end
2014 if shouldReturn then
2015 return old(t, k, n)
2016 end
2017 end)
2018 setreadonly(GameMT, true)
2019 local oldPrint = getrenv().print
2020 getrenv().print = newcclosure(function(...)
2021 local CallerScript = getfenv(2).script
2022 local args = {...}
2023 local shouldReturn = true
2024 if CallerScript.Name == "ClientInputHandler" and tostring(args[1]):lower():find("jumping") and StaminaBypass.State then
2025 shouldReturn = false
2026 end
2027 if shouldReturn then
2028 return oldPrint(...)
2029 end
2030 end)
2031 loopAPI:CreateLoop("SpeedLoop", wait, function()
2032 pcall(function()
2033 if WalkSpeedEnabled then
2034 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = WS.Value
2035 end
2036 end)
2037 end, true)
2038 loopAPI:CreateLoop("JumpLoop", wait, function()
2039 pcall(function()
2040 if JumpPowerEnabled then
2041 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = JP.Value
2042 end
2043 end)
2044 end, true)
2045 local oldupdate = ToolTip.update
2046 ToolTip.update = function(Text)
2047 local shouldReturn = true
2048 if Text:lower():find("stamina") and StaminaBypass.State then
2049 shouldReturn = false
2050 end
2051 if shouldReturn then
2052 oldupdate(Text)
2053 end
2054 end
2055 --[[for i, v in next, game.Teams:GetChildren() do
2056 TeamsWindow:AddButton(v.Name, function()
2057 workspace.Remote.TeamEvent:FireServer(Utils.GetTeam(v.Name))
2058 end)
2059 end]]
2060end)
2061Utils.AddLaunch("HubLauncher", function()
2062 local ScreenGui = Instance.new("ScreenGui")
2063 local Frame = Instance.new("Frame")
2064 local Close = Instance.new("TextButton")
2065 local Detail = Instance.new("ImageLabel")
2066 local Settings = Instance.new("TextButton")
2067 local Detail_2 = Instance.new("ImageLabel")
2068 local MainTab = Instance.new("Frame")
2069 local Kinorana1 = Instance.new("TextLabel")
2070 local Kinorana2 = Instance.new("TextLabel")
2071 local KeyFrame = Instance.new("Frame")
2072 local TextBox = Instance.new("TextBox")
2073 local KeyIcon = Instance.new("ImageLabel")
2074 local RememberMe = Instance.new("TextLabel")
2075 local CheckBox = Instance.new("TextButton")
2076 local Login = Instance.new("TextButton")
2077 local KeyLabel = Instance.new("TextLabel")
2078 local SettingsTab = Instance.new("Frame")
2079 local Kinorana1_2 = Instance.new("TextLabel")
2080 local Kinorana2_2 = Instance.new("TextLabel")
2081 local GameDetection = Instance.new("TextLabel")
2082 local BackIcon = Instance.new("TextButton")
2083 local loggingIn = false
2084 local Colors = {Vaild = Color3.fromRGB(169, 255, 76), Invaild = Color3.new(1, 0.254902, 0.254902)}
2085 ScreenGui.Parent = game.CoreGui
2086
2087 Frame.Parent = ScreenGui
2088 Frame.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
2089 Frame.BorderColor3 = Color3.new(0.815686, 0.815686, 0.815686)
2090 Frame.BorderSizePixel = 0
2091 Frame.Position = UDim2.new(0.04093327, 0, 0.337049246, 0)
2092 Frame.Size = UDim2.new(0, 386, 0, 127)
2093 CreateDrag(Frame)
2094 Close.Name = "Close"
2095 Close.Parent = Frame
2096 Close.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
2097 Close.BorderSizePixel = 0
2098 Close.Position = UDim2.new(1, -25, 0, 0)
2099 Close.Size = UDim2.new(0, 25, 0.211321458, 0)
2100 Close.AutoButtonColor = false
2101 Close.Font = Enum.Font.SourceSans
2102 Close.Text = ""
2103 Close.TextColor3 = Color3.new(0, 0, 0)
2104 Close.TextSize = 14
2105 Close.MouseButton1Click:Connect(function()
2106 ScreenGui:Destroy()
2107 end)
2108 Detail.Name = "Detail"
2109 Detail.Parent = Close
2110 Detail.BackgroundColor3 = Color3.new(1, 1, 1)
2111 Detail.BackgroundTransparency = 1
2112 Detail.Position = UDim2.new(0.5, -8, 0.5, -8)
2113 Detail.Size = UDim2.new(0, 15, 0, 15)
2114 Detail.Image = "rbxassetid://3487597401"
2115
2116 Settings.Name = "Settings"
2117 Settings.Parent = Frame
2118 Settings.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
2119 Settings.BorderSizePixel = 0
2120 Settings.Position = UDim2.new(1.02331603, -47, 0, 0)
2121 Settings.Size = UDim2.new(-0.023316063, 25, 0.211321458, 0)
2122 Settings.AutoButtonColor = false
2123 Settings.Font = Enum.Font.SourceSans
2124 Settings.Text = ""
2125 Settings.TextColor3 = Color3.new(0, 0, 0)
2126 Settings.TextSize = 14
2127
2128 Detail_2.Name = "Detail"
2129 Detail_2.Parent = Settings
2130 Detail_2.BackgroundColor3 = Color3.new(1, 1, 1)
2131 Detail_2.BackgroundTransparency = 1
2132 Detail_2.Position = UDim2.new(0.5, -8, 0.5, -8)
2133 Detail_2.Size = UDim2.new(0, 15, 0, 15)
2134 Detail_2.Image = "rbxassetid://2766645188"
2135
2136 MainTab.Name = "MainTab"
2137 MainTab.Parent = Frame
2138 MainTab.BackgroundColor3 = Color3.new(1, 1, 1)
2139 MainTab.BackgroundTransparency = 1
2140 MainTab.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
2141 MainTab.Size = UDim2.new(0, 386, 0, 127)
2142
2143 Kinorana1.Name = "Kinorana1"
2144 Kinorana1.Parent = MainTab
2145 Kinorana1.BackgroundColor3 = Color3.new(1, 1, 1)
2146 Kinorana1.BackgroundTransparency = 1
2147 Kinorana1.Position = UDim2.new(0.372686356, 0, 0.0636268258, 0)
2148 Kinorana1.Size = UDim2.new(0, 36, 0, 18)
2149 Kinorana1.Font = Enum.Font.SourceSansBold
2150 Kinorana1.Text = "Kino"
2151 Kinorana1.TextColor3 = Color3.new(1, 1, 1)
2152 Kinorana1.TextSize = 30
2153
2154 Kinorana2.Name = "Kinorana2"
2155 Kinorana2.Parent = MainTab
2156 Kinorana2.BackgroundColor3 = Color3.new(1, 1, 1)
2157 Kinorana2.BackgroundTransparency = 1
2158 Kinorana2.Position = UDim2.new(0.486676008, 0, 0.0636268705, 0)
2159 Kinorana2.Size = UDim2.new(0, 53, 0, 18)
2160 Kinorana2.Font = Enum.Font.SourceSansBold
2161 Kinorana2.Text = "rana "
2162 Kinorana2.TextColor3 = Color3.new(1, 0.254902, 0.254902)
2163 Kinorana2.TextSize = 30
2164
2165 KeyFrame.Name = "KeyFrame"
2166 KeyFrame.Parent = MainTab
2167 KeyFrame.BackgroundColor3 = Color3.new(0.980392, 0.980392, 0.980392)
2168 KeyFrame.BorderSizePixel = 0
2169 KeyFrame.Position = UDim2.new(0.0231865197, 0, 0.392999977, 0)
2170 KeyFrame.Size = UDim2.new(0, 368, 0, 34)
2171
2172 TextBox.Parent = KeyFrame
2173 TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
2174 TextBox.BackgroundTransparency = 1
2175 TextBox.Position = UDim2.new(0.0867036358, 0, 0, 0)
2176 TextBox.Size = UDim2.new(0, 335, 0, 34)
2177 TextBox.Font = Enum.Font.SourceSans
2178 TextBox.PlaceholderColor3 = Color3.new(0.698039, 0.698039, 0.698039)
2179 TextBox.PlaceholderText = "Please input your key"
2180 TextBox.Text = ""
2181 TextBox.TextColor3 = Color3.new(0, 0, 0)
2182 TextBox.TextSize = 16
2183 TextBox.TextXAlignment = Enum.TextXAlignment.Left
2184
2185 KeyIcon.Name = "KeyIcon"
2186 KeyIcon.Parent = KeyFrame
2187 KeyIcon.BackgroundColor3 = Color3.new(0.980392, 0.980392, 0.980392)
2188 KeyIcon.BackgroundTransparency = 1
2189 KeyIcon.BorderSizePixel = 0
2190 KeyIcon.Position = UDim2.new(0.0142740402, 0, 0.174600363, 0)
2191 KeyIcon.Size = UDim2.new(0, 19, 0, 21)
2192 KeyIcon.Image = "http://www.roblox.com/asset/?id=4510496189"
2193
2194 RememberMe.Name = "RememberMe"
2195 RememberMe.Parent = MainTab
2196 RememberMe.BackgroundColor3 = Color3.new(1, 1, 1)
2197 RememberMe.BackgroundTransparency = 1
2198 RememberMe.Position = UDim2.new(0.105846979, 0, 0.731006682, 0)
2199 RememberMe.Size = UDim2.new(0, 73, 0, 18)
2200 RememberMe.Font = Enum.Font.Gotham
2201 RememberMe.Text = "Remember Me"
2202 RememberMe.TextColor3 = Color3.new(1, 1, 1)
2203 RememberMe.TextSize = 12
2204
2205 CheckBox.Name = "CheckBox"
2206 CheckBox.Parent = MainTab
2207 CheckBox.BackgroundColor3 = Color3.new(0.980392, 0.980392, 0.980392)
2208 CheckBox.BorderSizePixel = 0
2209 CheckBox.Position = UDim2.new(0.0231865197, 0, 0.724546075, 0)
2210 CheckBox.Size = UDim2.new(0, 19, 0, 19)
2211 CheckBox.Font = Enum.Font.SourceSansBold
2212 CheckBox.Text = "CheckBox"
2213 CheckBox.TextColor3 = Color3.new(0, 0, 0)
2214 CheckBox.TextSize = 14
2215
2216 Login.Name = "Login"
2217 Login.Parent = MainTab
2218 Login.BackgroundColor3 = Color3.new(1, 0.254902, 0.254902)
2219 Login.BorderColor3 = Color3.new(1, 0.254902, 0.254902)
2220 Login.Position = UDim2.new(0.795336783, 0, 0.724546075, 0)
2221 Login.Size = UDim2.new(0, 69, 0, 24)
2222 Login.Font = Enum.Font.SourceSansBold
2223 Login.Text = "Login"
2224 Login.TextColor3 = Color3.new(1, 1, 1)
2225 Login.TextSize = 14
2226 Login.MouseButton1Click:Connect(function()
2227 if not loggingIn then
2228 Kinorana2.TextColor3 = Colors.Vaild
2229 wait(0.30)
2230 ScreenGui:Destroy()
2231 Hub.launch()
2232 loggingIn = true
2233 end
2234 end)
2235
2236 KeyLabel.Name = "KeyLabel"
2237 KeyLabel.Parent = MainTab
2238 KeyLabel.BackgroundColor3 = Color3.new(1, 1, 1)
2239 KeyLabel.BackgroundTransparency = 1
2240 KeyLabel.Position = UDim2.new(0.0177640766, 0, 0.211321488, 0)
2241 KeyLabel.Size = UDim2.new(0, 27, 0, 18)
2242 KeyLabel.Font = Enum.Font.GothamSemibold
2243 KeyLabel.Text = "Key"
2244 KeyLabel.TextColor3 = Color3.new(1, 1, 1)
2245 KeyLabel.TextSize = 12
2246
2247 SettingsTab.Name = "SettingsTab"
2248 SettingsTab.Parent = Frame
2249 SettingsTab.BackgroundColor3 = Color3.new(1, 1, 1)
2250 SettingsTab.BackgroundTransparency = 1
2251 SettingsTab.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
2252 SettingsTab.Size = UDim2.new(0, 386, 0, 127)
2253 SettingsTab.Visible = false
2254
2255 Kinorana1_2.Name = "Kinorana1"
2256 Kinorana1_2.Parent = SettingsTab
2257 Kinorana1_2.BackgroundColor3 = Color3.new(1, 1, 1)
2258 Kinorana1_2.BackgroundTransparency = 1
2259 Kinorana1_2.Position = UDim2.new(0.372686356, 0, 0.0636268258, 0)
2260 Kinorana1_2.Size = UDim2.new(0, 36, 0, 18)
2261 Kinorana1_2.Font = Enum.Font.SourceSansBold
2262 Kinorana1_2.Text = "Kino"
2263 Kinorana1_2.TextColor3 = Color3.new(1, 1, 1)
2264 Kinorana1_2.TextSize = 30
2265
2266 Kinorana2_2.Name = "Kinorana2"
2267 Kinorana2_2.Parent = SettingsTab
2268 Kinorana2_2.BackgroundColor3 = Color3.new(1, 1, 1)
2269 Kinorana2_2.BackgroundTransparency = 1
2270 Kinorana2_2.Position = UDim2.new(0.486676008, 0, 0.0636268705, 0)
2271 Kinorana2_2.Size = UDim2.new(0, 53, 0, 18)
2272 Kinorana2_2.Font = Enum.Font.SourceSansBold
2273 Kinorana2_2.Text = "rana "
2274 Kinorana2_2.TextColor3 = Color3.new(1, 0.254902, 0.254902)
2275 Kinorana2_2.TextSize = 30
2276
2277 GameDetection.Name = "GameDetection"
2278 GameDetection.Parent = SettingsTab
2279 GameDetection.BackgroundColor3 = Color3.new(1, 1, 1)
2280 GameDetection.BackgroundTransparency = 1
2281 GameDetection.Position = UDim2.new(0.34455958, 0, 0.385826886, 0)
2282 GameDetection.Size = UDim2.new(0, 119, 0, 28)
2283 GameDetection.Font = Enum.Font.SourceSansBold
2284 GameDetection.Text = GameName
2285 GameDetection.TextColor3 = Color3.new(1, 1, 1)
2286 GameDetection.TextSize = 16
2287
2288 BackIcon.Name = "BackIcon"
2289 BackIcon.Parent = Frame
2290 BackIcon.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
2291 BackIcon.BorderSizePixel = 0
2292 BackIcon.Position = UDim2.new(1.02331603, -47, 0, 0)
2293 BackIcon.Size = UDim2.new(-0.023316063, 25, 0.211321458, 0)
2294 BackIcon.Visible = false
2295 BackIcon.AutoButtonColor = false
2296 BackIcon.Font = Enum.Font.SourceSans
2297 BackIcon.TextColor3 = Color3.new(1, 1, 1)
2298 BackIcon.TextSize = 20
2299
2300 -- Scripts:
2301
2302 local function SGKS_fake_script() -- Settings.LocalScript
2303 local script = Instance.new('LocalScript', Settings)
2304
2305 local SettingsButton = script.Parent
2306 local GUIFrame = SettingsButton.Parent
2307 SettingsButton.MouseButton1Click:Connect(function()
2308 GUIFrame.MainTab.Visible = false
2309 SettingsButton.Visible = false
2310 GUIFrame.SettingsTab.Visible = true
2311 GUIFrame.BackIcon.Visible = true
2312 end)
2313 end
2314 coroutine.wrap(SGKS_fake_script)()
2315 local function EYWK_fake_script() -- CheckBox.LocalScript
2316 local script = Instance.new('LocalScript', CheckBox)
2317
2318 local BackIcon = script.Parent
2319 BackIcon.Text = utf8.char(10003)
2320 end
2321 coroutine.wrap(EYWK_fake_script)()
2322 local function HOCN_fake_script() -- BackIcon.LocalScript
2323 local script = Instance.new('LocalScript', BackIcon)
2324
2325 local BackIcon = script.Parent
2326 local GUIFrame = BackIcon.Parent
2327 BackIcon.Text = utf8.char(8592)
2328 BackIcon.MouseButton1Click:Connect(function()
2329 GUIFrame.MainTab.Visible = true
2330 BackIcon.Visible = false
2331 GUIFrame.SettingsTab.Visible = false
2332 GUIFrame.Settings.Visible = true
2333 end)
2334 end
2335 coroutine.wrap(HOCN_fake_script)()
2336
2337end)
2338Utils.AddLaunch("UIInit", function()
2339 window = Library:CreateTab(GameName == "No Game Detected" and "Universal" or GameName)
2340end)
2341Utils.AddLaunch("SoundSpace", function()
2342 local Game = window:AddSection("Main")
2343 local Cubes = workspace.Client.Cubes
2344 local cam = workspace.CurrentCamera
2345 local AutoPlayer = Game:AddToggle("Auto Play")
2346 local currentCamera = game:GetService("Workspace").CurrentCamera
2347 local tweenservice = game:GetService("TweenService")
2348 local localPlayer = game:GetService("Players").LocalPlayer
2349 local client = game:GetService("Workspace").Client
2350
2351 local function getClosestCube()
2352 local closestCube = nil
2353 local shortestDistance = math.huge
2354
2355 for i, v in pairs(client.Cubes:GetChildren()) do
2356 if v:IsA("BasePart") then
2357 local magnitude = (v.Position - client.CameraPos.Position).magnitude
2358 if magnitude < shortestDistance then
2359 closestCube = v
2360 shortestDistance = magnitude
2361 end
2362 end
2363 end
2364
2365 return closestCube
2366 end
2367
2368 game:GetService("RunService").RenderStepped:Connect(function()
2369 if AutoPlayer.State then
2370 pcall(function()
2371 tweenservice:Create(currentCamera, TweenInfo.new(0.065, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = CFrame.new(client.CameraPos.Position, getClosestCube().Position)}):Play()
2372 end)
2373 end
2374 end)
2375end)
2376Utils.AddLaunch("OperationScorpion", function()
2377 local Game = window:AddSection("Main")
2378 local WS = Game:AddToggle("WalkSpeed")
2379 while wait() do
2380 if WS.State then
2381 game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass"Humanoid".WalkSpeed = 100
2382 end
2383 end
2384end)
2385Utils.AddLaunch("KAT", function()
2386 local section = window:AddSection("Main")
2387 local silentaim = section:AddToggle("Silent Aim")
2388 local localPlayer = game:GetService("Players").LocalPlayer
2389 local joe = game:GetService("Workspace").CurrentCamera
2390 local mouse = localPlayer:GetMouse()
2391 local function getClosestPlayerToCursor(x, y)
2392 local closestPlayer = nil
2393 local shortestDistance = math.huge
2394
2395 for i, v in pairs(game:GetService("Players"):GetPlayers()) do
2396 if v ~= localPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
2397 local pos = joe:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
2398 local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(x, y)).magnitude
2399
2400 if magnitude < shortestDistance then
2401 closestPlayer = v
2402 shortestDistance = magnitude
2403 end
2404 end
2405 end
2406
2407 return closestPlayer
2408 end
2409
2410 local mt = getrawmetatable(game)
2411 local oldIndex = mt.__index
2412 setreadonly(mt, false)
2413 local newClose = newcclosure or function(f) return f end
2414
2415 mt.__index = newClose(function(t, k)
2416 if silentaim.State then
2417 if not checkcaller() and t == mouse and tostring(k) == "X" and string.find(getfenv(2).script.Name, "Client") and getClosestPlayerToCursor() then
2418 local closest = getClosestPlayerToCursor(oldIndex(t, k), oldIndex(t, "Y")).Character.Head
2419 local pos = joe:WorldToScreenPoint(closest.Position)
2420 return pos.X
2421 end
2422 if not checkcaller() and t == mouse and tostring(k) == "Y" and string.find(getfenv(2).script.Name, "Client") and getClosestPlayerToCursor() then
2423 local closest = getClosestPlayerToCursor(oldIndex(t, "X"), oldIndex(t, k)).Character.Head
2424 local pos = joe:WorldToScreenPoint(closest.Position)
2425 return pos.Y
2426 end
2427 if t == mouse and tostring(k) == "Hit" and string.find(getfenv(2).script.Name, "Client") and getClosestPlayerToCursor() then
2428 return getClosestPlayerToCursor(mouse.X, mouse.Y).Character.Head.CFrame
2429 end
2430 end
2431
2432 return oldIndex(t, k)
2433 end)
2434end)
2435Utils.AddLaunch("ElectricStateDarkRP", function()
2436 local Game = window:AddSection("Main")
2437 local WS = Game:AddToggle("WalkSpeed", function(toggle)
2438 if not toggle then
2439 pcall(function()
2440 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
2441 end)
2442 end
2443 end)
2444 local pi = math.pi
2445 local abs = math.abs
2446 local clamp = math.clamp
2447 local exp = math.exp
2448 local rad = math.rad
2449 local sign = math.sign
2450 local sqrt = math.sqrt
2451 local tan = math.tan
2452
2453 local ContextActionService = game:GetService("ContextActionService")
2454 local Players = game:GetService("Players")
2455 local RunService = game:GetService("RunService")
2456 local StarterGui = game:GetService("StarterGui")
2457 local UserInputService = game:GetService("UserInputService")
2458 local Workspace = game:GetService("Workspace")
2459
2460 local LocalPlayer = Players.LocalPlayer
2461 if not LocalPlayer then
2462 Players:GetPropertyChangedSignal("LocalPlayer"):Wait()
2463 LocalPlayer = Players.LocalPlayer
2464 end
2465
2466 local Camera = Workspace.CurrentCamera
2467 Workspace:GetPropertyChangedSignal("CurrentCamera"):Connect(function()
2468 local newCamera = Workspace.CurrentCamera
2469 if newCamera then
2470 Camera = newCamera
2471 end
2472 end)
2473
2474 local TOGGLE_INPUT_PRIORITY = Enum.ContextActionPriority.Low.Value
2475 local INPUT_PRIORITY = Enum.ContextActionPriority.High.Value
2476
2477 local NAV_GAIN = Vector3.new(1, 1, 1)*64
2478 local PAN_GAIN = Vector2.new(0.75, 1)*8
2479 local FOV_GAIN = 300
2480
2481 local PITCH_LIMIT = rad(90)
2482
2483 local VEL_STIFFNESS = 1.5
2484 local PAN_STIFFNESS = 1.0
2485 local FOV_STIFFNESS = 4.0
2486
2487
2488 local Spring = {} do
2489 Spring.__index = Spring
2490
2491 function Spring.new(freq, pos)
2492 local self = setmetatable({}, Spring)
2493 self.f = freq
2494 self.p = pos
2495 self.v = pos*0
2496 return self
2497 end
2498
2499 function Spring:Update(dt, goal)
2500 local f = self.f*2*pi
2501 local p0 = self.p
2502 local v0 = self.v
2503
2504 local offset = goal - p0
2505 local decay = exp(-f*dt)
2506
2507 local p1 = goal + (v0*dt - offset*(f*dt + 1))*decay
2508 local v1 = (f*dt*(offset*f - v0) + v0)*decay
2509
2510 self.p = p1
2511 self.v = v1
2512
2513 return p1
2514 end
2515
2516 function Spring:Reset(pos)
2517 self.p = pos
2518 self.v = pos*0
2519 end
2520 end
2521
2522 local cameraPos = Vector3.new()
2523 local cameraRot = Vector2.new()
2524 local cameraFov = 0
2525
2526 local velSpring = Spring.new(VEL_STIFFNESS, Vector3.new())
2527 local panSpring = Spring.new(PAN_STIFFNESS, Vector2.new())
2528 local fovSpring = Spring.new(FOV_STIFFNESS, 0)
2529
2530 ------------------------------------------------------------------------
2531
2532 local Input = {} do
2533 local thumbstickCurve do
2534 local K_CURVATURE = 2.0
2535 local K_DEADZONE = 0.15
2536
2537 local function fCurve(x)
2538 return (exp(K_CURVATURE*x) - 1)/(exp(K_CURVATURE) - 1)
2539 end
2540
2541 local function fDeadzone(x)
2542 return fCurve((x - K_DEADZONE)/(1 - K_DEADZONE))
2543 end
2544
2545 function thumbstickCurve(x)
2546 return sign(x)*clamp(fDeadzone(abs(x)), 0, 1)
2547 end
2548 end
2549
2550 local gamepad = {
2551 ButtonX = 0,
2552 ButtonY = 0,
2553 DPadDown = 0,
2554 DPadUp = 0,
2555 ButtonL2 = 0,
2556 ButtonR2 = 0,
2557 Thumbstick1 = Vector2.new(),
2558 Thumbstick2 = Vector2.new(),
2559 }
2560
2561 local keyboard = {
2562 W = 0,
2563 A = 0,
2564 S = 0,
2565 D = 0,
2566 E = 0,
2567 Q = 0,
2568 U = 0,
2569 H = 0,
2570 J = 0,
2571 K = 0,
2572 I = 0,
2573 Y = 0,
2574 Up = 0,
2575 Down = 0,
2576 LeftShift = 0,
2577 RightShift = 0,
2578 }
2579
2580 local mouse = {
2581 Delta = Vector2.new(),
2582 MouseWheel = 0,
2583 }
2584
2585 local NAV_GAMEPAD_SPEED = Vector3.new(1, 1, 1)
2586 local NAV_KEYBOARD_SPEED = Vector3.new(1, 1, 1)
2587 local PAN_MOUSE_SPEED = Vector2.new(1, 1)*(pi/64)
2588 local PAN_GAMEPAD_SPEED = Vector2.new(1, 1)*(pi/8)
2589 local FOV_WHEEL_SPEED = 1.0
2590 local FOV_GAMEPAD_SPEED = 0.25
2591 local NAV_ADJ_SPEED = 0.75
2592 local NAV_SHIFT_MUL = 0.25
2593
2594 local navSpeed = 1
2595
2596 function Input.Vel(dt)
2597 navSpeed = clamp(navSpeed + dt*(keyboard.Up - keyboard.Down)*NAV_ADJ_SPEED, 0.01, 4)
2598
2599 local kGamepad = Vector3.new(
2600 thumbstickCurve(gamepad.Thumbstick1.x),
2601 thumbstickCurve(gamepad.ButtonR2) - thumbstickCurve(gamepad.ButtonL2),
2602 thumbstickCurve(-gamepad.Thumbstick1.y)
2603 )*NAV_GAMEPAD_SPEED
2604
2605 local kKeyboard = Vector3.new(
2606 keyboard.D - keyboard.A + keyboard.K - keyboard.H,
2607 keyboard.E - keyboard.Q + keyboard.I - keyboard.Y,
2608 keyboard.S - keyboard.W + keyboard.J - keyboard.U
2609 )*NAV_KEYBOARD_SPEED
2610
2611 local shift = UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) or UserInputService:IsKeyDown(Enum.KeyCode.RightShift)
2612
2613 return (kGamepad + kKeyboard)*(navSpeed*(shift and NAV_SHIFT_MUL or 1))
2614 end
2615
2616 function Input.Pan(dt)
2617 local kGamepad = Vector2.new(
2618 thumbstickCurve(gamepad.Thumbstick2.y),
2619 thumbstickCurve(-gamepad.Thumbstick2.x)
2620 )*PAN_GAMEPAD_SPEED
2621 local kMouse = mouse.Delta*PAN_MOUSE_SPEED
2622 mouse.Delta = Vector2.new()
2623 return kGamepad + kMouse
2624 end
2625
2626 function Input.Fov(dt)
2627 local kGamepad = (gamepad.ButtonX - gamepad.ButtonY)*FOV_GAMEPAD_SPEED
2628 local kMouse = mouse.MouseWheel*FOV_WHEEL_SPEED
2629 mouse.MouseWheel = 0
2630 return kGamepad + kMouse
2631 end
2632
2633 do
2634 local function Keypress(action, state, input)
2635 keyboard[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
2636 return Enum.ContextActionResult.Sink
2637 end
2638
2639 local function GpButton(action, state, input)
2640 gamepad[input.KeyCode.Name] = state == Enum.UserInputState.Begin and 1 or 0
2641 return Enum.ContextActionResult.Sink
2642 end
2643
2644 local function MousePan(action, state, input)
2645 local delta = input.Delta
2646 mouse.Delta = Vector2.new(-delta.y, -delta.x)
2647 return Enum.ContextActionResult.Sink
2648 end
2649
2650 local function Thumb(action, state, input)
2651 gamepad[input.KeyCode.Name] = input.Position
2652 return Enum.ContextActionResult.Sink
2653 end
2654
2655 local function Trigger(action, state, input)
2656 gamepad[input.KeyCode.Name] = input.Position.z
2657 return Enum.ContextActionResult.Sink
2658 end
2659
2660 local function MouseWheel(action, state, input)
2661 mouse[input.UserInputType.Name] = -input.Position.z
2662 return Enum.ContextActionResult.Sink
2663 end
2664
2665 local function Zero(t)
2666 for k, v in pairs(t) do
2667 t[k] = v*0
2668 end
2669 end
2670
2671 function Input.StartCapture()
2672 ContextActionService:BindActionAtPriority("FreecamKeyboard", Keypress, false, INPUT_PRIORITY,
2673 Enum.KeyCode.W, Enum.KeyCode.U,
2674 Enum.KeyCode.A, Enum.KeyCode.H,
2675 Enum.KeyCode.S, Enum.KeyCode.J,
2676 Enum.KeyCode.D, Enum.KeyCode.K,
2677 Enum.KeyCode.E, Enum.KeyCode.I,
2678 Enum.KeyCode.Q, Enum.KeyCode.Y,
2679 Enum.KeyCode.Up, Enum.KeyCode.Down
2680 )
2681 ContextActionService:BindActionAtPriority("FreecamMousePan", MousePan, false, INPUT_PRIORITY, Enum.UserInputType.MouseMovement)
2682 ContextActionService:BindActionAtPriority("FreecamMouseWheel", MouseWheel, false, INPUT_PRIORITY, Enum.UserInputType.MouseWheel)
2683 ContextActionService:BindActionAtPriority("FreecamGamepadButton", GpButton, false, INPUT_PRIORITY, Enum.KeyCode.ButtonX, Enum.KeyCode.ButtonY)
2684 ContextActionService:BindActionAtPriority("FreecamGamepadTrigger", Trigger, false, INPUT_PRIORITY, Enum.KeyCode.ButtonR2, Enum.KeyCode.ButtonL2)
2685 ContextActionService:BindActionAtPriority("FreecamGamepadThumbstick", Thumb, false, INPUT_PRIORITY, Enum.KeyCode.Thumbstick1, Enum.KeyCode.Thumbstick2)
2686 end
2687
2688 function Input.StopCapture()
2689 navSpeed = 1
2690 Zero(gamepad)
2691 Zero(keyboard)
2692 Zero(mouse)
2693 ContextActionService:UnbindAction("FreecamKeyboard")
2694 ContextActionService:UnbindAction("FreecamMousePan")
2695 ContextActionService:UnbindAction("FreecamMouseWheel")
2696 ContextActionService:UnbindAction("FreecamGamepadButton")
2697 ContextActionService:UnbindAction("FreecamGamepadTrigger")
2698 ContextActionService:UnbindAction("FreecamGamepadThumbstick")
2699 end
2700 end
2701 end
2702
2703 local function GetFocusDistance(cameraFrame)
2704 local znear = 0.1
2705 local viewport = Camera.ViewportSize
2706 local projy = 2*tan(cameraFov/2)
2707 local projx = viewport.x/viewport.y*projy
2708 local fx = cameraFrame.rightVector
2709 local fy = cameraFrame.upVector
2710 local fz = cameraFrame.lookVector
2711
2712 local minVect = Vector3.new()
2713 local minDist = 512
2714
2715 for x = 0, 1, 0.5 do
2716 for y = 0, 1, 0.5 do
2717 local cx = (x - 0.5)*projx
2718 local cy = (y - 0.5)*projy
2719 local offset = fx*cx - fy*cy + fz
2720 local origin = cameraFrame.p + offset*znear
2721 local _, hit = Workspace:FindPartOnRay(Ray.new(origin, offset.unit*minDist))
2722 local dist = (hit - origin).magnitude
2723 if minDist > dist then
2724 minDist = dist
2725 minVect = offset.unit
2726 end
2727 end
2728 end
2729
2730 return fz:Dot(minVect)*minDist
2731 end
2732
2733
2734 local function StepFreecam(dt)
2735 local vel = velSpring:Update(dt, Input.Vel(dt))
2736 local pan = panSpring:Update(dt, Input.Pan(dt))
2737 local fov = fovSpring:Update(dt, Input.Fov(dt))
2738
2739 local zoomFactor = sqrt(tan(rad(70/2))/tan(rad(cameraFov/2)))
2740
2741 cameraFov = clamp(cameraFov + fov*FOV_GAIN*(dt/zoomFactor), 1, 120)
2742 cameraRot = cameraRot + pan*PAN_GAIN*(dt/zoomFactor)
2743 cameraRot = Vector2.new(clamp(cameraRot.x, -PITCH_LIMIT, PITCH_LIMIT), cameraRot.y%(2*pi))
2744
2745 local cameraCFrame = CFrame.new(cameraPos)*CFrame.fromOrientation(cameraRot.x, cameraRot.y, 0)*CFrame.new(vel*NAV_GAIN*dt)
2746 cameraPos = cameraCFrame.p
2747
2748 Camera.CFrame = cameraCFrame
2749 Camera.Focus = cameraCFrame*CFrame.new(0, 0, -GetFocusDistance(cameraCFrame))
2750 Camera.FieldOfView = cameraFov
2751 end
2752
2753
2754 local PlayerState = {} do
2755 local mouseBehavior
2756 local mouseIconEnabled
2757 local cameraType
2758 local cameraFocus
2759 local cameraCFrame
2760 local cameraFieldOfView
2761 local screenGuis = {}
2762 local coreGuis = {
2763 Backpack = true,
2764 Chat = true,
2765 Health = true,
2766 PlayerList = true,
2767 }
2768 local setCores = {
2769 BadgesNotificationsActive = true,
2770 PointsNotificationsActive = true,
2771 }
2772
2773 function PlayerState.Push()
2774 for name in pairs(coreGuis) do
2775 coreGuis[name] = StarterGui:GetCoreGuiEnabled(Enum.CoreGuiType[name])
2776 StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], false)
2777 end
2778 for name in pairs(setCores) do
2779 setCores[name] = StarterGui:GetCore(name)
2780 StarterGui:SetCore(name, false)
2781 end
2782 local playergui = LocalPlayer:FindFirstChildOfClass("PlayerGui")
2783 if playergui then
2784 for _, gui in pairs(playergui:GetChildren()) do
2785 if gui:IsA("ScreenGui") and gui.Enabled then
2786 screenGuis[#screenGuis + 1] = gui
2787 gui.Enabled = false
2788 end
2789 end
2790 end
2791
2792 cameraFieldOfView = Camera.FieldOfView
2793 Camera.FieldOfView = 70
2794
2795 cameraType = Camera.CameraType
2796 Camera.CameraType = Enum.CameraType.Custom
2797
2798 cameraCFrame = Camera.CFrame
2799 cameraFocus = Camera.Focus
2800
2801 mouseIconEnabled = UserInputService.MouseIconEnabled
2802 UserInputService.MouseIconEnabled = false
2803
2804 mouseBehavior = UserInputService.MouseBehavior
2805 UserInputService.MouseBehavior = Enum.MouseBehavior.Default
2806 end
2807
2808 function PlayerState.Pop()
2809 for name, isEnabled in pairs(coreGuis) do
2810 StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[name], isEnabled)
2811 end
2812 for name, isEnabled in pairs(setCores) do
2813 StarterGui:SetCore(name, isEnabled)
2814 end
2815 for _, gui in pairs(screenGuis) do
2816 if gui.Parent then
2817 gui.Enabled = true
2818 end
2819 end
2820
2821 Camera.FieldOfView = cameraFieldOfView
2822 cameraFieldOfView = nil
2823
2824 Camera.CameraType = cameraType
2825 cameraType = nil
2826
2827 Camera.CFrame = cameraCFrame
2828 cameraCFrame = nil
2829
2830 Camera.Focus = cameraFocus
2831 cameraFocus = nil
2832
2833 UserInputService.MouseIconEnabled = mouseIconEnabled
2834 mouseIconEnabled = nil
2835
2836 UserInputService.MouseBehavior = mouseBehavior
2837 mouseBehavior = nil
2838 end
2839 end
2840
2841 local function StartFreecam()
2842 local cameraCFrame = Camera.CFrame
2843 cameraRot = Vector2.new(cameraCFrame:toEulerAnglesYXZ())
2844 cameraPos = cameraCFrame.p
2845 cameraFov = Camera.FieldOfView
2846
2847 velSpring:Reset(Vector3.new())
2848 panSpring:Reset(Vector2.new())
2849 fovSpring:Reset(0)
2850
2851 PlayerState.Push()
2852 RunService:BindToRenderStep("Freecam", Enum.RenderPriority.Camera.Value, StepFreecam)
2853 Input.StartCapture()
2854 end
2855
2856 local function StopFreecam()
2857 Input.StopCapture()
2858 RunService:UnbindFromRenderStep("Freecam")
2859 PlayerState.Pop()
2860 end
2861
2862 local function ToggleFreecam(fe)
2863 if fe then
2864 StartFreecam()
2865 else
2866 StopFreecam()
2867 end
2868 end
2869 local t = false
2870
2871 local function scan(z,t)
2872 for _,i in pairs(z:GetChildren()) do
2873 if i:IsA("BasePart") and not i.Parent:FindFirstChild("Humanoid") and not i.Parent.Parent:FindFirstChild("Humanoid") then
2874 i.LocalTransparencyModifier = t
2875 end
2876 scan(i,t)
2877 end
2878 end
2879
2880 function Xray(v)
2881 if v then
2882 scan(workspace, 0.5)
2883 else
2884 scan(workspace, 0)
2885 end
2886 end
2887 local WSVal = Game:AddSlider("WalkSpeed Value", 16, 400)
2888 Game:AddToggle("FreeCam", function(toggle)
2889 ToggleFreecam(toggle)
2890 end)
2891 Game:AddToggle("Wall Xray", function(toggle)
2892 Xray(toggle)
2893 end)
2894 local GameMT, Backups = getrawmetatable(game), {}
2895 setreadonly(GameMT, false)
2896 for i, v in next, GameMT do Backups[i] = v end
2897 GameMT.__index = newcclosure(function(t, k)
2898 if k == "WalkSpeed" and not checkcaller() then
2899 return 16
2900 end
2901 return Backups.__index(t, k)
2902 end)
2903 setreadonly(GameMT, true)
2904 loopAPI:CreateLoop("SpeedLoop", wait, function()
2905 pcall(function()
2906 if WS.State then
2907 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = WSVal.Value
2908 end
2909 end)
2910 end, true)
2911end)
2912Utils.AddLaunch("Strucid", function()
2913 local Game = window:AddSection("Main")
2914 local SlientAim = Game:AddToggle("Slient Aim")
2915 local InputService = game:GetService"UserInputService"
2916 local PlayerService = game:GetService"Players"
2917 local Client = PlayerService.LocalPlayer
2918 local Mouse = Client:GetMouse()
2919 local Camera = workspace.CurrentCamera
2920
2921 local Shooting = false
2922
2923 InputService.InputBegan:connect(function(input)
2924 if input.UserInputType == Enum.UserInputType.MouseButton1 then
2925 Shooting = true
2926 end
2927 end)
2928 InputService.InputEnded:connect(function(input)
2929 if input.UserInputType == Enum.UserInputType.MouseButton1 then
2930 Shooting = false
2931 end
2932 end)
2933
2934 local function getClosestPlayerToCursor()
2935 local closestPlayer = nil
2936 local shortestDistance = math.huge
2937
2938 for i, v in pairs(game:GetService("Players"):GetPlayers()) do
2939 if v ~= Client and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") then
2940 local pos = Camera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
2941 local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).magnitude
2942
2943 if magnitude < shortestDistance then
2944 closestPlayer = v
2945 shortestDistance = magnitude
2946 end
2947 end
2948 end
2949
2950 if closestPlayer then
2951 return closestPlayer.Character.Head.CFrame
2952 else
2953 return CFrame.new()
2954 end
2955 end
2956
2957 local mt = getrawmetatable(game)
2958 old_call = mt.__namecall
2959 old_index = mt.__index
2960 setreadonly(mt, false)
2961
2962 mt.__index = newcclosure(function(t,i)
2963
2964 if Shooting then
2965 if t == Mouse and i == "Hit" and SlientAim.State then
2966 return getClosestPlayerToCursor()
2967 end
2968 end
2969
2970 return old_index(t, i)
2971 end)
2972end)
2973Utils.AddLaunch("BigPaintball", function()
2974 local section = window:AddSection("Main")
2975 local walkspeed = section:AddButton("Walkspeed", function()
2976 local mt = getrawmetatable(game)
2977 setreadonly(mt,false)
2978 local indexBackup = mt.__index
2979 mt.__index = function(a,b)
2980 if b == "Position" and a.Parent == game.Players.LocalPlayer.Character then
2981 return nil
2982 end
2983 return indexBackup(a,b)
2984 end
2985 while wait() do
2986 game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass"Humanoid".WalkSpeed = 100
2987 end
2988 end)
2989 local hitbox = section:AddToggle("Larger Hitbox")
2990 while wait() do
2991 if hitbox.State then
2992 local asd = workspace:getDescendants()
2993 for f=1,#asd do
2994 if asd[f].Name == "Hitbox" then
2995 if asd[f].Parent.Name ~= game.Players.LocalPlayer.Name then
2996 asd[f].Massless = true
2997 asd[f].Size = Vector3.new(50,50,50)
2998 asd[f].Transparency = 0.5
2999 end
3000 end
3001 end
3002 end
3003 end
3004end)
3005Utils.AddLaunch("AdventureUp", function()
3006 local section = window:AddSection("Main")
3007 local KillAura = section:AddToggle("Kill Aura")
3008 while wait() do
3009 if KillAura.State then
3010 for i,v in pairs(workspace:GetChildren()) do
3011 if v.ClassName == "Folder" then
3012 for i,f in pairs(v:GetChildren()) do
3013 if f.ClassName == "Folder" then
3014 for i, mob in pairs(f:GetChildren()) do
3015 if mob.ClassName == "Model" then
3016 if mob:FindFirstChild("HumanoidRootPart") and mob:FindFirstChild("Humanoid") and mob.Humanoid.Health > 0 and (mob.HumanoidRootPart.Position - game.Players.LocalPlayer.Character.HumanoidRootPart.Position).magnitude < 30 then
3017 mob.Humanoid.Health = 0
3018 end
3019 end
3020 end
3021 end
3022 end
3023 end
3024 end
3025 end
3026 end
3027end)
3028Utils.AddLaunch("Arsenal", function()
3029 local section = window:AddSection("Main")
3030 local obama = getsenv(game.Players.LocalPlayer.PlayerGui.GUI.Client)
3031 local gunmod = section:AddToggle("Gun Mod")
3032 loopAPI:CreateLoop("Gun Mod", wait, function()
3033 if gunmod.State then
3034 obama.ammocount = 999
3035 obama.ammocount2 = 999
3036 obama.ammocount4 = 999
3037 obama.ammocount4 = 999
3038 obama.currentspread = 0
3039 obama.recoil = 0
3040 obama.spread = 0
3041 obama.mode = "automatic"
3042 obama.inducefalldamage = function(...) return nil end
3043 end
3044 end, true)
3045 local bhop = section:AddToggle("Bhop")
3046 local MT = getrawmetatable(game)
3047 local OldNameCall = MT.__namecall
3048 setreadonly(MT, false)
3049 MT.__namecall = newcclosure(function(self, ...)
3050 local Method = getnamecallmethod()
3051 local Args = {...}
3052 local shouldReturn = true
3053 if Method == "Kick" then
3054 shouldReturn = false
3055 end
3056 if shouldReturn then
3057 return OldNameCall(self, unpack(Args))
3058 end
3059 end)
3060 setreadonly(MT, true)
3061 while wait() do
3062 if bhop.State then
3063 game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 43
3064 game.Players.LocalPlayer.Character.Humanoid.Jump = true
3065 end
3066 end
3067end)
3068Utils.AddLaunch("Hub", function()
3069 if GameName == "Prison Life" then
3070 UIInit.launch()
3071 PrisonLife.launch()
3072 Universal.launch()
3073 elseif GameName == "Sound Space" then
3074 UIInit.launch()
3075 SoundSpace.launch()
3076 elseif GameName == "Operation Scorpion" then
3077 UIInit.launch()
3078 OperationScorpion.launch()
3079 Universal.launch()
3080 elseif GameName == "Electric State DarkRP" then
3081 UIInit.launch()
3082 ElectricStateDarkRP.launch()
3083 Universal.launch()
3084 elseif GameName == "Strucid" then
3085 UIInit.launch()
3086 Strucid.launch()
3087 Universal.launch()
3088 elseif GameName == "Big Paintball" then
3089 UIInit.launch()
3090 Universal.launch()
3091 BigPaintball.launch()
3092 elseif GameName == "Adventure Up" then
3093 UIInit.launch()
3094 AdventureUp.launch()
3095 elseif GameName == "KAT" then
3096 UIInit.launch()
3097 KAT.launch()
3098 Universal.launch()
3099 elseif GameName == "Arsenal" then
3100 UIInit.launch()
3101 Universal.launch()
3102 Arsenal.launch()
3103 else
3104 Universal.launch()
3105 end
3106end)
3107HubLauncher.launch()