· 6 years ago · Sep 15, 2019, 05:40 PM
1local StrucidFucker = Instance.new("ScreenGui")
2local main = Instance.new("Frame")
3local Silent Aim = Instance.new("TextButton")
4local nomap = Instance.new("TextButton")
5local noclip = Instance.new("TextButton")
6local ctrlclicktp = Instance.new("TextButton")
7local chams = Instance.new("TextButton")
8local fly = Instance.new("TextButton")
9local aimbot = Instance.new("TextButton")
10local size = Instance.new("TextBox")
11local title = Instance.new("TextLabel")
12local close = Instance.new("TextButton")
13local open = Instance.new("TextButton")
14
15StrucidFucker.Name = "Strucid Fucker"
16StrucidFucker.Parent = game.CoreGui
17StrucidFucker.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
18
19main.Name = "main"
20main.Parent = StrucidBR
21main.Active = true
22main.Draggable = true
23main.BackgroundColor3 = Color3.new(0.792157, 0.0431373, 1)
24main.BorderSizePixel = 0
25main.Position = UDim2.new(0.281212121, 0, 0.259213746, 0)
26main.Size = UDim2.new(0, 437, 0, 268)
27
28hitboxextender.Name = "hitboxextender"
29hitboxextender.Parent = main
30hitboxextender.BackgroundColor3 = Color3.new(1, 1, 1)
31hitboxextender.BackgroundTransparency = 1
32hitboxextender.Position = UDim2.new(0.49866575, 0, 0.227611944, 0)
33hitboxextender.Size = UDim2.new(0, 217, 0, 63)
34hitboxextender.Font = Enum.Font.GothamSemibold
35hitboxextender.Text = "Extend Hitbox"
36hitboxextender.TextColor3 = Color3.new(0, 0, 0)
37hitboxextender.TextScaled = true
38hitboxextender.TextSize = 14
39hitboxextender.TextStrokeColor3 = Color3.new(0.298039, 1, 0)
40hitboxextender.TextStrokeTransparency = 0
41hitboxextender.TextWrapped = true
42
43removemap.Name = "removemap"
44removemap.Parent = main
45removemap.BackgroundColor3 = Color3.new(1, 1, 1)
46removemap.BackgroundTransparency = 1
47removemap.Position = UDim2.new(0.665141046, 0, 0.730099559, 0)
48removemap.Size = UDim2.new(0, 145, 0, 72)
49removemap.Font = Enum.Font.GothamSemibold
50removemap.Text = "Remove Map"
51removemap.TextColor3 = Color3.new(0, 0, 0)
52removemap.TextScaled = true
53removemap.TextSize = 14
54removemap.TextStrokeColor3 = Color3.new(0.298039, 1, 0)
55removemap.TextStrokeTransparency = 0
56removemap.TextWrapped = true
57
58noclip.Name = "noclip"
59noclip.Parent = main
60noclip.BackgroundColor3 = Color3.new(1, 1, 1)
61noclip.BackgroundTransparency = 1
62noclip.Position = UDim2.new(0.666666746, 0, 0.465174198, 0)
63noclip.Size = UDim2.new(0, 145, 0, 71)
64noclip.Font = Enum.Font.GothamSemibold
65noclip.Text = "Noclip"
66noclip.TextColor3 = Color3.new(0, 0, 0)
67noclip.TextScaled = true
68noclip.TextSize = 14
69noclip.TextStrokeColor3 = Color3.new(0.298039, 1, 0)
70noclip.TextStrokeTransparency = 0
71noclip.TextWrapped = true
72
73ctrlclicktp.Name = "ctrlclicktp"
74ctrlclicktp.Parent = main
75ctrlclicktp.BackgroundColor3 = Color3.new(1, 1, 1)
76ctrlclicktp.BackgroundTransparency = 1
77ctrlclicktp.Position = UDim2.new(0.333333373, 0, 0.465174198, 0)
78ctrlclicktp.Size = UDim2.new(0, 145, 0, 71)
79ctrlclicktp.Font = Enum.Font.GothamSemibold
80ctrlclicktp.Text = "CTRL Click TP"
81ctrlclicktp.TextColor3 = Color3.new(0, 0, 0)
82ctrlclicktp.TextScaled = true
83ctrlclicktp.TextSize = 14
84ctrlclicktp.TextStrokeColor3 = Color3.new(0.298039, 1, 0)
85ctrlclicktp.TextStrokeTransparency = 0
86ctrlclicktp.TextWrapped = true
87
88ESP.Name = "ESP"
89ESP.Parent = main
90ESP.BackgroundColor3 = Color3.new(1, 1, 1)
91ESP.BackgroundTransparency = 1
92ESP.Position = UDim2.new(0, 0, 0.465174198, 0)
93ESP.Size = UDim2.new(0, 145, 0, 71)
94ESP.Font = Enum.Font.GothamSemibold
95ESP.Text = "ESP"
96ESP.TextColor3 = Color3.new(0, 0, 0)
97ESP.TextScaled = true
98ESP.TextSize = 14
99ESP.TextStrokeColor3 = Color3.new(0.298039, 1, 0)
100ESP.TextStrokeTransparency = 0
101ESP.TextWrapped = true
102
103infjump.Name = "infjump"
104infjump.Parent = main
105infjump.BackgroundColor3 = Color3.new(1, 1, 1)
106infjump.BackgroundTransparency = 1
107infjump.Position = UDim2.new(0, 0, 0.732587099, 0)
108infjump.Size = UDim2.new(0, 145, 0, 71)
109infjump.Font = Enum.Font.GothamSemibold
110infjump.Text = "Inf Jump"
111infjump.TextColor3 = Color3.new(0, 0, 0)
112infjump.TextScaled = true
113infjump.TextSize = 14
114infjump.TextStrokeColor3 = Color3.new(0.298039, 1, 0)
115infjump.TextStrokeTransparency = 0
116infjump.TextWrapped = true
117
118aimlock.Name = "aimlock"
119aimlock.Parent = main
120aimlock.BackgroundColor3 = Color3.new(1, 1, 1)
121aimlock.BackgroundTransparency = 1
122aimlock.Position = UDim2.new(0.330282331, 0, 0.735074639, 0)
123aimlock.Size = UDim2.new(0, 146, 0, 71)
124aimlock.Font = Enum.Font.GothamSemibold
125aimlock.Text = "Aimlock"
126aimlock.TextColor3 = Color3.new(0, 0, 0)
127aimlock.TextScaled = true
128aimlock.TextSize = 14
129aimlock.TextStrokeColor3 = Color3.new(0.298039, 1, 0)
130aimlock.TextStrokeTransparency = 0
131aimlock.TextWrapped = true
132
133size.Name = "size"
134size.Parent = main
135size.BackgroundColor3 = Color3.new(1, 1, 1)
136size.BackgroundTransparency = 0.5
137size.BorderSizePixel = 0
138size.Position = UDim2.new(-0.000762729964, 0, 0.227611944, 0)
139size.Size = UDim2.new(0, 216, 0, 63)
140size.Font = Enum.Font.GothamBlack
141size.Text = "Hitbox Size Here :)"
142size.TextColor3 = Color3.new(0, 0, 0)
143size.TextSize = 14
144size.TextStrokeColor3 = Color3.new(0.45098, 1, 0)
145size.TextStrokeTransparency = 0
146size.TextWrapped = true
147
148title.Name = "title"
149title.Parent = main
150title.BackgroundColor3 = Color3.new(1, 1, 1)
151title.BackgroundTransparency = 1
152title.Size = UDim2.new(0, 437, 0, 61)
153title.Font = Enum.Font.GothamBold
154title.Text = "V.BATTLEROYALE 1.2"
155title.TextColor3 = Color3.new(0, 0, 0)
156title.TextScaled = true
157title.TextSize = 14
158title.TextWrapped = true
159
160close.Name = "close"
161close.Parent = main
162close.BackgroundColor3 = Color3.new(1, 1, 1)
163close.BackgroundTransparency = 1
164close.Position = UDim2.new(0.956521749, 0, 0, 0)
165close.Size = UDim2.new(0, 19, 0, 17)
166close.Text = "X"
167close.TextColor3 = Color3.new(0, 0, 0)
168close.TextScaled = true
169close.TextSize = 14
170close.TextWrapped = true
171
172open.Name = "open"
173open.Parent = StrucidBR
174open.BackgroundColor3 = Color3.new(0.835294, 0, 1)
175open.Position = UDim2.new(0, 0, 0.652334154, 0)
176open.Size = UDim2.new(0, 164, 0, 56)
177open.Font = Enum.Font.GothamBlack
178open.Text = "OPEN"
179open.TextColor3 = Color3.new(0, 0, 0)
180open.TextScaled = true
181open.TextSize = 14
182open.TextStrokeColor3 = Color3.new(0.180392, 1, 0)
183open.TextStrokeTransparency = 0
184open.TextWrapped = true
185open.Visible = false
186open.MouseButton1Down:connect(function()
187main.Visible = true
188open.Visible = false
189end)
190close.MouseButton1Down:connect(function()
191main.Visible = false
192open.Visible = true
193end)
194hitboxextender.MouseButton1Down:connect(function()
195_G.HeadSize = (size.Text)
196_G.Disabled = true
197
198game:GetService('RunService').RenderStepped:connect(function()
199if _G.Disabled then
200for i,v in next, game:GetService('Players'):GetPlayers() do
201if v.Name ~= game:GetService('Players').LocalPlayer.Name then
202pcall(function()
203v.Character.HumanoidRootPart.Size = Vector3.new(_G.HeadSize,_G.HeadSize,_G.HeadSize)
204v.Character.HumanoidRootPart.Transparency = 0.6
205v.Character.HumanoidRootPart.BrickColor = BrickColor.new("Really blue")
206v.Character.HumanoidRootPart.Material = "SmoothPlastic"
207v.Character.HumanoidRootPart.CanCollide = false
208end)
209end
210end
211end
212end)
213end)
214infjump.MouseButton1Down:connect(function()
215game:GetService("UserInputService").JumpRequest:connect(function()game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")end)
216end)
217ESP.MouseButton1Down:connect(function()
218-- Created By Ic3W0lf
219assert(Drawing, 'exploit not supported')
220
221local UserInputService = game:GetService'UserInputService';
222local HttpService = game:GetService'HttpService';
223local GUIService = game:GetService'GuiService';
224local RunService = game:GetService'RunService';
225local Players = game:GetService'Players';
226local LocalPlayer = Players.LocalPlayer;
227local Camera = workspace.CurrentCamera
228local Mouse = LocalPlayer:GetMouse();
229local Menu = {};
230local MouseHeld = false;
231local LastRefresh = 0;
232local OptionsFile = 'IC3_ESP_SETTINGS.dat';
233local Binding = false;
234local BindedKey = nil;
235local OIndex = 0;
236local LineBox = {};
237local UIButtons = {};
238local Sliders = {};
239local Dragging = false;
240local DraggingUI = false;
241local DragOffset = Vector2.new();
242local DraggingWhat = nil;
243local OldData = {};
244local IgnoreList = {};
245local Red = Color3.new(1, 0, 0);
246local Green = Color3.new(0, 1, 0);
247local MenuLoaded = false;
248
249shared.MenuDrawingData = shared.MenuDrawingData or { Instances = {} };
250shared.PlayerData = shared.PlayerData or {};
251shared.RSName = shared.RSName or ('UnnamedESP_by_ic3-' .. HttpService:GenerateGUID(false));
252
253local GetDataName = shared.RSName .. '-GetData';
254local UpdateName = shared.RSName .. '-Update';
255
256local Debounce = setmetatable({}, {
257__index = function(t, i)
258return rawget(t, i) or false
259end;
260});
261
262pcall(function() shared.InputBeganCon:disconnect() end);
263pcall(function() shared.InputEndedCon:disconnect() end);
264
265function GetMouseLocation()
266return UserInputService:GetMouseLocation();
267end
268
269function MouseHoveringOver(Values)
270local X1, Y1, X2, Y2 = Values[1], Values[2], Values[3], Values[4]
271local MLocation = GetMouseLocation();
272return (MLocation.x >= X1 and MLocation.x <= (X1 + (X2 - X1))) and (MLocation.y >= Y1 and MLocation.y <= (Y1 + (Y2 - Y1)));
273end
274
275function GetTableData(t) -- basically table.foreach i dont even know why i made this
276if typeof(t) ~= 'table' then return end
277return setmetatable(t, {
278__call = function(t, func)
279if typeof(func) ~= 'function' then return end;
280for i, v in pairs(t) do
281pcall(func, i, v);
282end
283end;
284});
285end
286local function Format(format, ...)
287return string.format(format, ...);
288end
289function CalculateValue(Min, Max, Percent)
290return Min + math.floor(((Max - Min) * Percent) + .5);
291end
292
293local Options = setmetatable({}, {
294__call = function(t, ...)
295local Arguments = {...};
296local Name = Arguments[1];
297OIndex = OIndex + 1; -- (typeof(Arguments[3]) == 'boolean' and 1 or 0);
298rawset(t, Name, setmetatable({
299Name = Arguments[1];
300Text = Arguments[2];
301Value = Arguments[3];
302DefaultValue = Arguments[3];
303AllArgs = Arguments;
304Index = OIndex;
305}, {
306__call = function(t, v)
307if typeof(t.Value) == 'function' then
308t.Value();
309elseif typeof(t.Value) == 'EnumItem' then
310local BT = Menu:GetInstance(Format('%s_BindText', t.Name));
311Binding = true;
312local Val = 0
313while Binding do
314wait();
315Val = (Val + 1) % 17;
316BT.Text = Val <= 8 and '|' or '';
317end
318t.Value = BindedKey;
319BT.Text = tostring(t.Value):match'%w+%.%w+%.(.+)';
320BT.Position = t.BasePosition + Vector2.new(t.BaseSize.X - BT.TextBounds.X - 20, -10);
321else
322local NewValue = v;
323if NewValue == nil then NewValue = not t.Value; end
324rawset(t, 'Value', NewValue);
325if Arguments[2] ~= nil then
326if typeof(Arguments[3]) == 'number' then
327local AMT = Menu:GetInstance(Format('%s_AmountText', t.Name));
328AMT.Text = tostring(t.Value);
329AMT.Position = t.BasePosition + Vector2.new(t.BaseSize.X - AMT.TextBounds.X - 10, -10);
330else
331local Inner = Menu:GetInstance(Format('%s_InnerCircle', t.Name));
332Inner.Visible = t.Value;
333end
334end
335end
336end;
337}));
338end;
339})
340
341function Load()
342local _, Result = pcall(readfile, OptionsFile);
343if _ then -- extremely ugly code yea i know but i dont care p.s. i hate pcall
344local _, Table = pcall(HttpService.JSONDecode, HttpService, Result);
345if _ then
346for i, v in pairs(Table) do
347if Options[i] ~= nil and Options[i].Value ~= nil and (typeof(Options[i].Value) == 'boolean' or typeof(Options[i].Value) == 'number') then
348Options[i].Value = v.Value;
349pcall(Options[i], v.Value);
350end
351end
352end
353end
354end
355
356Options('Enabled', 'ESP Enabled', true);
357Options('ShowTeam', 'Show Team', true);
358Options('ShowName', 'Show Names', true);
359Options('ShowDistance', 'Show Distance', true);
360Options('ShowHealth', 'Show Health', true);
361Options('ShowBoxes', 'Show Boxes', true);
362Options('ShowTracers', 'Show Tracers', true);
363Options('ShowDot', 'Show Head Dot', false);
364Options('VisCheck', 'Visibility Check', false);
365Options('Crosshair', 'Crosshair', false);
366Options('TextOutline', 'Text Outline', true);
367Options('TextSize', 'Text Size', syn and 18 or 14, 10, 24); -- cuz synapse fonts look weird???
368Options('MaxDistance', 'Max Distance', 2500, 100, 5000);
369Options('RefreshRate', 'Refresh Rate (ms)', 5, 1, 200);
370Options('MenuKey', 'Menu Key', Enum.KeyCode.F4, 1);
371Options('ResetSettings', 'Reset Settings', function()
372for i, v in pairs(Options) do
373if 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
374Options[i](Options[i].DefaultValue);
375end
376end
377end, 4);
378Options('LoadSettings', 'Load Settings', Load, 3);
379Options('SaveSettings', 'Save Settings', function()
380writefile(OptionsFile, HttpService:JSONEncode(Options));
381end, 2)
382-- Options.SaveSettings.Value();
383
384Load();
385
386Options('MenuOpen', nil, true);
387
388local function Set(t, i, v)
389t[i] = v;
390end
391local function Combine(...)
392local Output = {};
393for i, v in pairs{...} do
394if typeof(v) == 'table' then
395table.foreach(v, function(i, v)
396Output[i] = v;
397end)
398end
399end
400return Output
401end
402function IsStringEmpty(String)
403if type(String) == 'string' then
404return String:match'^%s+$' ~= nil or #String == 0 or String == '' or false;
405end
406return false
407end
408
409function NewDrawing(InstanceName)
410local Instance = Drawing.new(InstanceName);
411return (function(Properties)
412for i, v in pairs(Properties) do
413pcall(Set, Instance, i, v);
414end
415return Instance;
416end)
417end
418
419function Menu:AddMenuInstace(Name, Instance)
420if shared.MenuDrawingData.Instances[Name] ~= nil then
421shared.MenuDrawingData.Instances[Name]:Remove();
422end
423shared.MenuDrawingData.Instances[Name] = Instance;
424return Instance;
425end
426function Menu:UpdateMenuInstance(Name)
427local Instance = shared.MenuDrawingData.Instances[Name];
428if Instance ~= nil then
429return (function(Properties)
430for i, v in pairs(Properties) do
431-- print(Format('%s %s -> %s', Name, tostring(i), tostring(v)));
432pcall(Set, Instance, i, v);
433end
434return Instance;
435end)
436end
437end
438function Menu:GetInstance(Name)
439return shared.MenuDrawingData.Instances[Name];
440end
441
442function LineBox:Create(Properties)
443local Box = { Visible = true }; -- prevent errors not really though dont worry bout the Visible = true thing
444
445local Properties = Combine({
446Transparency = 1;
447Thickness = 1;
448Visible = true;
449}, Properties);
450
451Box['TopLeft'] = NewDrawing'Line'(Properties);
452Box['TopRight'] = NewDrawing'Line'(Properties);
453Box['BottomLeft'] = NewDrawing'Line'(Properties);
454Box['BottomRight'] = NewDrawing'Line'(Properties);
455
456function Box:Update(CF, Size, Color, Properties)
457if not CF or not Size then return end
458
459local TLPos, Visible1 = Camera:WorldToViewportPoint((CF * CFrame.new( Size.X, Size.Y, 0)).p);
460local TRPos, Visible2 = Camera:WorldToViewportPoint((CF * CFrame.new(-Size.X, Size.Y, 0)).p);
461local BLPos, Visible3 = Camera:WorldToViewportPoint((CF * CFrame.new( Size.X, -Size.Y, 0)).p);
462local BRPos, Visible4 = Camera:WorldToViewportPoint((CF * CFrame.new(-Size.X, -Size.Y, 0)).p);
463-- ## BEGIN UGLY CODE
464if Visible1 then
465Box['TopLeft'].Visible = true;
466Box['TopLeft'].Color = Color;
467Box['TopLeft'].From = Vector2.new(TLPos.X, TLPos.Y);
468Box['TopLeft'].To = Vector2.new(TRPos.X, TRPos.Y);
469else
470Box['TopLeft'].Visible = false;
471end
472if Visible2 then
473Box['TopRight'].Visible = true;
474Box['TopRight'].Color = Color;
475Box['TopRight'].From = Vector2.new(TRPos.X, TRPos.Y);
476Box['TopRight'].To = Vector2.new(BRPos.X, BRPos.Y);
477else
478Box['TopRight'].Visible = false;
479end
480if Visible3 then
481Box['BottomLeft'].Visible = true;
482Box['BottomLeft'].Color = Color;
483Box['BottomLeft'].From = Vector2.new(BLPos.X, BLPos.Y);
484Box['BottomLeft'].To = Vector2.new(TLPos.X, TLPos.Y);
485else
486Box['BottomLeft'].Visible = false;
487end
488if Visible4 then
489Box['BottomRight'].Visible = true;
490Box['BottomRight'].Color = Color;
491Box['BottomRight'].From = Vector2.new(BRPos.X, BRPos.Y);
492Box['BottomRight'].To = Vector2.new(BLPos.X, BLPos.Y);
493else
494Box['BottomRight'].Visible = false;
495end
496-- ## END UGLY CODE
497if Properties then
498GetTableData(Properties)(function(i, v)
499pcall(Set, Box['TopLeft'], i, v);
500pcall(Set, Box['TopRight'], i, v);
501pcall(Set, Box['BottomLeft'], i, v);
502pcall(Set, Box['BottomRight'], i, v);
503end)
504end
505end
506function Box:SetVisible(bool)
507pcall(Set, Box['TopLeft'], 'Visible', bool);
508pcall(Set, Box['TopRight'], 'Visible', bool);
509pcall(Set, Box['BottomLeft'], 'Visible', bool);
510pcall(Set, Box['BottomRight'], 'Visible', bool);
511end
512function Box:Remove()
513self:SetVisible(false);
514Box['TopLeft']:Remove();
515Box['TopRight']:Remove();
516Box['BottomLeft']:Remove();
517Box['BottomRight']:Remove();
518end
519
520return Box;
521end
522
523function CreateMenu(NewPosition) -- Create Menu
524local function FromHex(HEX)
525HEX = HEX:gsub('#', '');
526return Color3.fromRGB(tonumber('0x' .. HEX:sub(1, 2)), tonumber('0x' .. HEX:sub(3, 4)), tonumber('0x' .. HEX:sub(5, 6)));
527end
528
529local Colors = {
530Primary = {
531Main = FromHex'424242';
532Light = FromHex'6d6d6d';
533Dark = FromHex'1b1b1b';
534};
535Secondary = {
536Main = FromHex'e0e0e0';
537Light = FromHex'ffffff';
538Dark = FromHex'aeaeae';
539};
540};
541
542MenuLoaded = false;
543
544GetTableData(UIButtons)(function(i, v)
545v.Instance.Visible = false;
546v.Instance:Remove();
547end)
548GetTableData(Sliders)(function(i, v)
549v.Instance.Visible = false;
550v.Instance:Remove();
551end)
552
553UIButtons = {};
554Sliders = {};
555
556local BaseSize = Vector2.new(300, 580);
557local BasePosition = NewPosition or Vector2.new(Camera.ViewportSize.X / 8 - (BaseSize.X / 2), Camera.ViewportSize.Y / 2 - (BaseSize.Y / 2));
558
559Menu:AddMenuInstace('CrosshairX', NewDrawing'Line'{
560Visible = false;
561Color = Color3.new(0, 1, 0);
562Transparency = 1;
563Thickness = 1;
564});
565Menu:AddMenuInstace('CrosshairY', NewDrawing'Line'{
566Visible = false;
567Color = Color3.new(0, 1, 0);
568Transparency = 1;
569Thickness = 1;
570});
571
572delay(.025, function() -- since zindex doesnt exist
573Menu:AddMenuInstace('Main', NewDrawing'Square'{
574Size = BaseSize;
575Position = BasePosition;
576Filled = false;
577Color = Colors.Primary.Main;
578Thickness = 3;
579Visible = true;
580});
581end);
582Menu:AddMenuInstace('TopBar', NewDrawing'Square'{
583Position = BasePosition;
584Size = Vector2.new(BaseSize.X, 25);
585Color = Colors.Primary.Dark;
586Filled = true;
587Visible = true;
588});
589Menu:AddMenuInstace('TopBarTwo', NewDrawing'Square'{
590Position = BasePosition + Vector2.new(0, 25);
591Size = Vector2.new(BaseSize.X, 60);
592Color = Colors.Primary.Main;
593Filled = true;
594Visible = true;
595});
596Menu:AddMenuInstace('TopBarText', NewDrawing'Text'{
597Size = 25;
598Position = shared.MenuDrawingData.Instances.TopBarTwo.Position + Vector2.new(25, 15);
599Text = 'Unnamed ESP';
600Color = Colors.Secondary.Light;
601Visible = true;
602});
603Menu:AddMenuInstace('TopBarTextBR', NewDrawing'Text'{
604Size = 15;
605Position = shared.MenuDrawingData.Instances.TopBarTwo.Position + Vector2.new(BaseSize.X - 65, 40);
606Text = 'by ic3w0lf';
607Color = Colors.Secondary.Dark;
608Visible = true;
609});
610Menu:AddMenuInstace('Filling', NewDrawing'Square'{
611Size = BaseSize - Vector2.new(0, 85);
612Position = BasePosition + Vector2.new(0, 85);
613Filled = true;
614Color = Colors.Secondary.Main;
615Transparency= .5;
616Visible = true;
617});
618
619local CPos = 0;
620
621GetTableData(Options)(function(i, v)
622if typeof(v.Value) == 'boolean' and not IsStringEmpty(v.Text) and v.Text ~= nil then
623CPos = CPos + 25;
624local BaseSize = Vector2.new(BaseSize.X, 30);
625local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(30, v.Index * 25 - 10);
626UIButtons[#UIButtons + 1] = {
627Option = v;
628Instance = Menu:AddMenuInstace(Format('%s_Hitbox', v.Name), NewDrawing'Square'{
629Position = BasePosition - Vector2.new(30, 15);
630Size = BaseSize;
631Visible = false;
632});
633};
634Menu:AddMenuInstace(Format('%s_OuterCircle', v.Name), NewDrawing'Circle'{
635Radius = 10;
636Position = BasePosition;
637Color = Colors.Secondary.Light;
638Filled = true;
639Visible = true;
640});
641Menu:AddMenuInstace(Format('%s_InnerCircle', v.Name), NewDrawing'Circle'{
642Radius = 7;
643Position = BasePosition;
644Color = Colors.Secondary.Dark;
645Filled = true;
646Visible = v.Value;
647});
648Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
649Text = v.Text;
650Size = 20;
651Position = BasePosition + Vector2.new(20, -10);
652Visible = true;
653Color = Colors.Primary.Dark;
654});
655end
656end)
657GetTableData(Options)(function(i, v) -- just to make sure certain things are drawn before or after others, too lazy to actually sort table
658if typeof(v.Value) == 'number' then
659CPos = CPos + 25;
660
661local BaseSize = Vector2.new(BaseSize.X, 30);
662local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(0, CPos - 10);
663
664local Text = Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
665Text = v.Text;
666Size = 20;
667Position = BasePosition + Vector2.new(20, -10);
668Visible = true;
669Color = Colors.Primary.Dark;
670});
671local AMT = Menu:AddMenuInstace(Format('%s_AmountText', v.Name), NewDrawing'Text'{
672Text = tostring(v.Value);
673Size = 20;
674Position = BasePosition;
675Visible = true;
676Color = Colors.Primary.Dark;
677});
678local Line = Menu:AddMenuInstace(Format('%s_SliderLine', v.Name), NewDrawing'Line'{
679Transparency = 1;
680Color = Colors.Primary.Dark;
681Thickness = 3;
682Visible = true;
683From = BasePosition + Vector2.new(20, 20);
684To = BasePosition + Vector2.new(BaseSize.X - 10, 20);
685});
686CPos = CPos + 10;
687local Slider = Menu:AddMenuInstace(Format('%s_Slider', v.Name), NewDrawing'Circle'{
688Visible = true;
689Filled = true;
690Radius = 6;
691Color = Colors.Secondary.Dark;
692Position = BasePosition + Vector2.new(35, 20);
693})
694
695local CSlider = {Slider = Slider; Line = Line; Min = v.AllArgs[4]; Max = v.AllArgs[5]; Option = v};
696Sliders[#Sliders + 1] = CSlider;
697
698-- local Percent = (v.Value / CSlider.Max) * 100;
699-- local Size = math.abs(Line.From.X - Line.To.X);
700-- local Value = Size * (Percent / 100); -- this shit's inaccurate but fuck it i'm not even gonna bother fixing it
701
702Slider.Position = BasePosition + Vector2.new(40, 20);
703
704v.BaseSize = BaseSize;
705v.BasePosition = BasePosition;
706AMT.Position = BasePosition + Vector2.new(BaseSize.X - AMT.TextBounds.X - 10, -10)
707end
708end)
709GetTableData(Options)(function(i, v) -- just to make sure certain things are drawn before or after others, too lazy to actually sort table
710if typeof(v.Value) == 'EnumItem' then
711CPos = CPos + 30;
712
713local BaseSize = Vector2.new(BaseSize.X, 30);
714local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(0, CPos - 10);
715
716UIButtons[#UIButtons + 1] = {
717Option = v;
718Instance = Menu:AddMenuInstace(Format('%s_Hitbox', v.Name), NewDrawing'Square'{
719Size = Vector2.new(BaseSize.X, 20) - Vector2.new(30, 0);
720Visible = true;
721Transparency= .5;
722Position = BasePosition + Vector2.new(15, -10);
723Color = Colors.Secondary.Light;
724Filled = true;
725});
726};
727local Text = Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
728Text = v.Text;
729Size = 20;
730Position = BasePosition + Vector2.new(20, -10);
731Visible = true;
732Color = Colors.Primary.Dark;
733});
734local BindText = Menu:AddMenuInstace(Format('%s_BindText', v.Name), NewDrawing'Text'{
735Text = tostring(v.Value):match'%w+%.%w+%.(.+)';
736Size = 20;
737Position = BasePosition;
738Visible = true;
739Color = Colors.Primary.Dark;
740});
741
742Options[i].BaseSize = BaseSize;
743Options[i].BasePosition = BasePosition;
744BindText.Position = BasePosition + Vector2.new(BaseSize.X - BindText.TextBounds.X - 20, -10);
745end
746end)
747GetTableData(Options)(function(i, v) -- just to make sure certain things are drawn before or after others, too lazy to actually sort table
748if typeof(v.Value) == 'function' then
749local BaseSize = Vector2.new(BaseSize.X, 30);
750local BasePosition = shared.MenuDrawingData.Instances.Filling.Position + Vector2.new(0, CPos + (25 * v.AllArgs[4]) - 35);
751
752UIButtons[#UIButtons + 1] = {
753Option = v;
754Instance = Menu:AddMenuInstace(Format('%s_Hitbox', v.Name), NewDrawing'Square'{
755Size = Vector2.new(BaseSize.X, 20) - Vector2.new(30, 0);
756Visible = true;
757Transparency= .5;
758Position = BasePosition + Vector2.new(15, -10);
759Color = Colors.Secondary.Light;
760Filled = true;
761});
762};
763local Text = Menu:AddMenuInstace(Format('%s_Text', v.Name), NewDrawing'Text'{
764Text = v.Text;
765Size = 20;
766Position = BasePosition + Vector2.new(20, -10);
767Visible = true;
768Color = Colors.Primary.Dark;
769});
770
771-- BindText.Position = BasePosition + Vector2.new(BaseSize.X - BindText.TextBounds.X - 10, -10);
772end
773end)
774
775delay(.1, function()
776MenuLoaded = true;
777end);
778
779-- this has to be at the bottom cuz proto drawing api doesnt have zindex :triumph:
780Menu:AddMenuInstace('Cursor1', NewDrawing'Line'{
781Visible = false;
782Color = Color3.new(1, 0, 0);
783Transparency = 1;
784Thickness = 2;
785});
786Menu:AddMenuInstace('Cursor2', NewDrawing'Line'{
787Visible = false;
788Color = Color3.new(1, 0, 0);
789Transparency = 1;
790Thickness = 2;
791});
792Menu:AddMenuInstace('Cursor3', NewDrawing'Line'{
793Visible = false;
794Color = Color3.new(1, 0, 0);
795Transparency = 1;
796Thickness = 2;
797});
798end
799
800CreateMenu();
801
802shared.InputBeganCon = UserInputService.InputBegan:connect(function(input)
803if input.UserInputType.Name == 'MouseButton1' and Options.MenuOpen.Value then
804MouseHeld = true;
805local Bar = Menu:GetInstance'TopBar';
806local Values = {
807Bar.Position.X;
808Bar.Position.Y;
809Bar.Position.X + Bar.Size.X;
810Bar.Position.Y + Bar.Size.Y;
811}
812if MouseHoveringOver(Values) and not syn then -- disable dragging for synapse cuz idk why it breaks
813DraggingUI = true;
814DragOffset = Menu:GetInstance'Main'.Position - GetMouseLocation();
815else
816for i, v in pairs(Sliders) do
817local Values = {
818v.Line.From.X - (v.Slider.Radius);
819v.Line.From.Y - (v.Slider.Radius);
820v.Line.To.X + (v.Slider.Radius);
821v.Line.To.Y + (v.Slider.Radius);
822};
823if MouseHoveringOver(Values) then
824DraggingWhat = v;
825Dragging = true;
826break
827end
828end
829end
830end
831end)
832shared.InputEndedCon = UserInputService.InputEnded:connect(function(input)
833if input.UserInputType.Name == 'MouseButton1' and Options.MenuOpen.Value then
834MouseHeld = false;
835for i, v in pairs(UIButtons) do
836local Values = {
837v.Instance.Position.X;
838v.Instance.Position.Y;
839v.Instance.Position.X + v.Instance.Size.X;
840v.Instance.Position.Y + v.Instance.Size.Y;
841};
842if MouseHoveringOver(Values) then
843v.Option();
844break -- prevent clicking 2 options
845end
846end
847elseif input.UserInputType.Name == 'Keyboard' then
848if Binding then
849BindedKey = input.KeyCode;
850Binding = false;
851elseif input.KeyCode == Options.MenuKey.Value or (input.KeyCode == Enum.KeyCode.Home and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl)) then
852Options.MenuOpen();
853end
854end
855end)
856
857function ToggleMenu()
858if Options.MenuOpen.Value then
859GetTableData(shared.MenuDrawingData.Instances)(function(i, v)
860if OldData[v] then
861pcall(Set, v, 'Visible', true);
862end
863end)
864else
865-- GUIService:SetMenuIsOpen(false);
866GetTableData(shared.MenuDrawingData.Instances)(function(i, v)
867if v.Visible == true then
868OldData[v] = true;
869pcall(Set, v, 'Visible', false);
870end
871end)
872end
873end
874
875function CheckRay(Player, Distance, Position, Unit)
876local Pass = true;
877
878if Distance > 999 then return false; end
879
880local _Ray = Ray.new(Position, Unit * Distance);
881
882local List = {LocalPlayer.Character, Camera, Mouse.TargetFilter};
883
884for i,v in pairs(IgnoreList) do table.insert(List, v); end;
885
886local Hit = workspace:FindPartOnRayWithIgnoreList(_Ray, List);
887if Hit and not Hit:IsDescendantOf(Player.Character) then
888Pass = false;
889if Hit.Transparency >= .3 or not Hit.CanCollide and Hit.ClassName ~= Terrain then -- Detect invisible walls
890IgnoreList[#IgnoreList + 1] = Hit;
891end
892end
893
894return Pass;
895end
896
897function CheckPlayer(Player)
898if not Options.Enabled.Value then return false end
899
900local Pass = true;
901local Distance = 0;
902
903if Player ~= LocalPlayer and Player.Character then
904if not Options.ShowTeam.Value and Player.TeamColor == LocalPlayer.TeamColor then
905Pass = false;
906end
907
908local Head = Player.Character:FindFirstChild'Head';
909
910if Pass and Player.Character and Head then
911Distance = (Camera.CFrame.p - Head.Position).magnitude;
912if Options.VisCheck.Value then
913Pass = CheckRay(Player, Distance, Camera.CFrame.p, (Head.Position - Camera.CFrame.p).unit);
914end
915if Distance > Options.MaxDistance.Value then
916Pass = false;
917end
918end
919else
920Pass = false;
921end
922
923return Pass, Distance;
924end
925
926function UpdatePlayerData()
927if (tick() - LastRefresh) > (Options.RefreshRate.Value / 1000) then
928LastRefresh = tick();
929for i, v in pairs(Players:GetPlayers()) do
930local Data = shared.PlayerData[v.Name] or { Instances = {} };
931
932Data.Instances['Box'] = Data.Instances['Box'] or LineBox:Create{Thickness = 3};
933Data.Instances['Tracer'] = Data.Instances['Tracer'] or NewDrawing'Line'{
934Transparency = 1;
935Thickness = 2;
936}
937Data.Instances['HeadDot'] = Data.Instances['HeadDot'] or NewDrawing'Circle'{
938Filled = true;
939NumSides = 30;
940}
941Data.Instances['NameTag'] = Data.Instances['NameTag'] or NewDrawing'Text'{
942Size = Options.TextSize.Value;
943Center = true;
944Outline = Options.TextOutline.Value;
945Visible = true;
946};
947Data.Instances['DistanceHealthTag'] = Data.Instances['DistanceHealthTag'] or NewDrawing'Text'{
948Size = Options.TextSize.Value - 1;
949Center = true;
950Outline = Options.TextOutline.Value;
951Visible = true;
952};
953
954local NameTag = Data.Instances['NameTag'];
955local DistanceTag = Data.Instances['DistanceHealthTag'];
956local Tracer = Data.Instances['Tracer'];
957local HeadDot = Data.Instances['HeadDot'];
958local Box = Data.Instances['Box'];
959
960local Pass, Distance = CheckPlayer(v);
961
962if Pass and v.Character then
963Data.LastUpdate = tick();
964local Humanoid = v.Character:FindFirstChildOfClass'Humanoid';
965local Head = v.Character:FindFirstChild'Head';
966local HumanoidRootPart = v.Character:FindFirstChild'HumanoidRootPart';
967if v.Character ~= nil and Head then
968local ScreenPosition, Vis = Camera:WorldToViewportPoint(Head.Position);
969if Vis then
970local Color = v.TeamColor == LocalPlayer.TeamColor and Green or Red;
971
972local ScreenPositionUpper = Camera:WorldToViewportPoint(Head.CFrame * CFrame.new(0, Head.Size.Y, 0).p);
973local Scale = Head.Size.Y / 2;
974
975if Options.ShowName.Value then
976NameTag.Visible = true;
977NameTag.Text = v.Name;
978NameTag.Size = Options.TextSize.Value;
979NameTag.Outline = Options.TextOutline.Value;
980NameTag.Position = Vector2.new(ScreenPositionUpper.X, ScreenPositionUpper.Y);
981NameTag.Color = Color;
982if Drawing.Fonts then -- CURRENTLY SYNAPSE ONLY :MEGAHOLY:
983NameTag.Font = Drawing.Fonts.UI;
984end
985else
986NameTag.Visible = false;
987end
988if Options.ShowDistance.Value or Options.ShowHealth.Value then
989DistanceTag.Visible = true;
990DistanceTag.Size = Options.TextSize.Value - 1;
991DistanceTag.Outline = Options.TextOutline.Value;
992DistanceTag.Color = Color3.new(1, 1, 1);
993if Drawing.Fonts then -- CURRENTLY SYNAPSE ONLY :MEGAHOLY:
994NameTag.Font = Drawing.Fonts.UI;
995end
996
997local Str = '';
998
999if Options.ShowDistance.Value then
1000Str = Str .. Format('[%d] ', Distance);
1001end
1002if Options.ShowHealth.Value and Humanoid then
1003Str = Str .. Format('[%d/100]', Humanoid.Health / Humanoid.MaxHealth * 100);
1004end
1005
1006DistanceTag.Text = Str;
1007DistanceTag.Position = Vector2.new(ScreenPositionUpper.X, ScreenPositionUpper.Y) + Vector2.new(0, NameTag.Size);
1008else
1009DistanceTag.Visible = false;
1010end
1011if Options.ShowDot.Value then
1012local Top = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, Scale, 0)).p);
1013local Bottom = Camera:WorldToViewportPoint((Head.CFrame * CFrame.new(0, -Scale, 0)).p);
1014local Radius = (Top - Bottom).y;
1015
1016HeadDot.Visible = true;
1017HeadDot.Color = Color;
1018HeadDot.Position = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
1019HeadDot.Radius = Radius;
1020else
1021HeadDot.Visible = false;
1022end
1023if Options.ShowTracers.Value then
1024Tracer.Visible = true;
1025Tracer.From = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y);
1026Tracer.To = Vector2.new(ScreenPosition.X, ScreenPosition.Y);
1027Tracer.Color = Color;
1028else
1029Tracer.Visible = false;
1030end
1031if Options.ShowBoxes.Value and HumanoidRootPart then
1032Box:Update(HumanoidRootPart.CFrame, Vector3.new(2, 3, 0) * (Scale * 2), Color);
1033else
1034Box:SetVisible(false);
1035end
1036else
1037NameTag.Visible = false;
1038DistanceTag.Visible = false;
1039Tracer.Visible = false;
1040HeadDot.Visible = false;
1041
1042Box:SetVisible(false);
1043end
1044end
1045else
1046NameTag.Visible = false;
1047DistanceTag.Visible = false;
1048Tracer.Visible = false;
1049HeadDot.Visible = false;
1050
1051Box:SetVisible(false);
1052end
1053
1054shared.PlayerData[v.Name] = Data;
1055end
1056end
1057end
1058
1059function Update()
1060for i, v in pairs(shared.PlayerData) do
1061if not Players:FindFirstChild(tostring(i)) then
1062GetTableData(v.Instances)(function(i, obj)
1063obj.Visible = false;
1064obj:Remove();
1065v.Instances[i] = nil;
1066end)
1067shared.PlayerData[i] = nil;
1068end
1069end
1070
1071local CX = Menu:GetInstance'CrosshairX';
1072local CY = Menu:GetInstance'CrosshairY';
1073if Options.Crosshair.Value then
1074CX.Visible = true;
1075CY.Visible = true;
1076
1077CX.To = Vector2.new((Camera.ViewportSize.X / 2) - 8, (Camera.ViewportSize.Y / 2));
1078CX.From = Vector2.new((Camera.ViewportSize.X / 2) + 8, (Camera.ViewportSize.Y / 2));
1079CY.To = Vector2.new((Camera.ViewportSize.X / 2), (Camera.ViewportSize.Y / 2) - 8);
1080CY.From = Vector2.new((Camera.ViewportSize.X / 2), (Camera.ViewportSize.Y / 2) + 8);
1081else
1082CX.Visible = false;
1083CY.Visible = false;
1084end
1085
1086if Options.MenuOpen.Value and MenuLoaded then
1087local MLocation = GetMouseLocation();
1088shared.MenuDrawingData.Instances.Main.Color = Color3.fromHSV(tick() * 24 % 255/255, 1, 1);
1089local MainInstance = Menu:GetInstance'Main';
1090local Values = {
1091MainInstance.Position.X;
1092MainInstance.Position.Y;
1093MainInstance.Position.X + MainInstance.Size.X;
1094MainInstance.Position.Y + MainInstance.Size.Y;
1095};
1096if MainInstance and MouseHoveringOver(Values) then
1097Debounce.CursorVis = true;
1098-- GUIService:SetMenuIsOpen(true);
1099Menu:UpdateMenuInstance'Cursor1'{
1100Visible = true;
1101From = Vector2.new(MLocation.x, MLocation.y);
1102To = Vector2.new(MLocation.x + 5, MLocation.y + 6);
1103}
1104Menu:UpdateMenuInstance'Cursor2'{
1105Visible = true;
1106From = Vector2.new(MLocation.x, MLocation.y);
1107To = Vector2.new(MLocation.x, MLocation.y + 8);
1108}
1109Menu:UpdateMenuInstance'Cursor3'{
1110Visible = true;
1111From = Vector2.new(MLocation.x, MLocation.y + 6);
1112To = Vector2.new(MLocation.x + 5, MLocation.y + 5);
1113}
1114else
1115if Debounce.CursorVis then
1116Debounce.CursorVis = false;
1117-- GUIService:SetMenuIsOpen(false);
1118Menu:UpdateMenuInstance'Cursor1'{Visible = false};
1119Menu:UpdateMenuInstance'Cursor2'{Visible = false};
1120Menu:UpdateMenuInstance'Cursor3'{Visible = false};
1121end
1122end
1123if MouseHeld then
1124if Dragging then
1125DraggingWhat.Slider.Position = Vector2.new(math.clamp(MLocation.X, DraggingWhat.Line.From.X, DraggingWhat.Line.To.X), DraggingWhat.Slider.Position.Y);
1126local Percent = (DraggingWhat.Slider.Position.X - DraggingWhat.Line.From.X) / ((DraggingWhat.Line.To.X - DraggingWhat.Line.From.X));
1127local Value = CalculateValue(DraggingWhat.Min, DraggingWhat.Max, Percent);
1128DraggingWhat.Option(Value);
1129elseif DraggingUI then
1130Debounce.UIDrag = true;
1131local Main = Menu:GetInstance'Main';
1132local MousePos = GetMouseLocation();
1133Main.Position = MousePos + DragOffset;
1134end
1135else
1136Dragging = false;
1137if DraggingUI and Debounce.UIDrag then
1138Debounce.UIDrag = false;
1139DraggingUI = false;
1140CreateMenu(Menu:GetInstance'Main'.Position);
1141end
1142end
1143if not Debounce.Menu then
1144Debounce.Menu = true;
1145ToggleMenu();
1146end
1147elseif Debounce.Menu and not Options.MenuOpen.Value then
1148Debounce.Menu = false;
1149ToggleMenu();
1150end
1151end
1152
1153RunService:UnbindFromRenderStep(GetDataName);
1154RunService:UnbindFromRenderStep(UpdateName);
1155
1156RunService:BindToRenderStep(GetDataName, 1, UpdatePlayerData);
1157RunService:BindToRenderStep(UpdateName, 1, Update);
1158end)
1159ctrlclicktp.MouseButton1Down:connect(function()
1160loadstring(game:GetObjects("rbxassetid://509249639")[1].Source)()
1161end)
1162noclip.MouseButton1Down:connect(function()
1163nam = game:GetService("Players").LocalPlayer.Name
1164
1165game:GetService('RunService').Stepped:connect(function()
1166for a, b in pairs(game.Workspace:GetChildren()) do
1167if b.Name == nam then
1168for i, v in pairs(game.Workspace[nam]:GetChildren()) do
1169if v:IsA("BasePart") then
1170v.CanCollide = false
1171
1172end
1173end
1174end
1175end
1176end)
1177
1178
1179Workspace[nam].Head.Changed:connect(function()
1180for a, b in pairs(game.Workspace:GetChildren()) do
1181if b.Name == nam then
1182for i, v in pairs(game.Workspace[nam]:GetChildren()) do
1183if v:IsA("BasePart") then
1184v.CanCollide = false
1185
1186end
1187end
1188end
1189end
1190end)
1191end)
1192aimlock.MouseButton1Down:connect(function()
1193--made by Avexus#1234 discord from MrStuperd btw and DO NOT PRESS DELETE ;) GUI aimbot_toggled
1194
1195local UIS = game:GetService('UserInputService')
1196local RS = game:GetService('RunService')
1197local Players = game:GetService('Players')
1198local StarterGui = game:GetService('StarterGui')
1199local Player = Players.LocalPlayer
1200local Studio = RS:IsStudio()
1201local PlayerGui = RS:IsStudio() and Player:WaitForChild('PlayerGui') or game.CoreGui
1202local Mouse = Player:GetMouse()
1203local old_icon = Mouse.Icon
1204local Camera = workspace.CurrentCamera
1205targetpart = 'Head' -- Don't change this.
1206-- It can be changed with the targetpart_change hotkey ingame.
1207local target
1208local target_old
1209local alert = false
1210local lockedon = false
1211local settingkey = false
1212local upvals = nil
1213local val = 1
1214local windows = {}
1215local function hb() RS.Heartbeat:wait() end
1216
1217local version = 1.25
1218local Spawn = nil or game.PlaceId == 292439477 and workspace:WaitForChild('Lobby',2):WaitForChild('Spawn1',2)
1219local spawned = false
1220
1221script.Name = 'GameSense!'
1222Mouse.TargetFilter = Camera
1223
1224-- hotkey
1225toggle_aim = Enum.UserInputType.MouseButton2
1226toggle_aimbot = Enum.KeyCode.Delete
1227toggle_trigger = Enum.KeyCode.Delete
1228toggle_esp = Enum.KeyCode.Delete
1229toggle_gui = Enum.KeyCode.Delete
1230toggle_bottompos = Enum.KeyCode.Delete
1231toggle_performance = Enum.KeyCode.Delete
1232toggle_bones = Enum.KeyCode.Delete
1233toggle_chams = Enum.KeyCode.Delete
1234toggle_tracers = Enum.KeyCode.Delete
1235toggle_boxes = Enum.KeyCode.Delete
1236toggle_font = Enum.KeyCode.Delete
1237ffatoggle = Enum.KeyCode.Delete
1238targetpart_change = Enum.KeyCode.Delete
1239priority_toggle = Enum.KeyCode.Delete
1240sethotkey = Enum.KeyCode.Delete
1241-- aim fov
1242fov_increase = Enum.KeyCode.KeypadPlus
1243fov_decrease = Enum.KeyCode.KeypadMinus
1244-- aim sens (how smooth your crosshair will move)
1245sens_increase = Enum.KeyCode.RightBracket
1246sens_decrease = Enum.KeyCode.LeftBracket
1247
1248-- parts
1249parts = {
1250 'Head';
1251 'Torso'
1252}
1253
1254fonts = {
1255 Enum.Font.SourceSansBold,
1256 Enum.Font.Cartoon,
1257 Enum.Font.Arcade,
1258 Enum.Font.SciFi,
1259 Enum.Font.Fantasy,
1260 Enum.Font.Code,
1261 Enum.Font.Highway,
1262 Enum.Font.Bodoni
1263}
1264
1265textSet = false
1266
1267currentfont = 1
1268ffa = true
1269hidden = false
1270performancemode = true
1271-- aim
1272fov = 6
1273sens = .25
1274drop = .4
1275aim_toggled = false
1276bottompos = true
1277aim_priority = 2
1278-- [2] FOV or [1] Distance
1279aimingcolor = Color3.fromRGB(0,165,255)
1280aimbot_toggled = true
1281aim_line = true
1282locksoundid = 538769304
1283mouseiconid = 18671553
1284
1285-- trigger
1286trigger_toggled = false
1287trigger_delay = 1/20
1288
1289-- esp
1290esp_toggled = false
1291esp_bones = false
1292esp_chams = false
1293esp_tracers = false
1294-- item_esp (coming soon)
1295linesize = 1
1296showdists = true
1297textsize = 14
1298textoffset = 20
1299visiblecolor = Color3.fromRGB(38,255,99)
1300hiddencolor = Color3.fromRGB(255,37,40)
1301headboxsize = 4
1302headboxaimsize = 6
1303headboxshape = 'diamond'
1304-- rectangle or diamond
1305
1306-- box esp
1307bounding_box = true
1308-- box_pointsize = 0 [UNUSED]
1309box_line_size = 1
1310-- box_line_size_visible = 2 [UNUSED]
1311
1312local GUI = Instance.new('ScreenGui',PlayerGui)
1313GUI.Name = 'GameSense '..version
1314GUI.ResetOnSpawn = false
1315
1316ESP = Instance.new('Folder',GUI)
1317ESP.Name = 'ESP'
1318local Bottom = Instance.new('Frame',ESP)
1319Bottom.Name = 'Bottom'
1320Bottom.BackgroundTransparency = 1
1321Bottom.Size = UDim2.new(0,1,0,1)
1322Bottom.Position = UDim2.new(.5,0,1,1)
1323
1324local Status = Instance.new('TextLabel',GUI)
1325Status.Name = 'Status'
1326Status.BackgroundTransparency = 1
1327Status.Size = UDim2.new(0,500,0,50)
1328Status.Position = UDim2.new(.5,-250,.85,0)
1329Status.TextSize = 0
1330Status.Font = Enum.Font.SourceSansBold
1331Status.TextColor3 = Color3.new(1,1,1)
1332Status.TextStrokeColor3 = Color3.new(0,0,0)
1333Status.TextStrokeTransparency = .6
1334Status.Text = 'On Standby'
1335Status.ZIndex = 50
1336
1337local Credits = Status:Clone()
1338Credits.Name = 'Credits'
1339Credits.Parent = GUI
1340Credits.Position = UDim2.new(-1000000,-1000000,-1000000,-1000000)
1341Credits.TextSize = 0
1342Credits.Text = 'GameSense '..version..' by Avexus!'
1343
1344local FovGui = Instance.new('ImageLabel',GUI)
1345FovGui.Name = 'FovGui'
1346FovGui.Image = 'rbxassetid://324848180'
1347FovGui.Size = UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2)
1348FovGui.Position = UDim2.new(0.5,-FovGui.AbsoluteSize.X/2,0.5,-FovGui.AbsoluteSize.Y/2)
1349FovGui.BackgroundTransparency = 1
1350FovGui.ImageTransparency = 0.9
1351FovGui.ImageColor3 = Color3.new(1,0,0)
1352
1353local Indicator = Instance.new('TextLabel',GUI)
1354Indicator.Name = 'Indicator'
1355Indicator.Font = Enum.Font.SourceSans
1356Indicator.TextSize = 0
1357Indicator.TextXAlignment = Enum.TextXAlignment.Center
1358Indicator.TextYAlignment = Enum.TextYAlignment.Center
1359Indicator.TextStrokeTransparency = 1
1360Indicator.Text = aim_priority>1 and 'FOV: '..fov or 'Distance'
1361
1362local SensAdjust = Instance.new('TextBox',GUI)
1363SensAdjust.Name = 'SensAdjust'
1364SensAdjust.Font = Enum.Font.SourceSans
1365SensAdjust.BackgroundTransparency = .75
1366SensAdjust.BackgroundColor3 = Color3.new(0,0,0)
1367SensAdjust.BorderColor3 = Color3.new(1,1,1)
1368SensAdjust.Size = UDim2.new(0,50,0,20)
1369SensAdjust.TextStrokeTransparency = 1
1370SensAdjust.TextColor3 = Color3.new(1,1,1)
1371SensAdjust.TextSize = 0
1372SensAdjust.PlaceholderText = 'Sens'
1373SensAdjust.Text = tonumber(sens)
1374SensAdjust.Position = Credits.Position + UDim2.new(0,250,0,75)
1375
1376local SensLabel = Instance.new('TextLabel',SensAdjust)
1377SensLabel.Name = 'SensLabel'
1378SensLabel.Font = Enum.Font.SourceSans
1379SensLabel.Size = UDim2.new(1,0,1,0)
1380SensLabel.BackgroundTransparency = 1
1381SensLabel.TextSize = 0
1382SensLabel.TextColor3 = Color3.new(1,1,1)
1383SensLabel.TextStrokeColor3 = Color3.new(0,0,0)
1384SensLabel.TextStrokeTransparency = 1
1385SensLabel.Text = 'Sens:'
1386SensLabel.Position = UDim2.new(-1,0,0,0)
1387SensLabel.TextXAlignment = Enum.TextXAlignment.Left
1388
1389local FovAdjust = SensAdjust:Clone()
1390FovAdjust.Parent = GUI
1391FovAdjust.PlaceholderText = 'FOV'
1392FovAdjust.Name = 'FovAdjust'
1393FovAdjust.Text = tonumber(fov)
1394FovAdjust.Position = SensAdjust.Position + UDim2.new(0,0,0,20)
1395FovAdjust.SensLabel.Name = 'FovLabel'
1396FovAdjust.FovLabel.Text = 'Fov:'
1397
1398local DropAdjust = SensAdjust:Clone()
1399DropAdjust.Parent = GUI
1400DropAdjust.PlaceholderText = 'Drop'
1401DropAdjust.Name = 'DropAdjust'
1402DropAdjust.Text = tonumber(drop)
1403DropAdjust.Position = SensAdjust.Position + UDim2.new(0,0,0,40)
1404DropAdjust.SensLabel.Name = 'DropLabel'
1405DropAdjust.DropLabel.Text = 'Drop:'
1406
1407local KeysList = Instance.new('TextLabel',GUI)
1408KeysList.Name = 'KeysList'
1409KeysList.Font = Enum.Font.SourceSans
1410KeysList.TextStrokeTransparency = .6
1411KeysList.TextSize = 0
1412KeysList.TextColor3 = Color3.new(1,1,1)
1413KeysList.Size = UDim2.new(0,0,1,0)
1414KeysList.Position = UDim2.new(0,5,0,-280)
1415KeysList.BackgroundTransparency = 1
1416KeysList.Active = false
1417
1418local n = 0
1419
1420spawn(function()
1421 while Status do
1422 Indicator.TextColor3 = Color3.fromHSV(n,.5,1)
1423 FovGui.ImageColor3 = Indicator.TextColor3
1424 if not textSet then
1425 if aim_toggled and target then
1426 Status.TextColor3 = aimingcolor
1427 Status.Text = ('Aiming at '..target.Name)
1428 else
1429 Status.TextColor3 = Color3.fromHSV(n,.5,1)
1430 Status.Text = 'On Standby'
1431 end
1432 end
1433 n = (n+.005)%1
1434 hb()
1435 end
1436end)
1437
1438SensAdjust.InputEnded:Connect(function() if SensAdjust.Text~='' then sens = tonumber(SensAdjust.Text)>0 and tonumber(SensAdjust.Text) or sens end end)
1439FovAdjust.InputEnded:Connect(function() if FovAdjust.Text~='' then fov = tonumber(FovAdjust.Text)>0 and tonumber(FovAdjust.Text) or fov
1440FovGui:TweenSize(UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true) end end)
1441DropAdjust.InputEnded:Connect(function() if DropAdjust.Text~='' then drop = tonumber(DropAdjust.Text)>=0 and tonumber(DropAdjust.Text) or drop end end)
1442
1443local function distfromspawn(x)
1444 if Spawn then
1445 return x:DistanceFromCharacter(Spawn.Position)
1446 else
1447 return 201
1448 end
1449end
1450
1451local function setText(text)
1452 spawn(function()
1453 textSet = true
1454 Status.Text = text
1455 Status.TextColor3 = Color3.new(1,1,1)
1456 wait(#text/4)
1457 textSet = false
1458 end)
1459end
1460
1461local function playsound(id)
1462 local sound = Instance.new('Sound',Camera)
1463 sound.Volume = 3
1464 sound:Play()
1465 game:GetService('Debris'):AddItem(sound,5)
1466end
1467
1468
1469local function DrawLine(Folder,P1,P2,Thickness,Color,LineTransparency,BorderThickness,BorderColor)
1470 -- Declare variables
1471 local Point1,Point2 = P1.Position,P2.Position
1472 if Point1 and Point2 then
1473 local X,Y = Camera.ViewportSize.X, Camera.ViewportSize.Y
1474 local X1,X2 = (X * Point1.X.Scale + Point1.X.Offset + P1.Size.X.Offset/2), (X * Point2.X.Scale + Point2.X.Offset + P2.Size.X.Offset/2)
1475 local Y1,Y2 = (Y * Point1.Y.Scale + Point1.Y.Offset + P1.Size.Y.Offset/2), (Y * Point2.Y.Scale + Point2.Y.Offset + P2.Size.Y.Offset/2)
1476 local MidX,MidY = (X1+X2)/2, (Y1+Y2)/2
1477 -- Set defaults to prevent errors
1478 Thickness = Thickness or 1
1479 Color = Color or Color3.new(1,1,1)
1480 LineTransparency = LineTransparency or 0
1481 BorderThickness = BorderThickness or 0
1482 BorderColor = BorderColor or Color3.new(0,0,0)
1483 -- Draw the line
1484 local Line = Folder:FindFirstChild(P1.Name..'-'..P2.Name) or Instance.new('Frame',Folder)
1485 Line.Visible = false
1486 Line.BackgroundTransparency = LineTransparency
1487 Line.BorderSizePixel = BorderThickness
1488 Line.BorderColor3 = BorderColor
1489 Line.Size = UDim2.new(0,(Vector2.new(X1,Y1) - Vector2.new(X2,Y2)).magnitude-1,0,Thickness)
1490 Line.Position = UDim2.new(0,MidX-Line.AbsoluteSize.X/2,0,MidY-Line.AbsoluteSize.Y)
1491 Line.BackgroundColor3 = Color
1492 Line.Rotation = math.deg(math.atan2((Y2-Y1),(X2-X1)))
1493 Line.Name = P1.Name..'-'..P2.Name
1494 Line.Visible = true
1495 return Line
1496 else
1497 return nil
1498 end
1499end
1500
1501local function GetNearest(Mode)
1502 local lowest,nearest,gui = math.huge,nil,nil
1503 if Mode==1 then
1504 for _,plr in next,Players:GetPlayers() do
1505 if plr.Name~=Player.Name and plr.Character~=nil and plr.Character:FindFirstChild(targetpart) then
1506 local dist = Player:DistanceFromCharacter(plr.Character[targetpart].Position)
1507 local ray = Ray.new(Player.Character.Head.Position,(plr.Character[targetpart].Position-Player.Character.Head.Position).unit*5000)
1508 local part,point = workspace:FindPartOnRayWithIgnoreList(ray,{Camera,Player.Character,unpack(windows)})
1509 local Z = Camera:WorldToScreenPoint(plr.Character[targetpart].Position).Z
1510 if part and part:IsDescendantOf(plr.Character) and Z>0 and dist < lowest and (ffa or plr.TeamColor~=Player.TeamColor) then lowest = dist nearest = plr.Character end
1511 end
1512 end
1513 elseif Mode==2 then
1514 for _,plr in next,Players:GetPlayers() do
1515 if plr.Name~=Player.Name and plr.Character~=nil and plr.Character:FindFirstChild(targetpart) then
1516 local pos = Camera:WorldToScreenPoint(plr.Character[targetpart].Position)
1517 local ray = Ray.new(Player.Character[targetpart].Position,(plr.Character[targetpart].Position-Player.Character[targetpart].Position).unit*2048)
1518 local part,point = workspace:FindPartOnRayWithIgnoreList(ray,{Camera,Player.Character,unpack(windows)})
1519 local dist = (Vector2.new(Mouse.X,Mouse.Y)-Vector2.new(pos.X,pos.Y)).magnitude
1520 if part and part:IsDescendantOf(plr.Character) and pos.Z>0 and dist <= Camera.ViewportSize.X/(90/fov) and dist < lowest and (ffa or plr.TeamColor~=Player.TeamColor) then lowest = dist nearest = plr.Character end
1521 end
1522 end
1523 end
1524 return nearest
1525end
1526
1527Mouse.Move:Connect(function()
1528 cursor = ESP:FindFirstChild('Cursor') or Instance.new('Frame',ESP)
1529 cursor.Name = 'Cursor'
1530 cursor.BackgroundTransparency = 1
1531 cursor.Size = UDim2.new(0,1,0,1)
1532 cursor.Position = UDim2.new(0,Mouse.X,0,Mouse.Y)
1533end)
1534
1535UIS.InputBegan:Connect(function(Input)
1536 if Input.KeyCode == toggle_aim or Input.UserInputType == toggle_aim then
1537 aim_toggled = true
1538 warn('GS: aim toggled',aim_toggled and 'on' or 'off')
1539 alert = true
1540 while aim_toggled and aimbot_toggled do
1541 target = GetNearest(aim_priority)
1542 if target then
1543 local dist = Player:DistanceFromCharacter(target[targetpart].Position)
1544 local headpos = Camera:WorldToScreenPoint(target[targetpart].Position+Vector3.new(0,dist/(100/drop),0))
1545 local moveto = Vector2.new((headpos.X-Mouse.X)*sens,(headpos.Y-Mouse.Y)*sens)
1546 aimpos = GUI:FindFirstChild('AimPos') or Instance.new('Frame',GUI)
1547 if not GUI:FindFirstChild('AimPos') then
1548 aimpos.Name = 'AimPos'
1549 aimpos.BorderSizePixel = 1
1550 aimpos.BorderColor3 = Color3.new(0,0,0)
1551 aimpos.BackgroundTransparency = 0
1552 aimpos.BackgroundColor3 = Color3.new(1,1,1)
1553 aimpos.Rotation = 45
1554 aimpos.ZIndex = 4
1555 aimpos.Size = UDim2.new(0,3,0,3)
1556 end
1557 aimpos.Position = UDim2.new(0,headpos.X-aimpos.AbsoluteSize.X/2,0,headpos.Y-aimpos.AbsoluteSize.Y/2)
1558 aimpos.Visible = true
1559 mousemoverel(moveto.X,moveto.Y)
1560 if alert or target~=target_old then
1561 playsound(locksoundid)
1562 print('GS: locked onto',target.Name)
1563 lockedon = true
1564 alert = false
1565 end
1566 end
1567 RS.Heartbeat:wait()
1568 target_old = target
1569 if aimpos then
1570 aimpos.Visible = false
1571 end
1572 end
1573 lockedon = false
1574 elseif Input.KeyCode == toggle_trigger then
1575 trigger_toggled = not trigger_toggled
1576 setText('Toggled TriggerBot '..(trigger_toggled and 'On' or 'Off'))
1577 Notification({Title='TriggerBot';Text='TriggerBot was toggled '..(trigger_toggled and 'On' or 'Off');Duration=2;})
1578 warn('trigger toggled',trigger_toggled and 'on' or 'off')
1579 local Box = Instance.new('SelectionBox',PlayerGui)
1580 Box.Color3 = Color3.new(1,0,0)
1581 Box.LineThickness = .05
1582 Box.Adornee = nil
1583 if trigger_delay>0 then wait(trigger_delay) end
1584 while trigger_toggled do
1585 local Target = Mouse.Target
1586 local plr = Players:FindFirstChild(Target.Parent.Name)
1587 if Target and Target.Parent and plr~=nil and plr~=Player and ffa or plr~=nil and plr.TeamColor~=Player.TeamColor then
1588 Box.Adornee = Mouse.Target
1589 mouse1press()
1590 wait()
1591 mouse1release()
1592 end
1593 RS.Heartbeat:wait()
1594 end
1595 Box:Destroy()
1596 elseif Input.KeyCode == toggle_esp then
1597 esp_toggled = not esp_toggled
1598 Notification({Title='ESP';Text='ESP was toggled '..(esp_toggled and 'On' or 'Off');Duration=2;})
1599 setText('Toggled ESP '..(esp_toggled and 'On' or 'Off'))
1600 elseif Input.KeyCode == toggle_aimbot then
1601 aimbot_toggled = not aimbot_toggled
1602 Notification({Title='AimBot';Text='AimBot was toggled '..(aimbot_toggled and 'On' or 'Off');Duration=2;})
1603 setText('Toggled AimBot '..(aimbot_toggled and 'On' or 'Off'))
1604 elseif Input.KeyCode == fov_increase then
1605 fov = fov + .5
1606 FovAdjust.Text = tonumber(fov)
1607 if FovGui.Visible then
1608 FovGui:TweenSize(UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true)
1609 end
1610 setText('Aim FOV: '..fov)
1611 elseif Input.KeyCode == fov_decrease and fov>0 then
1612 fov = fov - .5
1613 FovAdjust.Text = tonumber(fov)
1614 if FovGui.Visible then
1615 FovGui:TweenSize(UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true)
1616 end
1617 setText('Aim FOV: '..fov)
1618 elseif Input.KeyCode == sens_increase then
1619 sens = sens + .05
1620 SensAdjust.Text = tonumber(sens)
1621 setText('Sens: '..sens)
1622 elseif Input.KeyCode == sens_decrease then
1623 sens = sens - .05
1624 SensAdjust.Text = tonumber(sens)
1625 setText('Sens: '..sens)
1626 elseif Input.KeyCode == targetpart_change then
1627 val = val+1
1628 targetpart = val<=#parts and parts[val] or parts[1]
1629 if parts[1]==targetpart then val = 1 end
1630 Notification({Title='Target Part';Text='Target part set to '..targetpart;Duration=2;})
1631 setText('Target Part: '..targetpart)
1632 elseif Input.KeyCode == ffatoggle then
1633 ffa = not ffa
1634 Notification({Title='FFA Mode';Text='FFA Mode is '..(ffa and 'Enabled' or 'Disabled');Duration=2;})
1635 setText('FFA Mode: '..(ffa and 'Enabled' or 'Disabled'))
1636 elseif Input.KeyCode == priority_toggle then
1637 aim_priority = aim_priority+1>2 and 0 or 1
1638 aim_priority = aim_priority+1
1639 FovGui.Visible = aim_priority>1
1640 setText('Aim Priority: '..(aim_priority==1 and 'Distance' or 'FOV'))
1641 elseif Input.KeyCode == toggle_bones then
1642 esp_bones = not esp_bones
1643 if not esp_bones then
1644 for _,v in next,ESP:GetDescendants() do
1645 if v:IsA('Frame') and v.Name:match('-') then
1646 v:Destroy()
1647 end
1648 end
1649 end
1650 setText('Toggled ESP Bones '..(esp_bones and 'Enabled' or 'Disabled'))
1651 elseif Input.KeyCode == toggle_gui then
1652 hidden = not hidden
1653 for _,gui in next,GUI:GetDescendants() do
1654 if gui:IsA('GuiObject') and not hidden and not gui.Visible then
1655 gui.Visible = true
1656 Mouse.Icon = 'rbxassetid://'..mouseiconid
1657 elseif gui:IsA('GuiObject') and gui.Visible then
1658 gui.Visible = false
1659 esp_toggled = false
1660 Mouse.Icon = old_icon
1661 end
1662 end
1663 elseif Input.KeyCode == toggle_bottompos then
1664 bottompos = not bottompos
1665 if bottompos then
1666 Bottom.Position = UDim2.new(.5,0,1,1)
1667 end
1668 elseif Input.KeyCode == toggle_performance then
1669 performancemode = not performancemode
1670 setText('Performance Mode '..(performancemode and 'Enabled' or 'Disabled'))
1671 elseif Input.KeyCode == toggle_chams then
1672 esp_chams = not esp_chams
1673 setText('Chams '..(esp_chams and 'Enabled' or 'Disabled'))
1674 elseif Input.KeyCode == toggle_tracers then
1675 esp_tracers = not esp_tracers
1676 setText('Tracers '..(esp_chams and 'Enabled' or 'Disabled'))
1677 elseif Input.KeyCode == toggle_boxes then
1678 bounding_box = not bounding_box
1679 setText('Bounding Boxes '..(bounding_box and 'Enabled' or 'Disabled'))
1680 elseif Input.KeyCode == toggle_font then
1681 currentfont = (currentfont+1)>#fonts and 1 or currentfont+1
1682 for _,v in next,GUI:GetDescendants() do
1683 if v.Name~='KeysList' then
1684 if v:IsA('TextLabel') or v:IsA('TextButton') then
1685 v.Font = fonts[currentfont]
1686 end
1687 end
1688 end
1689 end
1690end)
1691
1692UIS.InputEnded:Connect(function(Input)
1693 if Input.KeyCode == toggle_aim or Input.UserInputType == toggle_aim then
1694 aim_toggled = false
1695 end
1696end)
1697
1698local function checkifspawned(x)
1699 spawned = false
1700 while not spawned and game.PlaceId==292439477 do
1701 spawned = distfromspawn(x)>200 and true or false
1702 wait(1/5)
1703 end
1704 spawned = true
1705end
1706
1707checkifspawned(Player)
1708Player.CharacterAdded:Connect(function(c)
1709 checkifspawned(Player)
1710
1711 for _,v in next,ESP:GetDescendants() do
1712 if v:IsA('Frame') and v.Name:match('-') then
1713 v:Destroy()
1714 end
1715 end
1716end)
1717
1718Notification({Title='Aimbot '..version;Text='Loaded successfully.';Icon='rbxassetid://2572157833';Duration=10;})
1719wait(.5)
1720
1721RS.RenderStepped:Connect(function()
1722 if cursor then
1723 FovGui.Position = cursor.Position-UDim2.new(0,FovGui.AbsoluteSize.X/2,0,FovGui.AbsoluteSize.Y/2)
1724 Indicator.Position = cursor.Position+UDim2.new(0,0,0,40)
1725 end
1726end)
1727
1728Mouse.Button1Down:Connect(function()
1729 spawn(function()
1730 if FovGui.Visible then
1731 FovGui:TweenSize(UDim2.new(0,Camera.ViewportSize.X/(90/fov)*2.35,0,Camera.ViewportSize.X/(90/fov)*2.35),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true)
1732 wait(.1)
1733 FovGui:TweenSize(UDim2.new(0,Camera.ViewportSize.X/(90/fov)*2,0,Camera.ViewportSize.X/(90/fov)*2),Enum.EasingDirection.InOut,Enum.EasingStyle.Quad,.1,true)
1734 end
1735 end)
1736end)
1737
1738while true do
1739 Indicator.Text = (aim_priority>1 and 'FOV: '..fov or 'Distance') ..'\nSens: '..sens..(aim_toggled and '\nAiming' or '')
1740 if not bottompos then Bottom.Position = cursor.Position end
1741 if esp_toggled then
1742 for _,v in next,ESP:children() do
1743 if v~=Bottom and not Players:FindFirstChild(v.Name) then
1744 v:Destroy()
1745 end
1746 end
1747 for _,v in next,Players:GetPlayers() do
1748 local Char = v.Character
1749 if Char and spawned and v~=Player and Char:FindFirstChild(targetpart) and distfromspawn(v)>100 then
1750 if ffa or v.TeamColor~=Player.TeamColor then
1751 local X = Camera:GetPartsObscuringTarget({Camera.CFrame.p,Char[targetpart].CFrame.p},{v.Character,Char,Camera,unpack(windows)})
1752 local Dist = Player:DistanceFromCharacter(Char:FindFirstChild(targetpart).Position)
1753 local Color = hiddencolor
1754 local Folder = ESP:FindFirstChild(v.Name) or Instance.new('Folder',ESP)
1755 Folder.Name = v.Name
1756 -- ESP
1757 local Head = Folder:FindFirstChild('Head') or Instance.new('Frame',Folder)
1758 if not Folder:FindFirstChild('Head') then
1759 Head.Name = 'Head'
1760 Head.BorderSizePixel = 1
1761 Head.BorderColor3 = Color3.new(0,0,0)
1762 Head.BackgroundTransparency = 0
1763 end
1764 Head.BackgroundColor3 = #X>0 and hiddencolor or #X==0 and visiblecolor
1765 Head.Rotation = headboxshape=='diamond' and 45 or 0
1766 Head.ZIndex = 3
1767 local HP = Folder:FindFirstChild('HP') or Instance.new('TextLabel',Folder)
1768 if not Folder:FindFirstChild('HP') then
1769 HP.Name = 'HP'
1770 HP.TextTransparency = Head.BackgroundTransparency-.4
1771 HP.Font = fonts[currentfont]
1772 HP.TextStrokeTransparency = .6
1773 HP.BackgroundTransparency = 1
1774 HP.TextSize = 14
1775 end
1776 HP.Text = showdists and Char.Name..'\n'..math.floor(Dist+.5) or Char.Name
1777 if aim_toggled and target==Char then
1778 Head.Size = UDim2.new(0,headboxaimsize,0,headboxaimsize)
1779 Head.BackgroundColor3 = aimingcolor
1780 HP.Text = showdists and '['..Char.Name..']'..'\n'..math.floor(Dist+.5) or '['..Char.Name..']'
1781 HP.TextSize = 16
1782 else
1783 Head.Size = UDim2.new(0,headboxsize,0,headboxsize)
1784 end
1785 HP.TextColor3 = Head.BackgroundColor3
1786 local toScreen = Camera:WorldToScreenPoint(Char[targetpart].CFrame.p)
1787 if #X==0 then Color = visiblecolor end
1788 Head.Position = UDim2.new(0,toScreen.X-Head.Size.X.Offset/2,0,toScreen.Y-Head.Size.Y.Offset/2)
1789 HP.Position = Head.Position-UDim2.new(0,0,0,textoffset)
1790 if esp_tracers then
1791 local Line = DrawLine(Folder,ESP.Bottom,Head,linesize,Head.BackgroundColor3,.75,1,Color3.new(0,0,0))
1792 Line.Visible = Head.Visible
1793 else
1794 local imtired = Folder:FindFirstChild(ESP.Bottom.Name..'-'..Head.Name)
1795 if imtired then
1796 imtired:Destroy()
1797 end
1798 end
1799 if toScreen.Z<=0 then Head.Visible = false else Head.Visible = true end
1800 HP.Visible = Head.Visible
1801 if Char:FindFirstChild('Humanoid') and Char.Humanoid.RigType==Enum.HumanoidRigType.R6 then
1802 local Neck = Folder:FindFirstChild('Neck') or Instance.new('Frame',Folder)
1803 Neck.Name = 'Neck'
1804 Neck.ZIndex = 2
1805 if Char['Torso']~=nil then
1806 local Pos = (Char.Torso.CFrame*CFrame.new(0,.8,0)).p
1807 local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
1808 Neck.Position = UDim2.new(0,X,0,Y)
1809 Neck.BorderSizePixel = 0
1810 if Z<=0 then Neck.Visible = false else Neck.Visible = true end
1811 else
1812 Neck.Visible = false
1813 end
1814 --
1815 local Pelvis = Folder:FindFirstChild('Pelvis') or Instance.new('Frame',Folder)
1816 Pelvis.Name = 'Pelvis'
1817 Pelvis.ZIndex = 2
1818 Pelvis.BorderSizePixel = 0
1819 if Char['Torso']~=nil then
1820 local Pos = (Char.Torso.CFrame*CFrame.new(0,-1,0)).p
1821 local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
1822 Pelvis.Position = UDim2.new(0,X,0,Y)
1823 if Z<=0 then Pelvis.Visible = false else Pelvis.Visible = true end
1824 else
1825 Pelvis.Visible = false
1826 end
1827 --
1828 local RightFoot = Folder:FindFirstChild('Right Foot') or Instance.new('Frame',Folder)
1829 RightFoot.Name = 'Right Foot'
1830 RightFoot.ZIndex = 2
1831 RightFoot.BorderSizePixel = 0
1832 if Char['Right Leg']~=nil then
1833 local Pos = (Char['Right Leg'].CFrame*CFrame.new(0,-1,0)).p
1834 local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
1835 RightFoot.Position = UDim2.new(0,X,0,Y)
1836 if Z<=0 then RightFoot.Visible = false else RightFoot.Visible = true end
1837 else
1838 RightFoot.Visible = false
1839 end
1840 --
1841 local LeftFoot = Folder:FindFirstChild('Left Foot') or Instance.new('Frame',Folder)
1842 LeftFoot.Name = 'Left Foot'
1843 if Char['Left Leg']~=nil then
1844 local Pos = (Char['Left Leg'].CFrame*CFrame.new(0,-1,0)).p
1845 local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
1846 LeftFoot.Position = UDim2.new(0,X,0,Y)
1847 LeftFoot.BorderSizePixel = 0
1848 if Z<=0 then LeftFoot.Visible = false else LeftFoot.Visible = true end
1849 else
1850 LeftFoot.Visible = false
1851 end
1852 --
1853 local RightHand = Folder:FindFirstChild('Right Hand') or Instance.new('Frame',Folder)
1854 RightHand.Name = 'Right Hand'
1855 RightHand.ZIndex = 2
1856 RightHand.BorderSizePixel = 0
1857 if Char['Right Arm']~=nil then
1858 local Pos = (Char['Right Arm'].CFrame*CFrame.new(0,-1,0)).p
1859 local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
1860 RightHand.Position = UDim2.new(0,X,0,Y)
1861 if Z<=0 then RightHand.Visible = false else RightHand.Visible = true end
1862 else
1863 RightHand.Visible = false
1864 end
1865 --
1866 local LeftHand = Folder:FindFirstChild('Left Hand') or Instance.new('Frame',Folder)
1867 LeftHand.Name = 'Left Hand'
1868 LeftHand.ZIndex = 2
1869 LeftHand.BorderSizePixel = 0
1870 if Char['Left Arm']~=nil then
1871 local Pos = (Char['Left Arm'].CFrame*CFrame.new(0,-1,0)).p
1872 local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
1873 LeftHand.Position = UDim2.new(0,X,0,Y)
1874 if Z<=0 then LeftHand.Visible = false else LeftHand.Visible = true end
1875 else
1876 LeftHand.Visible = false
1877 end
1878 -- draw joints
1879 if esp_bones then
1880 if Head.Visible then DrawLine(Folder,Head,Neck,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
1881 if Neck.Visible then DrawLine(Folder,Neck,Pelvis,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
1882 if Neck.Visible then DrawLine(Folder,Neck,RightHand,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
1883 if Neck.Visible then DrawLine(Folder,Neck,LeftHand,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
1884 if Pelvis.Visible then DrawLine(Folder,Pelvis,RightFoot,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
1885 if Pelvis.Visible then DrawLine(Folder,Pelvis,LeftFoot,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
1886 end
1887 end
1888
1889 if esp_chams then
1890 for _,Part in next,Char:children() do
1891 if Part:IsA('BasePart') and Part.Name~='HumanoidRootPart' then
1892 local Adornment = Folder:FindFirstChild(Part.Name..'_Cham') or Instance.new('BoxHandleAdornment',Folder)
1893 if not Folder:FindFirstChild(Part.Name..'_Cham') then
1894 Adornment.Name = Part.Name..'_Cham'
1895 Adornment.Adornee = Part
1896 Adornment.AlwaysOnTop = true
1897 Adornment.Size = Part.Name=='Head' and Vector3.new(1,1,1) or Part.Size
1898 Adornment.ZIndex = 1
1899 end
1900 Adornment.Color3 = Head.BackgroundColor3
1901 end
1902 end
1903 else
1904 for _,v in next,Folder:GetDescendants() do
1905 if v.Name:match('Cham') then
1906 v:Destroy()
1907 end
1908 end
1909 end
1910
1911 if bounding_box and Char:FindFirstChild('HumanoidRootPart') then
1912 local Box = Char:FindFirstChild('Box') or Instance.new('BillboardGui',Char)
1913 if not Char:FindFirstChild('Box') then
1914 Box.Name = 'Box'
1915 Box.Adornee = Char:FindFirstChild('HumanoidRootPart')
1916 Box.AlwaysOnTop = true
1917 Box.LightInfluence = 0
1918 Box.StudsOffset = Vector3.new(0,-Box.Adornee.Size.Y/4,0)
1919 Box.Size = UDim2.new(4,1,5,1)
1920 local Top = Instance.new('Frame',Box)
1921 Top.Size = UDim2.new(1,0,0,box_line_size)
1922 Top.BorderSizePixel = 0
1923 local Bot = Top:Clone()
1924 Bot.Position = UDim2.new(0,0,1,-box_line_size)
1925 Bot.Parent = Box
1926 local Left = Top:Clone()
1927 Left.Size = UDim2.new(0,1,1,0)
1928 Left.Parent = Box
1929 local Right = Left:Clone()
1930 Right.Position = UDim2.new(1,-box_line_size,0,0)
1931 Right.Parent = Box
1932 end
1933 for _,v in next,Box:children() do
1934 if v:IsA('Frame') then
1935 v.BackgroundColor3 = Head.BackgroundColor3
1936 end
1937 end
1938 else
1939 local Box = Char:FindFirstChild('Box')
1940 if Box then
1941 Box:Destroy()
1942 end
1943 end
1944
1945 if lockedon and target and aim_line and ESP:FindFirstChild(target.Name) then
1946 DrawLine(ESP,cursor,ESP:FindFirstChild(target.Name).Head,1,Head.BackgroundColor3,.5)
1947 end
1948
1949 else
1950 if ESP:FindFirstChild(v.Name) then
1951 ESP:FindFirstChild(v.Name):Destroy()
1952 end
1953 end
1954 else
1955 if ESP:FindFirstChild(v.Name) then
1956 ESP:FindFirstChild(v.Name):Destroy()
1957 end
1958 end
1959 end
1960 else
1961 for _,v in next,ESP:children() do
1962 if v:IsA('Folder') then
1963 v:Destroy()
1964 end
1965 end
1966 end
1967 if performancemode then
1968 wait(1/(workspace:GetRealPhysicsFPS()*.75))
1969 else
1970 RS.Stepped:wait()
1971 end
1972end
1973
1974--[[ broken
1975spawn(function()
1976while script and game.PlaceId == 292439477 and workspace:FindFirstChild('Map') do
1977 windows = {}
1978 for _,v in next,workspace.Map:GetChildren() do
1979 if v.Name=='Window' then
1980 table.insert(windows,v)
1981 end
1982 end
1983 wait(2)
1984end
1985end)
1986--]]
1987end)
1988removemap.MouseButton1Down:connect(function()
1989while wait() do
1990for a,z in pairs(game:GetService("Workspace")["BuildStuff"]:GetDescendants()) do
1991z:Destroy()
1992end
1993end
1994end)
1995local Players = game:GetService'Players';
1996local LocalPlayer = Players.LocalPlayer;
1997local Camera = workspace.CurrentCamera;
1998local Dot = Vector3.new().Dot;
1999local Networks = {};
2000
2001for i, v in pairs(debug.getregistry()) do
2002if typeof(v) == 'function' and islclosure(v) then
2003local ups = debug.getupvalues(v);
2004if ups.NWModule and ups.NWModule.FireServer then
2005Networks[#Networks + 1] = ups.NWModule;
2006end
2007end
2008end
2009
2010local Net = Networks[1];
2011
2012assert(#Networks ~= 0, 'No Network');
2013
2014function SameTeam(P1, P2)
2015if P1 == P2 then
2016return false
2017end
2018if P1.Neutral or P2.Neutral then
2019return false
2020elseif P1.TeamColor == P2.TeamColor then
2021return true
2022end
2023return false
2024end
2025
2026function GetPlayerClosestToMouse()
2027local Highest = {0, nil};
2028
2029for i, v in pairs(Players:GetPlayers()) do
2030local Player = v;
2031local Character = Player.Character;
2032if Player ~= LocalPlayer and not SameTeam(Player, LocalPlayer) and Character then
2033local Head = Character:FindFirstChild'Head';
2034if Head then
2035local Direction = Camera.CFrame.lookVector.unit;
2036local Relative = Player.Character.Head.Position - Camera.CFrame.p;
2037local Unit = Relative.unit;
2038
2039local DP = Dot(Direction, Unit);
2040if DP > Highest[1] then
2041Highest = {DP, Player};
2042end
2043end
2044end
2045end
2046
2047return Highest[2];
2048end
2049
2050local Active = true;
2051local Rand = Random.new();
2052
2053for i, v in pairs(Networks) do
2054shared['oFireServer' .. tostring(v)] = shared['oFireServer' .. tostring(v)] or v.FireServer;
2055v.FireServer = function(...)
2056local Arguments = {...};
2057
2058if Active and Arguments[2] == 'Damage' and typeof(Arguments[3]) == 'Instance' and Arguments[3]:IsA'ValueBase' then
2059return true;
2060end
2061
2062return shared['oFireServer' .. tostring(v)](...);
2063end
2064end
2065
2066game:GetService'UserInputService'.InputEnded:connect(function(Input)
2067if Input.UserInputType == Enum.UserInputType.Keyboard and Input.KeyCode == Enum.KeyCode.F3 then
2068Active = not Active;
2069elseif Active and Input.UserInputType == Enum.UserInputType.MouseButton1 then
2070spawn(function()
2071wait(.05);
2072local Player = GetPlayerClosestToMouse();
2073if Player then
2074local Character = Player.Character;
2075if Character then
2076local Humanoid = Character:FindFirstChildOfClass'Humanoid';
2077local Head = Character:FindFirstChild'Head';
2078if Humanoid and Humanoid.Health > 0 and Head then
2079Net:FireServer('Damage', Humanoid, Head, Head.Position, Head.Position + Vector3.new(Rand:NextNumber() / 10, .25 + (Rand:NextNumber() / 10), Rand:NextNumber() / 10))
2080end
2081end
2082end
2083end);
2084end
2085end)