· 6 years ago · Mar 02, 2020, 07:28 AM
1-- Gui to Lua
2-- Version: 3
3
4-- Instances:
5
6local GetruHaxV42 = Instance.new("ScreenGui")
7local Main = Instance.new("Frame")
8local PhSaSASaer1 = Instance.new("Frame")
9local Functions = Instance.new("TextLabel")
10local UnnamedESPGUI = Instance.new("TextButton")
11local Fly = Instance.new("TextButton")
12local Unfly = Instance.new("TextButton")
13local NoclipE = Instance.new("TextButton")
14local DeleteShiftClick = Instance.new("TextButton")
15local EnableBackpack = Instance.new("TextButton")
16local WalkSpeedHoldE = Instance.new("TextButton")
17local InfiniteJump = Instance.new("TextButton")
18local EnableShiftLock = Instance.new("TextButton")
19local Main2 = Instance.new("Frame")
20local PhSaSASaer2 = Instance.new("Frame")
21local Teleports = Instance.new("TextLabel")
22local OutSide = Instance.new("TextButton")
23local Escape = Instance.new("TextButton")
24local Ventilation = Instance.new("TextButton")
25local GuardsRoom = Instance.new("TextButton")
26local Bathhouse = Instance.new("TextButton")
27local ElectricityRoom = Instance.new("TextButton")
28local Boat = Instance.new("TextButton")
29local MeatRoom = Instance.new("TextButton")
30local Basement = Instance.new("TextButton")
31local Main3 = Instance.new("Frame")
32local PhSaSASaer3 = Instance.new("Frame")
33local HelpCredits = Instance.new("TextLabel")
34local ESPHELP = Instance.new("TextLabel")
35local Scripter = Instance.new("TextLabel")
36local GUI = Instance.new("TextLabel")
37
38--Properties:
39
40GetruHaxV42.Name = "GetruHax V4.2"
41GetruHaxV42.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
42
43Main.Name = "Main"
44Main.Parent = GetruHaxV42
45Main.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
46Main.BorderSizePixel = 0
47Main.Position = UDim2.new(0.0751211643, 0, 0.0436893217, 0)
48Main.Size = UDim2.new(0, 154, 0, 438)
49Main.Active = true
50Main.Draggable = true
51
52PhSaSASaer1.Name = "PhSaSASaer1"
53PhSaSASaer1.Parent = Main
54PhSaSASaer1.BackgroundColor3 = Color3.new(0, 0.666667, 1)
55PhSaSASaer1.BorderSizePixel = 0
56PhSaSASaer1.Position = UDim2.new(0, 0, 0.12101911, 0)
57PhSaSASaer1.Size = UDim2.new(0, 154, 0, 7)
58
59Functions.Name = "Functions"
60Functions.Parent = Main
61Functions.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
62Functions.BorderSizePixel = 0
63Functions.Size = UDim2.new(0, 154, 0, 38)
64Functions.Font = Enum.Font.Antique
65Functions.Text = "Functions"
66Functions.TextColor3 = Color3.new(0.666667, 0.666667, 1)
67Functions.TextScaled = true
68Functions.TextSize = 14
69Functions.TextWrapped = true
70
71UnnamedESPGUI.Name = "Unnamed ESP GUI"
72UnnamedESPGUI.Parent = Main
73UnnamedESPGUI.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
74UnnamedESPGUI.BorderSizePixel = 0
75UnnamedESPGUI.Position = UDim2.new(0, 0, 0.16438356, 0)
76UnnamedESPGUI.Size = UDim2.new(0, 154, 0, 39)
77UnnamedESPGUI.Font = Enum.Font.Code
78UnnamedESPGUI.Text = "Unnamed ESP GUI"
79UnnamedESPGUI.TextColor3 = Color3.new(1, 0.333333, 0.498039)
80UnnamedESPGUI.TextScaled = true
81UnnamedESPGUI.TextSize = 14
82UnnamedESPGUI.TextWrapped = true
83UnnamedESPGUI.MouseButton1Down:connect(function()
84 assert(Drawing, 'exploit not supported')
85
86local UserInputService = game:GetService'UserInputService';
87local HttpService = game:GetService'HttpService';
88local GUIService = game:GetService'GuiService';
89local RunService = game:GetService'RunService';
90local Players = game:GetService'Players';
91local LocalPlayer = Players.LocalPlayer;
92local Camera = workspace.CurrentCamera
93local Mouse = LocalPlayer:GetMouse();
94local Menu = {};
95local MouseHeld = false;
96local LastRefresh = 0;
97local OptionsFile = 'IC3_ESP_SETTINGS.dat';
98local Binding = false;
99local BindedKey = nil;
100local OIndex = 0;
101local LineBox = {};
102local UIButtons = {};
103local Sliders = {};
104local Dragging = false;
105local DraggingUI = false;
106local DragOffset = Vector2.new();
107local DraggingWhat = nil;
108local OldData = {};
109local IgnoreList = {};
110local Red = Color3.new(1, 0, 0);
111local Green = Color3.new(0, 1, 0);
112local MenuLoaded = false;
113
114shared.MenuDrawingData = shared.MenuDrawingData or { Instances = {} };
115shared.PlayerData = shared.PlayerData or {};
116shared.RSName = shared.RSName or ('UnnamedESP_by_ic3-' .. HttpService:GenerateGUID(false));
117
118local GetDataName = shared.RSName .. '-GetData';
119local UpdateName = shared.RSName .. '-Update';
120
121local Debounce = setmetatable({}, {
122__index = function(t, i)
123return rawget(t, i) or false
124end;
125});
126
127pcall(function() shared.InputBeganCon:disconnect() end);
128pcall(function() shared.InputEndedCon:disconnect() end);
129
130function GetMouseLocation()
131return UserInputService:GetMouseLocation();
132end
133
134function MouseHoveringOver(Values)
135local X1, Y1, X2, Y2 = Values[1], Values[2], Values[3], Values[4]
136local MLocation = GetMouseLocation();
137return (MLocation.x >= X1 and MLocation.x <= (X1 + (X2 - X1))) and (MLocation.y >= Y1 and MLocation.y <= (Y1 + (Y2 - Y1)));
138end
139
140function GetTableData(t) -- basically table.foreach i dont even know why i made this
141if typeof(t) ~= 'table' then return end
142return setmetatable(t, {
143__call = function(t, func)
144if typeof(func) ~= 'function' then return end;
145for i, v in pairs(t) do
146pcall(func, i, v);
147end
148end;
149});
150end
151local function Format(format, ...)
152return string.format(format, ...);
153end
154function CalculateValue(Min, Max, Percent)
155return Min + math.floor(((Max - Min) * Percent) + .5);
156end
157
158local Options = setmetatable({}, {
159__call = function(t, ...)
160local Arguments = {...};
161local Name = Arguments[1];
162OIndex = OIndex + 1; -- (typeof(Arguments[3]) == 'boolean' and 1 or 0);
163rawset(t, Name, setmetatable({
164Name = Arguments[1];
165Text = Arguments[2];
166Value = Arguments[3];
167DefaultValue = Arguments[3];
168AllArgs = Arguments;
169Index = OIndex;
170}, {
171__call = function(t, v)
172if typeof(t.Value) == 'function' then
173t.Value();
174elseif typeof(t.Value) == 'EnumItem' then
175local BT = Menu:GetInstance(Format('%s_BindText', t.Name));
176Binding = true;
177local Val = 0
178while Binding do
179wait();
180Val = (Val + 1) % 17;
181BT.Text = Val <= 8 and '|' or '';
182end
183t.Value = BindedKey;
184BT.Text = tostring(t.Value):match'%w+%.%w+%.(.+)';
185BT.Position = t.BasePosition + Vector2.new(t.BaseSize.X - BT.TextBounds.X - 20, -10);
186else
187local NewValue = v;
188if NewValue == nil then NewValue = not t.Value; end
189rawset(t, 'Value', NewValue);
190if Arguments[2] ~= nil then
191if typeof(Arguments[3]) == 'number' then
192local AMT = Menu:GetInstance(Format('%s_AmountText', t.Name));
193AMT.Text = tostring(t.Value);
194AMT.Position = t.BasePosition + Vector2.new(t.BaseSize.X - AMT.TextBounds.X - 10, -10);
195else
196local Inner = Menu:GetInstance(Format('%s_InnerCircle', t.Name));
197Inner.Visible = t.Value;
198end
199end
200end
201end;
202}));
203end;
204})
205
206function Load()
207local _, Result = pcall(readfile, OptionsFile);
208if _ then -- extremely ugly code yea i know but i dont care p.s. i hate pcall
209local _, Table = pcall(HttpService.JSONDecode, HttpService, Result);
210if _ then
211for i, v in pairs(Table) do
212if Options[i] ~= nil and Options[i].Value ~= nil and (typeof(Options[i].Value) == 'boolean' or typeof(Options[i].Value) == 'number') then
213Options[i].Value = v.Value;
214pcall(Options[i], v.Value);
215end
216end
217end
218end
219end
220
221Options('Enabled', 'ESP Enabled', true);
222Options('ShowTeam', 'Show Team', true);
223Options('ShowName', 'Show Names', true);
224Options('ShowDistance', 'Show Distance', true);
225Options('ShowHealth', 'Show Health', true);
226Options('ShowBoxes', 'Show Boxes', true);
227Options('ShowTracers', 'Show Tracers', false);
228Options('ShowDot', 'Show Head Dot', false);
229Options('VisCheck', 'Visibility Check', false);
230Options('Crosshair', 'Crosshair', false);
231Options('TextOutline', 'Text Outline', true);
232Options('TextSize', 'Text Size', syn and 18 or 14, 10, 24); -- cuz synapse fonts look weird???
233Options('MaxDistance', 'Max Distance', 2500, 100, 5000);
234Options('RefreshRate', 'Refresh Rate (ms)', 5, 1, 200);
235Options('MenuKey', 'Menu Key', Enum.KeyCode.F4, 1);
236Options('ResetSettings', 'Reset Settings', function()
237for i, v in pairs(Options) do
238if Options[i] ~= nil and Options[i].Value ~= nil and Options[i].Text ~= nil and (typeof(Options[i].Value) == 'boolean' or typeof(Options[i].Value) == 'number') then
239Options[i](Options[i].DefaultValue);
240end
241end
242end, 4);
243Options('LoadSettings', 'Load Settings', Load, 3);
244Options('SaveSettings', 'Save Settings', function()
245writefile(OptionsFile, HttpService:JSONEncode(Options));
246end, 2)
247-- Options.SaveSettings.Value();
248
249Load();
250
251Options('MenuOpen', nil, true);
252
253local function Set(t, i, v)
254t[i] = v;
255end
256local function Combine(...)
257local Output = {};
258for i, v in pairs{...} do
259if typeof(v) == 'table' then
260table.foreach(v, function(i, v)
261Output[i] = v;
262end)
263end
264end
265return Output
266end
267function IsStringEmpty(String)
268if type(String) == 'string' then
269return String:match'^%s+$' ~= nil or #String == 0 or String == '' or false;
270end
271return false
272end
273
274function NewDrawing(InstanceName)
275local Instance = Drawing.new(InstanceName);
276return (function(Properties)
277for i, v in pairs(Properties) do
278pcall(Set, Instance, i, v);
279end
280return Instance;
281end)
282end
283
284function Menu:AddMenuInstace(Name, Instance)
285if shared.MenuDrawingData.Instances[Name] ~= nil then
286shared.MenuDrawingData.Instances[Name]:Remove();
287end
288shared.MenuDrawingData.Instances[Name] = Instance;
289return Instance;
290end
291function Menu:UpdateMenuInstance(Name)
292local Instance = shared.MenuDrawingData.Instances[Name];
293if Instance ~= nil then
294return (function(Properties)
295for i, v in pairs(Properties) do
296-- print(Format('%s %s -> %s', Name, tostring(i), tostring(v)));
297pcall(Set, Instance, i, v);
298end
299return Instance;
300end)
301end
302end
303function Menu:GetInstance(Name)
304return shared.MenuDrawingData.Instances[Name];
305end
306
307function LineBox:Create(Properties)
308local Box = { Visible = true }; -- prevent errors not really though dont worry bout the Visible = true thing
309
310local Properties = Combine({
311Transparency = 1;
312Thickness = 1;
313Visible = true;
314}, Properties);
315
316Box['TopLeft'] = NewDrawing'Line'(Properties);
317Box['TopRight'] = NewDrawing'Line'(Properties);
318Box['BottomLeft'] = NewDrawing'Line'(Properties);
319Box['BottomRight'] = NewDrawing'Line'(Properties);
320
321function Box:Update(CF, Size, Color, Properties)
322if not CF or not Size then return end
323
324local TLPos, Visible1 = Camera:WorldToViewportPoint((CF * CFrame.new( Size.X, Size.Y, 0)).p);
325local TRPos, Visible2 = Camera:WorldToViewportPoint((CF * CFrame.new(-Size.X, Size.Y, 0)).p);
326local BLPos, Visible3 = Camera:WorldToViewportPoint((CF * CFrame.new( Size.X, -Size.Y, 0)).p);
327local BRPos, Visible4 = Camera:WorldToViewportPoint((CF * CFrame.new(-Size.X, -Size.Y, 0)).p);
328-- ## BEGIN UGLY CODE
329if Visible1 then
330Box['TopLeft'].Visible = true;
331Box['TopLeft'].Color = Color;
332Box['TopLeft'].From = Vector2.new(TLPos.X, TLPos.Y);
333Box['TopLeft'].To = Vector2.new(TRPos.X, TRPos.Y);
334else
335Box['TopLeft'].Visible = false;
336end
337if Visible2 then
338Box['TopRight'].Visible = true;
339Box['TopRight'].Color = Color;
340Box['TopRight'].From = Vector2.new(TRPos.X, TRPos.Y);
341Box['TopRight'].To = Vector2.new(BRPos.X, BRPos.Y);
342else
343Box['TopRight'].Visible = false;
344end
345if Visible3 then
346Box['BottomLeft'].Visible = true;
347Box['BottomLeft'].Color = Color;
348Box['BottomLeft'].From = Vector2.new(BLPos.X, BLPos.Y);
349Box['BottomLeft'].To = Vector2.new(TLPos.X, TLPos.Y);
350else
351Box['BottomLeft'].Visible = false;
352end
353if Visible4 then
354Box['BottomRight'].Visible = true;
355Box['BottomRight'].Color = Color;
356Box['BottomRight'].From = Vector2.new(BRPos.X, BRPos.Y);
357Box['BottomRight'].To = Vector2.new(BLPos.X, BLPos.Y);
358else
359Box['BottomRight'].Visible = false;
360end
361-- ## END UGLY CODE
362if Properties then
363GetTableData(Properties)(function(i, v)
364pcall(Set, Box['TopLeft'], i, v);
365pcall(Set, Box['TopRight'], i, v);
366pcall(Set, Box['BottomLeft'], i, v);
367pcall(Set, Box['BottomRight'], i, v);
368end)
369end
370end
371function Box:SetVisible(bool)
372pcall(Set, Box['TopLeft'], 'Visible', bool);
373pcall(Set, Box['TopRight'], 'Visible', bool);
374pcall(Set, Box['BottomLeft'], 'Visible', bool);
375pcall(Set, Box['BottomRight'], 'Visible', bool);
376end
377function Box:Remove()
378self:SetVisible(false);
379Box['TopLeft']:Remove();
380Box['TopRight']:Remove();
381Box['BottomLeft']:Remove();
382Box['BottomRight']:Remove();
383end
384
385return Box;
386end
387
388function CreateMenu(NewPosition) -- Create Menu
389local function FromHex(HEX)
390HEX = HEX:gsub('#', '');
391return Color3.fromRGB(tonumber('0x' .. HEX:sub(1, 2)), tonumber('0x' .. HEX:sub(3, 4)), tonumber('0x' .. HEX:sub(5, 6)));
392end
393
394local Colors = {
395Primary = {
396Main = FromHex'424242';
397Light = FromHex'6d6d6d';
398Dark = FromHex'1b1b1b';
399};
400Secondary = {
401Main = FromHex'e0e0e0';
402Light = FromHex'ffffff';
403Dark = FromHex'aeaeae';
404};
405};
406
407MenuLoaded = false;
408
409GetTableData(UIButtons)(function(i, v)
410v.Instance.Visible = false;
411v.Instance:Remove();
412end)
413GetTableData(Sliders)(function(i, v)
414v.Instance.Visible = false;
415v.Instance:Remove();
416end)
417
418UIButtons = {};
419Sliders = {};
420
421local BaseSize = Vector2.new(300, 580);
422local BasePosition = NewPosition or Vector2.new(Camera.ViewportSize.X / 8 - (BaseSize.X / 2), Camera.ViewportSize.Y / 2 - (BaseSize.Y / 2));
423
424Menu:AddMenuInstace('CrosshairX', NewDrawing'Line'{
425Visible = false;
426Color = Color3.new(0, 1, 0);
427Transparency = 1;
428Thickness = 1;
429});
430Menu:AddMenuInstace('CrosshairY', NewDrawing'Line'{
431Visible = false;
432Color = Color3.new(0, 1, 0);
433Transparency = 1;
434Thickness = 1;
435});
436
437delay(.025, function() -- since zindex doesnt exist
438Menu:AddMenuInstace('Main', NewDrawing'Square'{
439Size = BaseSize;
440Position = BasePosition;
441Filled = false;
442Color = Colors.Primary.Main;
443Thickness = 3;
444Visible = true;
445});
446end);
447Menu:AddMenuInstace('TopBar', NewDrawing'Square'{
448Position = BasePosition;
449Size = Vector2.new(BaseSize.X, 25);
450Color = Colors.Primary.Dark;
451Filled = true;
452Visible = true;
453});
454Menu:AddMenuInstace('TopBarTwo', NewDrawing'Square'{
455Position = BasePosition + Vector2.new(0, 25);
456Size = Vector2.new(BaseSize.X, 60);
457Color = Colors.Primary.Main;
458Filled = true;
459Visible = true;
460});
461Menu:AddMenuInstace('TopBarText', NewDrawing'Text'{
462Size = 25;
463Position = shared.MenuDrawingData.Instances.TopBarTwo.Position + Vector2.new(25, 15);
464Text = 'Unnamed ESP';
465Color = Colors.Secondary.Light;
466Visible = true;
467});
468Menu:AddMenuInstace('TopBarTextBR', NewDrawing'Text'{
469Size = 15;
470Position = shared.MenuDrawingData.Instances.TopBarTwo.Position + Vector2.new(BaseSize.X - 65, 40);
471Text = 'by ic3w0lf';
472Color = Colors.Secondary.Dark;
473Visible = true;
474});
475Menu:AddMenuInstace('Filling', NewDrawing'Square'{
476Size = BaseSize - Vector2.new(0, 85);
477Position = BasePosition + Vector2.new(0, 85);
478Filled = true;
479Color = Colors.Secondary.Main;
480Transparency= .5;
481Visible = true;
482});
483
484local CPos = 0;
485
486GetTableData(Options)(function(i, v)
487if typeof(v.Value) == 'boolean' and not IsStringEmpty(v.Text) and v.Text ~= nil then
488CPos = CPos + 25;
489local BaseSize = Vector2.new(BaseSize.X, 30);
490local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(30, v.Index * 25 - 10);
491UIButtons[#UIButtons + 1] = {
492Option = v;
493Instance = Menu:AddMenuInstace(Format('%s_Hitbox', v.Name), NewDrawing'Square'{
494Position = BasePosition - Vector2.new(30, 15);
495Size = BaseSize;
496Visible = false;
497});
498};
499Menu:AddMenuInstace(Format('%s_OuterCircle', v.Name), NewDrawing'Circle'{
500Radius = 10;
501Position = BasePosition;
502Color = Colors.Secondary.Light;
503Filled = true;
504Visible = true;
505});
506Menu:AddMenuInstace(Format('%s_InnerCircle', v.Name), NewDrawing'Circle'{
507Radius = 7;
508Position = BasePosition;
509Color = Colors.Secondary.Dark;
510Filled = true;
511Visible = v.Value;
512});
513Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
514Text = v.Text;
515Size = 20;
516Position = BasePosition + Vector2.new(20, -10);
517Visible = true;
518Color = Colors.Primary.Dark;
519});
520end
521end)
522GetTableData(Options)(function(i, v) -- just to make sure certain things are drawn before or after others, too lazy to actually sort table
523if typeof(v.Value) == 'number' then
524CPos = CPos + 25;
525
526local BaseSize = Vector2.new(BaseSize.X, 30);
527local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(0, CPos - 10);
528
529local Text = Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
530Text = v.Text;
531Size = 20;
532Position = BasePosition + Vector2.new(20, -10);
533Visible = true;
534Color = Colors.Primary.Dark;
535});
536local AMT = Menu:AddMenuInstace(Format('%s_AmountText', v.Name), NewDrawing'Text'{
537Text = tostring(v.Value);
538Size = 20;
539Position = BasePosition;
540Visible = true;
541Color = Colors.Primary.Dark;
542});
543local Line = Menu:AddMenuInstace(Format('%s_SliderLine', v.Name), NewDrawing'Line'{
544Transparency = 1;
545Color = Colors.Primary.Dark;
546Thickness = 3;
547Visible = true;
548From = BasePosition + Vector2.new(20, 20);
549To = BasePosition + Vector2.new(BaseSize.X - 10, 20);
550});
551CPos = CPos + 10;
552local Slider = Menu:AddMenuInstace(Format('%s_Slider', v.Name), NewDrawing'Circle'{
553Visible = true;
554Filled = true;
555Radius = 6;
556Color = Colors.Secondary.Dark;
557Position = BasePosition + Vector2.new(35, 20);
558})
559
560local CSlider = {Slider = Slider; Line = Line; Min = v.AllArgs[4]; Max = v.AllArgs[5]; Option = v};
561Sliders[#Sliders + 1] = CSlider;
562
563-- local Percent = (v.Value / CSlider.Max) * 100;
564-- local Size = math.abs(Line.From.X - Line.To.X);
565-- local Value = Size * (Percent / 100); -- this shit's inaccurate but fuck it i'm not even gonna bother fixing it
566
567Slider.Position = BasePosition + Vector2.new(40, 20);
568
569v.BaseSize = BaseSize;
570v.BasePosition = BasePosition;
571AMT.Position = BasePosition + Vector2.new(BaseSize.X - AMT.TextBounds.X - 10, -10)
572end
573end)
574GetTableData(Options)(function(i, v) -- just to make sure certain things are drawn before or after others, too lazy to actually sort table
575if typeof(v.Value) == 'EnumItem' then
576CPos = CPos + 30;
577
578local BaseSize = Vector2.new(BaseSize.X, 30);
579local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(0, CPos - 10);
580
581UIButtons[#UIButtons + 1] = {
582Option = v;
583Instance = Menu:AddMenuInstace(Format('%s_Hitbox', v.Name), NewDrawing'Square'{
584Size = Vector2.new(BaseSize.X, 20) - Vector2.new(30, 0);
585Visible = true;
586Transparency= .5;
587Position = BasePosition + Vector2.new(15, -10);
588Color = Colors.Secondary.Light;
589Filled = true;
590});
591};
592local Text = Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
593Text = v.Text;
594Size = 20;
595Position = BasePosition + Vector2.new(20, -10);
596Visible = true;
597Color = Colors.Primary.Dark;
598});
599local BindText = Menu:AddMenuInstace(Format('%s_BindText', v.Name), NewDrawing'Text'{
600Text = tostring(v.Value):match'%w+%.%w+%.(.+)';
601Size = 20;
602Position = BasePosition;
603Visible = true;
604Color = Colors.Primary.Dark;
605});
606
607Options[i].BaseSize = BaseSize;
608Options[i].BasePosition = BasePosition;
609BindText.Position = BasePosition + Vector2.new(BaseSize.X - BindText.TextBounds.X - 20, -10);
610end
611end)
612GetTableData(Options)(function(i, v) -- just to make sure certain things are drawn before or after others, too lazy to actually sort table
613if typeof(v.Value) == 'function' then
614local BaseSize = Vector2.new(BaseSize.X, 30);
615local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(0, CPos + (25 * v.AllArgs[4]) - 35);
616
617UIButtons[#UIButtons + 1] = {
618Option = v;
619Instance = Menu:AddMenuInstace(Format('%s_Hitbox', v.Name), NewDrawing'Square'{
620Size = Vector2.new(BaseSize.X, 20) - Vector2.new(30, 0);
621Visible = true;
622Transparency= .5;
623Position = BasePosition + Vector2.new(15, -10);
624Color = Colors.Secondary.Light;
625Filled = true;
626});
627};
628local Text = Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
629Text = v.Text;
630Size = 20;
631Position = BasePosition + Vector2.new(20, -10);
632Visible = true;
633Color = Colors.Primary.Dark;
634});
635
636-- BindText.Position = BasePosition + Vector2.new(BaseSize.X - BindText.TextBounds.X - 10, -10);
637end
638end)
639
640delay(.1, function()
641MenuLoaded = true;
642end);
643
644-- this has to be at the bottom cuz proto drawing api doesnt have zindex :triumph:
645Menu:AddMenuInstace('Cursor1', NewDrawing'Line'{
646Visible = false;
647Color = Color3.new(1, 0, 0);
648Transparency = 1;
649Thickness = 2;
650});
651Menu:AddMenuInstace('Cursor2', NewDrawing'Line'{
652Visible = false;
653Color = Color3.new(1, 0, 0);
654Transparency = 1;
655Thickness = 2;
656});
657Menu:AddMenuInstace('Cursor3', NewDrawing'Line'{
658Visible = false;
659Color = Color3.new(1, 0, 0);
660Transparency = 1;
661Thickness = 2;
662});
663end
664
665CreateMenu();
666
667shared.InputBeganCon = UserInputService.InputBegan:connect(function(input)
668if input.UserInputType.Name == 'MouseButton1' and Options.MenuOpen.Value then
669MouseHeld = true;
670local Bar = Menu:GetInstance'TopBar';
671local Values = {
672Bar.Position.X;
673Bar.Position.Y;
674Bar.Position.X + Bar.Size.X;
675Bar.Position.Y + Bar.Size.Y;
676}
677if MouseHoveringOver(Values) and not syn then -- disable dragging for synapse cuz idk why it breaks
678DraggingUI = true;
679DragOffset = Menu:GetInstance'Main'.Position - GetMouseLocation();
680else
681for i, v in pairs(Sliders) do
682local Values = {
683v.Line.From.X - (v.Slider.Radius);
684v.Line.From.Y - (v.Slider.Radius);
685v.Line.To.X + (v.Slider.Radius);
686v.Line.To.Y + (v.Slider.Radius);
687};
688if MouseHoveringOver(Values) then
689DraggingWhat = v;
690Dragging = true;
691break
692end
693end
694end
695end
696end)
697shared.InputEndedCon = UserInputService.InputEnded:connect(function(input)
698if input.UserInputType.Name == 'MouseButton1' and Options.MenuOpen.Value then
699MouseHeld = false;
700for i, v in pairs(UIButtons) do
701local Values = {
702v.Instance.Position.X;
703v.Instance.Position.Y;
704v.Instance.Position.X + v.Instance.Size.X;
705v.Instance.Position.Y + v.Instance.Size.Y;
706};
707if MouseHoveringOver(Values) then
708v.Option();
709break -- prevent clicking 2 options
710end
711end
712elseif input.UserInputType.Name == 'Keyboard' then
713if Binding then
714BindedKey = input.KeyCode;
715Binding = false;
716elseif input.KeyCode == Options.MenuKey.Value or (input.KeyCode == Enum.KeyCode.Home and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl)) then
717Options.MenuOpen();
718end
719end
720end)
721
722function ToggleMenu()
723if Options.MenuOpen.Value then
724GetTableData(shared.MenuDrawingData.Instances)(function(i, v)
725if OldData[v] then
726pcall(Set, v, 'Visible', true);
727end
728end)
729else
730-- GUIService:SetMenuIsOpen(false);
731GetTableData(shared.MenuDrawingData.Instances)(function(i, v)
732if v.Visible == true then
733OldData[v] = true;
734pcall(Set, v, 'Visible', false);
735end
736end)
737end
738end
739
740function CheckRay(Player, Distance, Position, Unit)
741local Pass = true;
742
743if Distance > 999 then return false; end
744
745local _Ray = Ray.new(Position, Unit * Distance);
746
747local List = {LocalPlayer.Character, Camera, Mouse.TargetFilter};
748
749for i,v in pairs(IgnoreList) do table.insert(List, v); end;
750
751local Hit = workspace:FindPartOnRayWithIgnoreList(_Ray, List);
752if Hit and not Hit:IsDescendantOf(Player.Character) then
753Pass = false;
754if Hit.Transparency >= .3 or not Hit.CanCollide and Hit.ClassName ~= Terrain then -- Detect invisible walls
755IgnoreList[#IgnoreList + 1] = Hit;
756end
757end
758
759return Pass;
760end
761
762function CheckPlayer(Player)
763if not Options.Enabled.Value then return false end
764
765local Pass = true;
766local Distance = 0;
767
768if Player ~= LocalPlayer and Player.Character then
769if not Options.ShowTeam.Value and Player.TeamColor == LocalPlayer.TeamColor then
770Pass = false;
771end
772
773local Head = Player.Character:FindFirstChild'Head';
774
775if Pass and Player.Character and Head then
776Distance = (Camera.CFrame.p - Head.Position).magnitude;
777if Options.VisCheck.Value then
778Pass = CheckRay(Player, Distance, Camera.CFrame.p, (Head.Position - Camera.CFrame.p).unit);
779end
780if Distance > Options.MaxDistance.Value then
781Pass = false;
782end
783end
784else
785Pass = false;
786end
787
788return Pass, Distance;
789end
790
791function UpdatePlayerData()
792if (tick() - LastRefresh) > (Options.RefreshRate.Value / 1000) then
793LastRefresh = tick();
794for i, v in pairs(Players:GetPlayers()) do
795local Data = shared.PlayerData[v.Name] or { Instances = {} };
796
797Data.Instances['Box'] = Data.Instances['Box'] or LineBox:Create{Thickness = 3};
798Data.Instances['Tracer'] = Data.Instances['Tracer'] or NewDrawing'Line'{
799Transparency = 1;
800Thickness = 2;
801}
802Data.Instances['HeadDot'] = Data.Instances['HeadDot'] or NewDrawing'Circle'{
803Filled = true;
804NumSides = 30;
805}
806Data.Instances['NameTag'] = Data.Instances['NameTag'] or NewDrawing'Text'{
807Size = Options.TextSize.Value;
808Center = true;
809Outline = Options.TextOutline.Value;
810Visible = true;
811};
812Data.Instances['DistanceHealthTag'] = Data.Instances['DistanceHealthTag'] or NewDrawing'Text'{
813Size = Options.TextSize.Value - 1;
814Center = true;
815Outline = Options.TextOutline.Value;
816Visible = true;
817};
818
819local NameTag = Data.Instances['NameTag'];
820local DistanceTag = Data.Instances['DistanceHealthTag'];
821local Tracer = Data.Instances['Tracer'];
822local HeadDot = Data.Instances['HeadDot'];
823local Box = Data.Instances['Box'];
824
825local Pass, Distance = CheckPlayer(v);
826
827if Pass and v.Character then
828Data.LastUpdate = tick();
829local Humanoid = v.Character:FindFirstChildOfClass'Humanoid';
830local Head = v.Character:FindFirstChild'Head';
831local HumanoidRootPart = v.Character:FindFirstChild'HumanoidRootPart';
832if v.Character ~= nil and Head then
833local ScreenPosition, Vis = Camera:WorldToViewportPoint(Head.Position);
834if Vis then
835local Color = v.TeamColor == LocalPlayer.TeamColor and Green or Red;
836
837local ScreenPositionUpper = Camera:WorldToViewportPoint(Head.CFrame * CFrame.new(0, Head.Size.Y, 0).p);
838local Scale = Head.Size.Y / 2;
839
840if Options.ShowName.Value then
841NameTag.Visible = true;
842NameTag.Text = v.Name;
843NameTag.Size = Options.TextSize.Value;
844NameTag.Outline = Options.TextOutline.Value;
845NameTag.Position = Vector2.new(ScreenPositionUpper.X, ScreenPositionUpper.Y);
846NameTag.Color = Color;
847if Drawing.Fonts then -- CURRENTLY SYNAPSE ONLY :MEGAHOLY:
848NameTag.Font = Drawing.Fonts.UI;
849end
850else
851NameTag.Visible = false;
852end
853if Options.ShowDistance.Value or Options.ShowHealth.Value then
854DistanceTag.Visible = true;
855DistanceTag.Size = Options.TextSize.Value - 1;
856DistanceTag.Outline = Options.TextOutline.Value;
857DistanceTag.Color = Color3.new(1, 1, 1);
858if Drawing.Fonts then -- CURRENTLY SYNAPSE ONLY :MEGAHOLY:
859NameTag.Font = Drawing.Fonts.UI;
860end
861
862local Str = '';
863
864if Options.ShowDistance.Value then
865Str = Str .. Format('[%d] ', Distance);
866end
867if Options.ShowHealth.Value and Humanoid then
868Str = Str .. Format('[%d/100]', Humanoid.Health / Humanoid.MaxHealth * 100);
869end
870
871DistanceTag.Text = Str;
872DistanceTag.Position = Vector2.new(ScreenPositionUpper.X, ScreenPositionUpper.Y) + Vector2.new(0, NameTag.Size);
873else
874DistanceTag.Visible = false;
875end
876if Options.ShowDot.Value then
877local Top = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, Scale, 0)).p);
878local Bottom = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, -Scale, 0)).p);
879local Radius = (Top - Bottom).y;
880
881HeadDot.Visible = true;
882HeadDot.Color = Color;
883HeadDot.Position = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
884HeadDot.Radius = Radius;
885else
886HeadDot.Visible = false;
887end
888if Options.ShowTracers.Value then
889Tracer.Visible = true;
890Tracer.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y);
891Tracer.To = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
892Tracer.Color = Color;
893else
894Tracer.Visible = false;
895end
896if Options.ShowBoxes.Value and HumanoidRootPart then
897Box:Update(HumanoidRootPart.CFrame, Vector3.new(2, 3, 0) * (Scale * 2), Color);
898else
899Box:SetVisible(false);
900end
901else
902NameTag.Visible = false;
903DistanceTag.Visible = false;
904Tracer.Visible = false;
905HeadDot.Visible = false;
906
907Box:SetVisible(false);
908end
909end
910else
911NameTag.Visible = false;
912DistanceTag.Visible = false;
913Tracer.Visible = false;
914HeadDot.Visible = false;
915
916Box:SetVisible(false);
917end
918
919shared.PlayerData[v.Name] = Data;
920end
921end
922end
923
924function Update()
925for i, v in pairs(shared.PlayerData) do
926if not Players:FindFirstChild(tostring(i)) then
927GetTableData(v.Instances)(function(i, obj)
928obj.Visible = false;
929obj:Remove();
930v.Instances[i] = nil;
931end)
932shared.PlayerData[i] = nil;
933end
934end
935
936local CX = Menu:GetInstance'CrosshairX';
937local CY = Menu:GetInstance'CrosshairY';
938if Options.Crosshair.Value then
939CX.Visible = true;
940CY.Visible = true;
941
942CX.To = Vector2.new((Camera.ViewportSize.X / 2) - 8, (Camera.ViewportSize.Y / 2));
943CX.From = Vector2.new((Camera.ViewportSize.X / 2) + 8, (Camera.ViewportSize.Y / 2));
944CY.To = Vector2.new((Camera.ViewportSize.X / 2), (Camera.ViewportSize.Y / 2) - 8);
945CY.From = Vector2.new((Camera.ViewportSize.X / 2), (Camera.ViewportSize.Y / 2) + 8);
946else
947CX.Visible = false;
948CY.Visible = false;
949end
950
951if Options.MenuOpen.Value and MenuLoaded then
952local MLocation = GetMouseLocation();
953shared.MenuDrawingData.Instances.Main.Color = Color3.fromHSV(tick() * 24 % 255/255, 1, 1);
954local MainInstance = Menu:GetInstance'Main';
955local Values = {
956MainInstance.Position.X;
957MainInstance.Position.Y;
958MainInstance.Position.X + MainInstance.Size.X;
959MainInstance.Position.Y + MainInstance.Size.Y;
960};
961if MainInstance and MouseHoveringOver(Values) then
962Debounce.CursorVis = true;
963-- GUIService:SetMenuIsOpen(true);
964Menu:UpdateMenuInstance'Cursor1'{
965Visible = true;
966From = Vector2.new(MLocation.x, MLocation.y);
967To = Vector2.new(MLocation.x + 5, MLocation.y + 6);
968}
969Menu:UpdateMenuInstance'Cursor2'{
970Visible = true;
971From = Vector2.new(MLocation.x, MLocation.y);
972To = Vector2.new(MLocation.x, MLocation.y + 8);
973}
974Menu:UpdateMenuInstance'Cursor3'{
975Visible = true;
976From = Vector2.new(MLocation.x, MLocation.y + 6);
977To = Vector2.new(MLocation.x + 5, MLocation.y + 5);
978}
979else
980if Debounce.CursorVis then
981Debounce.CursorVis = false;
982-- GUIService:SetMenuIsOpen(false);
983Menu:UpdateMenuInstance'Cursor1'{Visible = false};
984Menu:UpdateMenuInstance'Cursor2'{Visible = false};
985Menu:UpdateMenuInstance'Cursor3'{Visible = false};
986end
987end
988if MouseHeld then
989if Dragging then
990DraggingWhat.Slider.Position = Vector2.new(math.clamp(MLocation.X, DraggingWhat.Line.From.X, DraggingWhat.Line.To.X), DraggingWhat.Slider.Position.Y);
991local Percent = (DraggingWhat.Slider.Position.X - DraggingWhat.Line.From.X) / ((DraggingWhat.Line.To.X - DraggingWhat.Line.From.X));
992local Value = CalculateValue(DraggingWhat.Min, DraggingWhat.Max, Percent);
993DraggingWhat.Option(Value);
994elseif DraggingUI then
995Debounce.UIDrag = true;
996local Main = Menu:GetInstance'Main';
997local MousePos = GetMouseLocation();
998Main.Position = MousePos + DragOffset;
999end
1000else
1001Dragging = false;
1002if DraggingUI and Debounce.UIDrag then
1003Debounce.UIDrag = false;
1004DraggingUI = false;
1005CreateMenu(Menu:GetInstance'Main'.Position);
1006end
1007end
1008if not Debounce.Menu then
1009Debounce.Menu = true;
1010ToggleMenu();
1011end
1012elseif Debounce.Menu and not Options.MenuOpen.Value then
1013Debounce.Menu = false;
1014ToggleMenu();
1015end
1016end
1017
1018RunService:UnbindFromRenderStep(GetDataName);
1019RunService:UnbindFromRenderStep(UpdateName);
1020
1021RunService:BindToRenderStep(GetDataName, 1, UpdatePlayerData);
1022RunService:BindToRenderStep(UpdateName, 1, Update);
1023end)
1024
1025Fly.Name = "Fly"
1026Fly.Parent = Main
1027Fly.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1028Fly.BorderSizePixel = 0
1029Fly.Position = UDim2.new(0, 0, 0.253424644, 0)
1030Fly.Size = UDim2.new(0, 154, 0, 39)
1031Fly.Font = Enum.Font.Code
1032Fly.Text = "Fly"
1033Fly.TextColor3 = Color3.new(0.333333, 1, 0.498039)
1034Fly.TextScaled = true
1035Fly.TextSize = 14
1036Fly.TextWrapped = true
1037Fly.MouseButton1Down:connect(function()
1038 --By lindsay on v3rmillion
1039_G.FLYING = false
1040local LP = game:service('Players').LocalPlayer
1041local T = LP.Character.UpperTorso
1042local CONTROL = {F = 0, B = 0, L = 0, R = 0}
1043local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
1044local SPEED = 5
1045local MOUSE = LP:GetMouse()
1046
1047
1048local function FLY()
1049 _G.FLYING = true
1050 local BG = Instance.new('BodyGyro', T)
1051 local BV = Instance.new('BodyVelocity', T)
1052 BG.P = 9e4
1053 BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
1054 BG.cframe = T.CFrame
1055 BV.velocity = Vector3.new(0, 0.1, 0)
1056 BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
1057
1058
1059 spawn(function()
1060 repeat wait()
1061 LP.Character.Humanoid.PlatformStand = true
1062 if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
1063 SPEED = 50
1064 elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
1065 SPEED = 0
1066 end
1067 if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
1068 BV.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
1069 lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
1070 elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
1071 BV.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
1072 else
1073 BV.velocity = Vector3.new(0, 0.1, 0)
1074 end
1075 BG.cframe = game.Workspace.CurrentCamera.CoordinateFrame
1076 until not _G.FLYING
1077 CONTROL = {F = 0, B = 0, L = 0, R = 0}
1078 lCONTROL = {F = 0, B = 0, L = 0, R = 0}
1079 SPEED = 0
1080 BG:destroy()
1081 BV:destroy()
1082 LP.Character.Humanoid.PlatformStand = false
1083 end)
1084 end
1085
1086 MOUSE.KeyDown:connect(function(KEY)
1087 if KEY:lower() == 'w' then
1088 CONTROL.F = 1
1089 elseif KEY:lower() == 's' then
1090 CONTROL.B = -1
1091 elseif KEY:lower() == 'a' then
1092 CONTROL.L = -1
1093 elseif KEY:lower() == 'd' then
1094 CONTROL.R = 1
1095 end
1096 end)
1097
1098 MOUSE.KeyUp:connect(function(KEY)
1099 if KEY:lower() == 'w' then
1100 CONTROL.F = 0
1101 elseif KEY:lower() == 's' then
1102 CONTROL.B = 0
1103 elseif KEY:lower() == 'a' then
1104 CONTROL.L = 0
1105 elseif KEY:lower() == 'd' then
1106 CONTROL.R = 0
1107 end
1108 end)
1109
1110
1111
1112
1113 FLY()
1114end)
1115
1116Unfly.Name = "Unfly"
1117Unfly.Parent = Main
1118Unfly.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1119Unfly.BorderSizePixel = 0
1120Unfly.Position = UDim2.new(0, 0, 0.344748855, 0)
1121Unfly.Size = UDim2.new(0, 154, 0, 39)
1122Unfly.Font = Enum.Font.Code
1123Unfly.Text = "UnFly"
1124Unfly.TextColor3 = Color3.new(0, 0.333333, 1)
1125Unfly.TextScaled = true
1126Unfly.TextSize = 14
1127Unfly.TextWrapped = true
1128Unfly.MouseButton1Down:connect(function()
1129 --By lindsay on v3rmillion
1130_G.FLYING = false
1131local LP = game:service('Players').LocalPlayer
1132local T = LP.Character.UpperTorso
1133local CONTROL = {F = 0, B = 0, L = 0, R = 0}
1134local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
1135local SPEED = 5
1136local MOUSE = LP:GetMouse()
1137
1138
1139local function FLY()
1140 _G.FLYING = false
1141 local BG = Instance.new('BodyGyro', T)
1142 local BV = Instance.new('BodyVelocity', T)
1143 BG.P = 9e4
1144 BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
1145 BG.cframe = T.CFrame
1146 BV.velocity = Vector3.new(0, 0.1, 0)
1147 BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
1148
1149
1150 spawn(function()
1151 repeat wait()
1152 LP.Character.Humanoid.PlatformStand = true
1153 if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
1154 SPEED = 50
1155 elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
1156 SPEED = 0
1157 end
1158 if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
1159 BV.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
1160 lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
1161 elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
1162 BV.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
1163 else
1164 BV.velocity = Vector3.new(0, 0.1, 0)
1165 end
1166 BG.cframe = game.Workspace.CurrentCamera.CoordinateFrame
1167 until not _G.FLYING
1168 CONTROL = {F = 0, B = 0, L = 0, R = 0}
1169 lCONTROL = {F = 0, B = 0, L = 0, R = 0}
1170 SPEED = 0
1171 BG:destroy()
1172 BV:destroy()
1173 LP.Character.Humanoid.PlatformStand = false
1174 end)
1175 end
1176
1177 MOUSE.KeyDown:connect(function(KEY)
1178 if KEY:lower() == 'w' then
1179 CONTROL.F = 1
1180 elseif KEY:lower() == 's' then
1181 CONTROL.B = -1
1182 elseif KEY:lower() == 'a' then
1183 CONTROL.L = -1
1184 elseif KEY:lower() == 'd' then
1185 CONTROL.R = 1
1186 end
1187 end)
1188
1189 MOUSE.KeyUp:connect(function(KEY)
1190 if KEY:lower() == 'w' then
1191 CONTROL.F = 0
1192 elseif KEY:lower() == 's' then
1193 CONTROL.B = 0
1194 elseif KEY:lower() == 'a' then
1195 CONTROL.L = 0
1196 elseif KEY:lower() == 'd' then
1197 CONTROL.R = 0
1198 end
1199 end)
1200
1201
1202
1203
1204 FLY()
1205end)
1206
1207NoclipE.Name = "Noclip [E]"
1208NoclipE.Parent = Main
1209NoclipE.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1210NoclipE.BorderSizePixel = 0
1211NoclipE.Position = UDim2.new(0, 0, 0.433789968, 0)
1212NoclipE.Size = UDim2.new(0, 154, 0, 39)
1213NoclipE.Font = Enum.Font.Code
1214NoclipE.Text = "Noclip [R]"
1215NoclipE.TextColor3 = Color3.new(1, 0.666667, 0)
1216NoclipE.TextScaled = true
1217NoclipE.TextSize = 14
1218NoclipE.TextWrapped = true
1219NoclipE.MouseButton1Down:connect(function()
1220 local noclip = false
1221 game:GetService('RunService').Stepped:connect(function()
1222 if noclip then
1223 game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
1224 end
1225 end)
1226
1227 local plr = game.Players.LocalPlayer
1228 local mouse = plr:GetMouse()
1229 mouse.KeyDown:connect(function(key)
1230 if key == 'r' then
1231 noclip = not noclip
1232 game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
1233 end
1234 end)
1235end)
1236
1237DeleteShiftClick.Name = "Delete [Shift + Click]"
1238DeleteShiftClick.Parent = Main
1239DeleteShiftClick.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1240DeleteShiftClick.BorderSizePixel = 0
1241DeleteShiftClick.Position = UDim2.new(0, 0, 0.522831082, 0)
1242DeleteShiftClick.Size = UDim2.new(0, 154, 0, 39)
1243DeleteShiftClick.Font = Enum.Font.Code
1244DeleteShiftClick.Text = "Delete [Shift + Click]"
1245DeleteShiftClick.TextColor3 = Color3.new(0.333333, 1, 1)
1246DeleteShiftClick.TextScaled = true
1247DeleteShiftClick.TextSize = 14
1248DeleteShiftClick.TextWrapped = true
1249DeleteShiftClick.MouseButton1Down:connect(function()
1250 local Plr = game:GetService("Players").LocalPlayer
1251local Mouse = Plr:GetMouse()
1252
1253Mouse.Button1Down:connect(function()
1254if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftShift) then return end
1255if not Mouse.Target then return end
1256Mouse.Target:Destroy()
1257end)
1258
1259end)
1260
1261EnableBackpack.Name = "Enable Backpack"
1262EnableBackpack.Parent = Main
1263EnableBackpack.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1264EnableBackpack.BorderSizePixel = 0
1265EnableBackpack.Position = UDim2.new(0, 0, 0.611872196, 0)
1266EnableBackpack.Size = UDim2.new(0, 154, 0, 39)
1267EnableBackpack.Font = Enum.Font.Code
1268EnableBackpack.Text = "Enable Backpack"
1269EnableBackpack.TextColor3 = Color3.new(0.666667, 0.666667, 0)
1270EnableBackpack.TextScaled = true
1271EnableBackpack.TextSize = 14
1272EnableBackpack.TextWrapped = true
1273EnableBackpack.MouseButton1Down:connect(function()
1274 game.StarterGui:SetCoreGuiEnabled(2, true)
1275
1276
1277end)
1278
1279WalkSpeedHoldE.Name = "WalkSpeed [Hold E]"
1280WalkSpeedHoldE.Parent = Main
1281WalkSpeedHoldE.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1282WalkSpeedHoldE.BorderSizePixel = 0
1283WalkSpeedHoldE.Position = UDim2.new(0, 0, 0.70091331, 0)
1284WalkSpeedHoldE.Size = UDim2.new(0, 154, 0, 39)
1285WalkSpeedHoldE.Font = Enum.Font.Code
1286WalkSpeedHoldE.Text = "WalkSpeed [Hold E]"
1287WalkSpeedHoldE.TextColor3 = Color3.new(1, 0.333333, 0.498039)
1288WalkSpeedHoldE.TextScaled = true
1289WalkSpeedHoldE.TextSize = 14
1290WalkSpeedHoldE.TextWrapped = true
1291WalkSpeedHoldE.MouseButton1Down:connect(function()
1292 --This may be a little buggy, so beware.
1293--Hold "Q" to speed up
1294
1295
1296
1297
1298
1299
1300down = false
1301velocity = Instance.new("BodyVelocity")
1302velocity.maxForce = Vector3.new(100000, 0, 100000)
1303---vv Use that to change the speed v
1304local speed = 20
1305gyro = Instance.new("BodyGyro")
1306gyro.maxTorque = Vector3.new(100000, 0, 100000)
1307
1308local hum = game.Players.LocalPlayer.Character.Humanoid
1309
1310function onButton1Down(mouse)
1311down = true
1312velocity.Parent = game.Players.LocalPlayer.Character.UpperTorso
1313velocity.velocity = (hum.MoveDirection) * speed
1314gyro.Parent = game.Players.LocalPlayer.Character.UpperTorso
1315while down do
1316if not down then break end
1317velocity.velocity = (hum.MoveDirection) * speed
1318local refpos = gyro.Parent.Position + (gyro.Parent.Position - workspace.CurrentCamera.CoordinateFrame.p).unit * 5
1319gyro.cframe = CFrame.new(gyro.Parent.Position, Vector3.new(refpos.x, gyro.Parent.Position.y, refpos.z))
1320wait(0.1)
1321end
1322end
1323
1324function onButton1Up(mouse)
1325velocity.Parent = nil
1326gyro.Parent = nil
1327down = false
1328end
1329--To Change the key in those 2 lines, replace the "q" with your desired key
1330function onSelected(mouse)
1331mouse.KeyDown:connect(function(k) if k:lower()=="e"then onButton1Down(mouse)end end)
1332mouse.KeyUp:connect(function(k) if k:lower()=="e"then onButton1Up(mouse)end end)
1333end
1334
1335onSelected(game.Players.LocalPlayer:GetMouse())
1336end)
1337
1338InfiniteJump.Name = "Infinite Jump"
1339InfiniteJump.Parent = Main
1340InfiniteJump.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1341InfiniteJump.BorderSizePixel = 0
1342InfiniteJump.Position = UDim2.new(0, 0, 0.789954424, 0)
1343InfiniteJump.Size = UDim2.new(0, 154, 0, 39)
1344InfiniteJump.Font = Enum.Font.Code
1345InfiniteJump.Text = "Infinite Jump"
1346InfiniteJump.TextColor3 = Color3.new(0.333333, 0, 1)
1347InfiniteJump.TextScaled = true
1348InfiniteJump.TextSize = 14
1349InfiniteJump.TextWrapped = true
1350InfiniteJump.MouseButton1Down:connect(function()
1351 local Player = game:GetService'Players'.LocalPlayer;
1352local UIS = game:GetService'UserInputService';
1353
1354_G.JumpHeight = 50;
1355
1356function Action(Object, Function) if Object ~= nil then Function(Object); end end
1357
1358UIS.InputBegan:connect(function(UserInput)
1359 if UserInput.UserInputType == Enum.UserInputType.Keyboard and UserInput.KeyCode == Enum.KeyCode.Space then
1360 Action(Player.Character.Humanoid, function(self)
1361 if self:GetState() == Enum.HumanoidStateType.Jumping or self:GetState() == Enum.HumanoidStateType.Freefall then
1362 Action(self.Parent.HumanoidRootPart, function(self)
1363 self.Velocity = Vector3.new(0, _G.JumpHeight, 0);
1364 end)
1365 end
1366 end)
1367 end
1368end)
1369end)
1370
1371EnableShiftLock.Name = "Enable Shift Lock"
1372EnableShiftLock.Parent = Main
1373EnableShiftLock.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1374EnableShiftLock.BorderSizePixel = 0
1375EnableShiftLock.Position = UDim2.new(0, 0, 0.881278515, 0)
1376EnableShiftLock.Size = UDim2.new(0, 154, 0, 51)
1377EnableShiftLock.Font = Enum.Font.Code
1378EnableShiftLock.Text = "Enable Shift Lock"
1379EnableShiftLock.TextColor3 = Color3.new(1, 0, 0)
1380EnableShiftLock.TextScaled = true
1381EnableShiftLock.TextSize = 14
1382EnableShiftLock.TextWrapped = true
1383EnableShiftLock.MouseButton1Down:connect(function()
1384 game:GetService('Players').LocalPlayer.DevEnableMouseLock = true
1385end)
1386
1387Main2.Name = "Main2"
1388Main2.Parent = GetruHaxV42
1389Main2.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1390Main2.BorderSizePixel = 0
1391Main2.Position = UDim2.new(0.35298869, 0, 0.0436893217, 0)
1392Main2.Size = UDim2.new(0, 154, 0, 386)
1393Main2.Active = true
1394Main2.Draggable = true
1395
1396PhSaSASaer2.Name = "PhSaSASaer2"
1397PhSaSASaer2.Parent = Main2
1398PhSaSASaer2.BackgroundColor3 = Color3.new(0, 0.666667, 1)
1399PhSaSASaer2.BorderSizePixel = 0
1400PhSaSASaer2.Position = UDim2.new(0, 0, 0.12101911, 0)
1401PhSaSASaer2.Size = UDim2.new(0, 154, 0, 7)
1402
1403Teleports.Name = "Teleports"
1404Teleports.Parent = Main2
1405Teleports.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1406Teleports.BorderSizePixel = 0
1407Teleports.Size = UDim2.new(0, 154, 0, 38)
1408Teleports.Font = Enum.Font.Antique
1409Teleports.Text = "Teleports"
1410Teleports.TextColor3 = Color3.new(1, 0.666667, 0)
1411Teleports.TextScaled = true
1412Teleports.TextSize = 14
1413Teleports.TextWrapped = true
1414
1415OutSide.Name = "OutSide"
1416OutSide.Parent = Main2
1417OutSide.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1418OutSide.BorderSizePixel = 0
1419OutSide.Position = UDim2.new(0, 0, 0.173575133, 0)
1420OutSide.Size = UDim2.new(0, 154, 0, 36)
1421OutSide.Font = Enum.Font.Code
1422OutSide.Text = "OutSide TP"
1423OutSide.TextColor3 = Color3.new(0.333333, 1, 0)
1424OutSide.TextScaled = true
1425OutSide.TextSize = 14
1426OutSide.TextWrapped = true
1427OutSide.MouseButton1Down:connect(function()
1428 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(117, 4, -48)
1429end)
1430
1431Escape.Name = "Escape"
1432Escape.Parent = Main2
1433Escape.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1434Escape.BorderSizePixel = 0
1435Escape.Position = UDim2.new(0, 0, 0.266839385, 0)
1436Escape.Size = UDim2.new(0, 154, 0, 36)
1437Escape.Font = Enum.Font.Code
1438Escape.Text = "Escape TP"
1439Escape.TextColor3 = Color3.new(0.333333, 0, 1)
1440Escape.TextScaled = true
1441Escape.TextSize = 14
1442Escape.TextWrapped = true
1443Escape.MouseButton1Down:connect(function()
1444 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(117, 4, -150)
1445end)
1446
1447Ventilation.Name = "Ventilation"
1448Ventilation.Parent = Main2
1449Ventilation.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1450Ventilation.BorderSizePixel = 0
1451Ventilation.Position = UDim2.new(0, 0, 0.360103637, 0)
1452Ventilation.Size = UDim2.new(0, 154, 0, 36)
1453Ventilation.Font = Enum.Font.Code
1454Ventilation.Text = "Ventilation TP"
1455Ventilation.TextColor3 = Color3.new(1, 0.333333, 0)
1456Ventilation.TextScaled = true
1457Ventilation.TextSize = 14
1458Ventilation.TextWrapped = true
1459Ventilation.MouseButton1Down:connect(function()
1460 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(46, 13, 25)
1461end)
1462
1463GuardsRoom.Name = "Guard's Room"
1464GuardsRoom.Parent = Main2
1465GuardsRoom.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1466GuardsRoom.BorderSizePixel = 0
1467GuardsRoom.Position = UDim2.new(0, 0, 0.453367859, 0)
1468GuardsRoom.Size = UDim2.new(0, 154, 0, 36)
1469GuardsRoom.Font = Enum.Font.Code
1470GuardsRoom.Text = "Guard's Room TP"
1471GuardsRoom.TextColor3 = Color3.new(0.666667, 0.333333, 0.498039)
1472GuardsRoom.TextScaled = true
1473GuardsRoom.TextSize = 14
1474GuardsRoom.TextWrapped = true
1475GuardsRoom.MouseButton1Down:connect(function()
1476 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(137, 5, -120)
1477end)
1478
1479Bathhouse.Name = "Bathhouse"
1480Bathhouse.Parent = Main2
1481Bathhouse.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1482Bathhouse.BorderSizePixel = 0
1483Bathhouse.Position = UDim2.new(0, 0, 0.546632111, 0)
1484Bathhouse.Size = UDim2.new(0, 154, 0, 36)
1485Bathhouse.Font = Enum.Font.Code
1486Bathhouse.Text = "Bathhouse TP"
1487Bathhouse.TextColor3 = Color3.new(0.666667, 0, 0)
1488Bathhouse.TextScaled = true
1489Bathhouse.TextSize = 14
1490Bathhouse.TextWrapped = true
1491Bathhouse.MouseButton1Down:connect(function()
1492 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(209, 4, 42)
1493end)
1494
1495ElectricityRoom.Name = "Electricity Room"
1496ElectricityRoom.Parent = Main2
1497ElectricityRoom.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1498ElectricityRoom.BorderSizePixel = 0
1499ElectricityRoom.Position = UDim2.new(0, 0, 0.639896333, 0)
1500ElectricityRoom.Size = UDim2.new(0, 154, 0, 36)
1501ElectricityRoom.Font = Enum.Font.Code
1502ElectricityRoom.Text = "Electricity Room TP"
1503ElectricityRoom.TextColor3 = Color3.new(0, 0, 0.498039)
1504ElectricityRoom.TextScaled = true
1505ElectricityRoom.TextSize = 14
1506ElectricityRoom.TextWrapped = true
1507ElectricityRoom.MouseButton1Down:connect(function()
1508 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(99, 5, 32)
1509end)
1510
1511Boat.Name = "Boat"
1512Boat.Parent = Main2
1513Boat.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1514Boat.BorderSizePixel = 0
1515Boat.Position = UDim2.new(0, 0, 0.733160615, 0)
1516Boat.Size = UDim2.new(0, 154, 0, 36)
1517Boat.Font = Enum.Font.Code
1518Boat.Text = "Boat TP"
1519Boat.TextColor3 = Color3.new(0.666667, 0.333333, 0)
1520Boat.TextScaled = true
1521Boat.TextSize = 14
1522Boat.TextWrapped = true
1523Boat.MouseButton1Down:connect(function()
1524 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(238, -18, -590)
1525end)
1526
1527MeatRoom.Name = "Meat Room"
1528MeatRoom.Parent = Main2
1529MeatRoom.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1530MeatRoom.BorderSizePixel = 0
1531MeatRoom.Position = UDim2.new(0, 0, 0.826424897, 0)
1532MeatRoom.Size = UDim2.new(0, 154, 0, 36)
1533MeatRoom.Font = Enum.Font.Code
1534MeatRoom.Text = "Meat Room TP"
1535MeatRoom.TextColor3 = Color3.new(0.666667, 0.666667, 0.498039)
1536MeatRoom.TextScaled = true
1537MeatRoom.TextSize = 14
1538MeatRoom.TextWrapped = true
1539MeatRoom.MouseButton1Down:connect(function()
1540 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(0, 5, 65)
1541end)
1542
1543Basement.Name = "Basement"
1544Basement.Parent = Main2
1545Basement.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1546Basement.BorderSizePixel = 0
1547Basement.Position = UDim2.new(0, 0, 0.919689119, 0)
1548Basement.Size = UDim2.new(0, 154, 0, 31)
1549Basement.Font = Enum.Font.Code
1550Basement.Text = "Basement TP"
1551Basement.TextColor3 = Color3.new(0, 0.333333, 0.498039)
1552Basement.TextScaled = true
1553Basement.TextSize = 14
1554Basement.TextWrapped = true
1555Basement.MouseButton1Down:connect(function()
1556 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(79, -7, 47)
1557end)
1558
1559Main3.Name = "Main3"
1560Main3.Parent = GetruHaxV42
1561Main3.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1562Main3.BorderSizePixel = 0
1563Main3.Position = UDim2.new(0.627625167, 0, 0.0436893217, 0)
1564Main3.Size = UDim2.new(0, 154, 0, 323)
1565Main3.Active = true
1566Main3.Draggable = true
1567
1568PhSaSASaer3.Name = "PhSaSASaer3"
1569PhSaSASaer3.Parent = Main3
1570PhSaSASaer3.BackgroundColor3 = Color3.new(0, 0.666667, 1)
1571PhSaSASaer3.BorderSizePixel = 0
1572PhSaSASaer3.Position = UDim2.new(0, 0, 0.12101911, 0)
1573PhSaSASaer3.Size = UDim2.new(0, 154, 0, 7)
1574
1575HelpCredits.Name = "Help % Credits"
1576HelpCredits.Parent = Main3
1577HelpCredits.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1578HelpCredits.BorderSizePixel = 0
1579HelpCredits.Size = UDim2.new(0, 154, 0, 38)
1580HelpCredits.Font = Enum.Font.Antique
1581HelpCredits.Text = "Help % Credits"
1582HelpCredits.TextColor3 = Color3.new(1, 1, 0)
1583HelpCredits.TextScaled = true
1584HelpCredits.TextSize = 14
1585HelpCredits.TextWrapped = true
1586
1587ESPHELP.Name = "ESP HELP"
1588ESPHELP.Parent = Main3
1589ESPHELP.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1590ESPHELP.BorderSizePixel = 0
1591ESPHELP.Position = UDim2.new(0, 0, 0.165605098, 0)
1592ESPHELP.Size = UDim2.new(0, 154, 0, 50)
1593ESPHELP.Font = Enum.Font.Arcade
1594ESPHELP.Text = "ESP Will Be With GUI"
1595ESPHELP.TextColor3 = Color3.new(0.333333, 1, 1)
1596ESPHELP.TextScaled = true
1597ESPHELP.TextSize = 14
1598ESPHELP.TextWrapped = true
1599
1600Scripter.Name = "Scripter"
1601Scripter.Parent = Main3
1602Scripter.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1603Scripter.BorderSizePixel = 0
1604Scripter.Position = UDim2.new(0, 0, 0.452229321, 0)
1605Scripter.Size = UDim2.new(0, 154, 0, 50)
1606Scripter.Font = Enum.Font.Arcade
1607Scripter.Text = "Scripter: Dinosaur XxX"
1608Scripter.TextColor3 = Color3.new(1, 0.333333, 0)
1609Scripter.TextScaled = true
1610Scripter.TextSize = 14
1611Scripter.TextWrapped = true
1612
1613GUI.Name = "GUI"
1614GUI.Parent = Main3
1615GUI.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
1616GUI.BorderSizePixel = 0
1617GUI.Position = UDim2.new(0, 0, 0.748407662, 0)
1618GUI.Size = UDim2.new(0, 154, 0, 50)
1619GUI.Font = Enum.Font.Arcade
1620GUI.Text = "GUI: Dinosaur XxX"
1621GUI.TextColor3 = Color3.new(1, 1, 0)
1622GUI.TextScaled = true
1623GUI.TextSize = 14
1624GUI.TextWrapped = true