SHARE
TWEET

myAimbotPhantomForcesScripts

aewdfawd623 Jul 14th, 2019 208 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. warn([[
  2. Please stop telling me that your free exploit can't run this script. I've stopped working on it.
  3. ACE is in development.
  4. Avexus#1234
  5. ]])
  6. print("Scripting by !7dsboy07#4803");
  7. local UIS = game:GetService('UserInputService')
  8. local RS = game:GetService('RunService')
  9. local Players = game:GetService('Players')
  10. local StarterGui = game:GetService('StarterGui')
  11. local Player = Players.LocalPlayer
  12. local Studio = RS:IsStudio()
  13. local PlayerGui = RS:IsStudio() and Player:WaitForChild('PlayerGui') or game.CoreGui
  14. local Mouse = Player:GetMouse()
  15. local old_icon = Mouse.Icon
  16. local Camera = workspace.CurrentCamera
  17. targetpart = 'Head' -- Don't change this.
  18. -- It can be changed with the targetpart_change hotkey ingame.
  19. local target
  20. local target_old
  21. local alert = false
  22. local lockedon = false
  23. local settingkey = false
  24. local upvals = nil
  25. local val = 1
  26. local windows = {}
  27. local function hb() RS.Heartbeat:wait() end
  28.  
  29. local version = 1.25
  30. local Spawn = nil or game.PlaceId == 292439477 and workspace:WaitForChild('Lobby',2):WaitForChild('Spawn1',2)
  31. local spawned = false
  32.  
  33. script.Name = 'GameSense!'
  34. Mouse.TargetFilter = Camera
  35.  
  36. -- hotkey
  37. toggle_aim = Enum.UserInputType.MouseButton2
  38. toggle_aimbot = Enum.KeyCode.LeftAlt
  39. toggle_trigger = Enum.KeyCode.F10
  40. toggle_esp = Enum.KeyCode.End
  41. toggle_gui = Enum.KeyCode.F6
  42. toggle_bottompos = Enum.KeyCode.F7
  43. toggle_performance = Enum.KeyCode.F8
  44. toggle_bones = Enum.KeyCode.Delete
  45. toggle_chams = Enum.KeyCode.F3
  46. toggle_tracers = Enum.KeyCode.F2
  47. toggle_boxes = Enum.KeyCode.F4
  48. toggle_font = Enum.KeyCode.F1
  49. ffatoggle = Enum.KeyCode.Home
  50. targetpart_change = Enum.KeyCode.CapsLock
  51. priority_toggle = Enum.KeyCode.Insert
  52. sethotkey = Enum.KeyCode.RightControl
  53. -- aim fov
  54. fov_increase = Enum.KeyCode.KeypadPlus
  55. fov_decrease = Enum.KeyCode.KeypadMinus
  56. -- aim sens (how smooth your crosshair will move)
  57. sens_increase = Enum.KeyCode.RightBracket
  58. sens_decrease = Enum.KeyCode.LeftBracket
  59.  
  60. -- parts
  61. parts = {
  62.     'Head';
  63.     'Torso'
  64. }
  65.  
  66. fonts = {
  67.     Enum.Font.SourceSansBold,
  68.     Enum.Font.Cartoon,
  69.     Enum.Font.Arcade,
  70.     Enum.Font.SciFi,
  71.     Enum.Font.Fantasy,
  72.     Enum.Font.Code,
  73.     Enum.Font.Highway,
  74.     Enum.Font.Bodoni
  75. }
  76.  
  77. textSet = false
  78.  
  79. currentfont = 1
  80. ffa = false
  81. hidden = false
  82. performancemode = false
  83. -- aim
  84. fov = 5
  85. sens = .25
  86. drop = .45
  87. aim_toggled = false
  88. bottompos = true
  89. aim_priority = 2
  90. -- [2] FOV or [1] Distance
  91. aimingcolor = Color3.fromRGB(0,165,255)
  92. aimbot_toggled = true
  93. aim_line = true
  94. locksoundid = 538769304
  95. mouseiconid =  18671553
  96.  
  97. -- trigger
  98. trigger_toggled = false
  99. trigger_delay = 1/20
  100.  
  101. -- esp
  102. esp_toggled = true
  103. esp_bones = false
  104. esp_chams = true
  105. esp_tracers = true
  106. -- item_esp (coming soon)
  107. linesize = 1
  108. showdists = true
  109. textsize = 14
  110. textoffset = 20
  111. visiblecolor = Color3.fromRGB(38,255,99)
  112. hiddencolor = Color3.fromRGB(255,37,40)
  113. headboxsize = 4
  114. headboxaimsize = 6
  115. headboxshape = 'diamond'
  116. -- rectangle or diamond
  117.  
  118. -- box esp
  119. bounding_box = true
  120. -- box_pointsize = 0 [UNUSED]
  121. box_line_size = 1
  122. -- box_line_size_visible = 2 [UNUSED]
  123.  
  124. local GUI = Instance.new('ScreenGui',PlayerGui)
  125. GUI.Name = 'GameSense '..version
  126. GUI.ResetOnSpawn = false
  127.  
  128. ESP = Instance.new('Folder',GUI)
  129. ESP.Name = 'ESP'
  130. local Bottom = Instance.new('Frame',ESP)
  131. Bottom.Name = 'Bottom'
  132. Bottom.BackgroundTransparency = 1
  133. Bottom.Size = UDim2.new(0,1,0,1)
  134. Bottom.Position = UDim2.new(.5,0,1,1)
  135.  
  136. local Status = Instance.new('TextLabel',GUI)
  137. Status.Name = 'Status'
  138. Status.BackgroundTransparency = 1
  139. Status.Size = UDim2.new(0,500,0,50)
  140. Status.Position = UDim2.new(.5,-250,.85,0)
  141. Status.TextSize = 24
  142. Status.Font = Enum.Font.SourceSansBold
  143. Status.TextColor3 = Color3.new(1,1,1)
  144. Status.TextStrokeColor3 = Color3.new(0,0,0)
  145. Status.TextStrokeTransparency = .6
  146. Status.Text = 'EDIT BY 2GEGA '..version..' Enjoy!'
  147. Status.ZIndex = 50
  148.  
  149. local Credits = Status:Clone()
  150. Credits.Name = 'Credits'
  151. Credits.Parent = GUI
  152. Credits.Position = UDim2.new(.5,-250,.85,-20)
  153. Credits.TextSize = 16
  154. local function ColorText(text)
  155.     spawn(function()
  156.     textSet = true
  157.     Status2.Text = text
  158.     Status2.TextColor3 = Color3.new(1,1,1)
  159.     wait(#text/4)
  160.     textSet = false
  161.     end)
  162. end
  163.  
  164.  
  165. local FovGui = Instance.new('ImageLabel',GUI)
  166. FovGui.Name = 'FovGui'
  167. FovGui.Size = UDim2.new(0,(Camera.ViewportSize.X/(90/fov))*2,0,(Camera.ViewportSize.X/(90/fov))*2)
  168. FovGui.Position = UDim2.new(0.5,-FovGui.AbsoluteSize.X/2,0.5,-FovGui.AbsoluteSize.Y/2)
  169. FovGui.BackgroundTransparency = 1
  170. FovGui.ImageTransparency = .9
  171. FovGui.ImageColor3 = Color3.new(1,0,0)
  172.  
  173.  
  174.  
  175. local Indicator = Instance.new('TextLabel',GUI)
  176. Indicator.Name = 'Indicator'
  177. Indicator.Font = Enum.Font.SourceSans
  178. Indicator.TextSize = 14
  179. Indicator.TextXAlignment = Enum.TextXAlignment.Center
  180. Indicator.TextYAlignment = Enum.TextYAlignment.Center
  181. Indicator.TextStrokeTransparency = .75
  182. Indicator.Text = aim_priority>1 and 'FOV: '..fov or 'Distance'
  183.  
  184. local SensAdjust = Instance.new('TextBox',GUI)
  185. SensAdjust.Name = 'SensAdjust'
  186. SensAdjust.Font = Enum.Font.SourceSans
  187. SensAdjust.BackgroundTransparency = .75
  188. SensAdjust.BackgroundColor3 = Color3.new(0,0,0)
  189. SensAdjust.BorderColor3 = Color3.new(1,1,1)
  190. SensAdjust.Size = UDim2.new(0,50,0,20)
  191. SensAdjust.TextStrokeTransparency = .6
  192. SensAdjust.TextColor3 = Color3.new(1,1,1)
  193. SensAdjust.TextSize = 14
  194. SensAdjust.PlaceholderText = 'Sens'
  195. SensAdjust.Text = tonumber(sens)
  196. SensAdjust.Position = Credits.Position + UDim2.new(0,250,0,75)
  197.  
  198. local SensLabel = Instance.new('TextLabel',SensAdjust)
  199. SensLabel.Name = 'SensLabel'
  200. SensLabel.Font = Enum.Font.SourceSans
  201. SensLabel.Size = UDim2.new(1,0,1,0)
  202. SensLabel.BackgroundTransparency = 1
  203. SensLabel.TextSize = 14
  204. SensLabel.TextColor3 = Color3.new(1,1,1)
  205. SensLabel.TextStrokeColor3 = Color3.new(0,0,0)
  206. SensLabel.TextStrokeTransparency = .6
  207. SensLabel.Text = 'Sens:'
  208. SensLabel.Position = UDim2.new(-1,0,0,0)
  209. SensLabel.TextXAlignment = Enum.TextXAlignment.Left
  210.  
  211. local FovAdjust = SensAdjust:Clone()
  212. FovAdjust.Parent = GUI
  213. FovAdjust.PlaceholderText = 'FOV'
  214. FovAdjust.Name = 'FovAdjust'
  215. FovAdjust.Text = tonumber(fov)
  216. FovAdjust.Position = SensAdjust.Position + UDim2.new(0,0,0,20)
  217. FovAdjust.SensLabel.Name = 'FovLabel'
  218. FovAdjust.FovLabel.Text = 'Fov:'
  219.  
  220. local DropAdjust = SensAdjust:Clone()
  221. DropAdjust.Parent = GUI
  222. DropAdjust.PlaceholderText = 'Drop'
  223. DropAdjust.Name = 'DropAdjust'
  224. DropAdjust.Text = tonumber(drop)
  225. DropAdjust.Position = SensAdjust.Position + UDim2.new(0,0,0,40)
  226. DropAdjust.SensLabel.Name = 'DropLabel'
  227. DropAdjust.DropLabel.Text = 'Drop:'
  228.  
  229. local KeysList = Instance.new('TextLabel',GUI)
  230. KeysList.Name = 'KeysList'
  231. KeysList.Font = Enum.Font.SourceSans
  232. KeysList.TextStrokeTransparency = .6
  233. KeysList.TextSize = 14
  234. KeysList.TextColor3 = Color3.new(1,1,1)
  235. KeysList.Size = UDim2.new(0,0,1,0)
  236. KeysList.Position = UDim2.new(0,5,0,-280)
  237. KeysList.BackgroundTransparency = 1
  238. KeysList.Active = false
  239. KeysList.TextXAlignment = Enum.TextXAlignment.Left
  240. KeysList.TextYAlignment = Enum.TextYAlignment.Bottom
  241. KeysList.Text = 'AimBot Toggle: '..toggle_aimbot.Name..'\nAimbot: '..toggle_aim.Name..'\nAimbot Part Toggle: '..targetpart_change.Name..'\nPriority Toggle: '..priority_toggle.Name
  242. ..'\nESP Toggle: '..toggle_esp.Name..'\nBones Toggle: '..toggle_bones.Name..'\nChams Toggle: '..toggle_chams.Name..'\nBoxes Toggle: '..toggle_boxes.Name..'\nFOV Increase: '..fov_increase.Name..'\nFOV Decrease: '..fov_decrease.Name..'\nSens Increase: '
  243. ..sens_increase.Name..'\nSens Decrease: '..sens_decrease.Name..'\nAutoShot: '..toggle_trigger.Name..'\nFFA Toggle: '..ffatoggle.Name..'\nHide Cheats: '..toggle_gui.Name
  244. ..'\nChange ESP Origin: '..toggle_bottompos.Name..'\nPerformance Mode: '..toggle_performance.Name..'\nChange Font: '..toggle_font.Name
  245.  
  246. local n = 0
  247.  
  248. spawn(function()
  249.     while Status do
  250.         Indicator.TextColor3 = Color3.fromHSV(n,.5,1)
  251.         FovGui.ImageColor3 = Indicator.TextColor3
  252.         if not textSet then
  253.         if aim_toggled and target then
  254.             Status.TextColor3 = aimingcolor
  255.             Status.Text = ('Aiming'..target.Name)
  256.         else
  257.             Status.TextColor3 = Color3.fromHSV(n,.5,1)
  258.             Status.TextColor3 = Color3.fromHSV(n,.5,1)
  259.             Status.Text = 'EDIT BY 2GEGA  discord ! 7dsboy07#4803 '
  260.  
  261.         end
  262.         end
  263.         n = (n+.005)%1
  264.         hb()
  265.     end
  266. end)
  267.  
  268. SensAdjust.InputEnded:Connect(function() if SensAdjust.Text~='' then sens = tonumber(SensAdjust.Text)>0 and tonumber(SensAdjust.Text) or sens end end)
  269. FovAdjust.InputEnded:Connect(function() if FovAdjust.Text~='' then fov = tonumber(FovAdjust.Text)>0 and tonumber(FovAdjust.Text) or fov
  270. 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) end end)
  271. DropAdjust.InputEnded:Connect(function() if DropAdjust.Text~='' then drop = tonumber(DropAdjust.Text)>=0 and tonumber(DropAdjust.Text) or drop end end)
  272.  
  273. local function distfromspawn(x)
  274.     if Spawn then
  275.         return x:DistanceFromCharacter(Spawn.Position)
  276.     else
  277.         return 201
  278.     end
  279. end
  280.  
  281. local function setText(text)
  282.     spawn(function()
  283.     textSet = true
  284.     Status.Text = text
  285.     Status.TextColor3 = Color3.new(1,1,1)
  286.     wait(#text/4)
  287.     textSet = false
  288.     end)
  289. end
  290.  
  291. local function playsound(id)
  292.     local sound = Instance.new('Sound',Camera)
  293.     sound.SoundId = 'rbxassetid://'..id
  294.     sound.Volume = 3
  295.     sound:Play()
  296.     game:GetService('Debris'):AddItem(sound,5)
  297. end
  298.  
  299. playsound(1168009121)
  300. Mouse.Icon = 'rbxassetid://'..mouseiconid
  301.  
  302. local function Notification(...)
  303.     playsound(140910211)
  304.     StarterGui:SetCore('SendNotification',...)
  305. end
  306.  
  307. local function DrawLine(Folder,P1,P2,Thickness,Color,LineTransparency,BorderThickness,BorderColor)
  308.     -- Declare variables
  309.     local Point1,Point2 = P1.Position,P2.Position
  310.     if Point1 and Point2 then
  311.     local X,Y = Camera.ViewportSize.X, Camera.ViewportSize.Y
  312.     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)
  313.     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)
  314.     local MidX,MidY = (X1+X2)/2, (Y1+Y2)/2
  315.     -- Set defaults to prevent errors
  316.     Thickness = Thickness or 1
  317.     Color = Color or Color3.new(1,1,1)
  318.     LineTransparency =  LineTransparency or 0
  319.     BorderThickness = BorderThickness or 0
  320.     BorderColor = BorderColor or Color3.new(0,0,0)
  321.     -- Draw the line
  322.     local Line = Folder:FindFirstChild(P1.Name..'-'..P2.Name) or Instance.new('Frame',Folder)
  323.     Line.Visible = false
  324.     Line.BackgroundTransparency = LineTransparency
  325.     Line.BorderSizePixel = BorderThickness
  326.     Line.BorderColor3 = BorderColor
  327.     Line.Size = UDim2.new(0,(Vector2.new(X1,Y1) - Vector2.new(X2,Y2)).magnitude-1,0,Thickness)
  328.     Line.Position = UDim2.new(0,MidX-Line.AbsoluteSize.X/2,0,MidY-Line.AbsoluteSize.Y)
  329.     Line.BackgroundColor3 = Color
  330.     Line.Rotation = math.deg(math.atan2((Y2-Y1),(X2-X1)))
  331.     Line.Name = P1.Name..'-'..P2.Name
  332.     Line.Visible = true
  333.     return Line
  334.     else
  335.         return nil
  336.     end
  337. end
  338.  
  339. local function GetNearest(Mode)
  340.     local lowest,nearest,gui = math.huge,nil,nil
  341.     if Mode==1 then
  342.     for _,plr in next,Players:GetPlayers() do
  343.         if plr.Name~=Player.Name and plr.Character~=nil and plr.Character:FindFirstChild(targetpart) then
  344.             local dist = Player:DistanceFromCharacter(plr.Character[targetpart].Position)
  345.             local ray = Ray.new(Player.Character.Head.Position,(plr.Character[targetpart].Position-Player.Character.Head.Position).unit*5000)
  346.             local part,point = workspace:FindPartOnRayWithIgnoreList(ray,{Camera,Player.Character,unpack(windows)})
  347.             local Z = Camera:WorldToScreenPoint(plr.Character[targetpart].Position).Z
  348.             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
  349.         end
  350.     end
  351.     elseif Mode==2 then
  352.         for _,plr in next,Players:GetPlayers() do
  353.             if plr.Name~=Player.Name and plr.Character~=nil and plr.Character:FindFirstChild(targetpart) then
  354.                 local pos = Camera:WorldToScreenPoint(plr.Character[targetpart].Position)
  355.                 local ray = Ray.new(Player.Character[targetpart].Position,(plr.Character[targetpart].Position-Player.Character[targetpart].Position).unit*2048)
  356.                 local part,point = workspace:FindPartOnRayWithIgnoreList(ray,{Camera,Player.Character,unpack(windows)})
  357.                 local dist = (Vector2.new(Mouse.X,Mouse.Y)-Vector2.new(pos.X,pos.Y)).magnitude
  358.                 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
  359.             end
  360.         end
  361.     end
  362.     return nearest
  363. end
  364.    
  365. Mouse.Move:Connect(function()
  366.     cursor = ESP:FindFirstChild('Cursor') or Instance.new('Frame',ESP)
  367.     cursor.Name = 'Cursor'
  368.     cursor.BackgroundTransparency = 1
  369.     cursor.Size = UDim2.new(0,1,0,1)
  370.     cursor.Position = UDim2.new(0,Mouse.X,0,Mouse.Y)
  371. end)
  372.  
  373. UIS.InputBegan:Connect(function(Input)
  374.     if Input.KeyCode == toggle_aim or Input.UserInputType == toggle_aim then
  375.         aim_toggled = true
  376.         warn('GS: aim toggled',aim_toggled and 'on' or 'off')
  377.         alert = true
  378.         while aim_toggled and aimbot_toggled do
  379.             target = GetNearest(aim_priority)
  380.             if target then
  381.                 local dist = Player:DistanceFromCharacter(target[targetpart].Position)
  382.                 local headpos = Camera:WorldToScreenPoint(target[targetpart].Position+Vector3.new(0,dist/(100/drop),0))
  383.                 local moveto = Vector2.new((headpos.X-Mouse.X)*sens,(headpos.Y-Mouse.Y)*sens)
  384.                 aimpos = GUI:FindFirstChild('AimPos') or Instance.new('Frame',GUI)
  385.                 if not GUI:FindFirstChild('AimPos') then
  386.                 aimpos.Name = 'AimPos'
  387.                 aimpos.BorderSizePixel = 1
  388.                 aimpos.BorderColor3 = Color3.new(0,0,0)
  389.                 aimpos.BackgroundTransparency = 0
  390.                 aimpos.BackgroundColor3 = Color3.new(1,1,1)
  391.                 aimpos.Rotation = 45
  392.                 aimpos.ZIndex = 4
  393.                 aimpos.Size = UDim2.new(0,3,0,3)
  394.                 end
  395.                 aimpos.Position = UDim2.new(0,headpos.X-aimpos.AbsoluteSize.X/2,0,headpos.Y-aimpos.AbsoluteSize.Y/2)
  396.                 aimpos.Visible = true
  397.                 mousemoverel(moveto.X,moveto.Y)
  398.                 if alert or target~=target_old then
  399.                     playsound(locksoundid)
  400.                     print('GS: locked onto',target.Name)
  401.                     lockedon = true
  402.                     alert = false
  403.                 end
  404.             end
  405.             RS.Heartbeat:wait()
  406.             target_old = target
  407.             if aimpos then
  408.                 aimpos.Visible = false
  409.             end
  410.         end
  411.         lockedon = false
  412.     elseif Input.KeyCode == toggle_trigger then
  413.         trigger_toggled = not trigger_toggled
  414.         setText('AutoShot '..(trigger_toggled and 'ON' or 'OOF'))
  415.         Notification({Title='TriggerBot';Text='TriggerBot was toggled '..(trigger_toggled and 'On' or 'Off');Duration=2;})
  416.         warn('AutoShot',trigger_toggled and 'on' or 'off')
  417.         local Box = Instance.new('SelectionBox',PlayerGui)
  418.         Box.Color3 = Color3.new(1,0,0)
  419.         Box.LineThickness = .05
  420.         Box.Adornee = nil
  421.         if trigger_delay>0 then wait(trigger_delay) end
  422.         while trigger_toggled do
  423.         local Target = Mouse.Target
  424.         local plr = Players:FindFirstChild(Target.Parent.Name)
  425.         if Target and Target.Parent and plr~=nil and plr~=Player and ffa or plr~=nil and plr.TeamColor~=Player.TeamColor then
  426.             Box.Adornee = Mouse.Target
  427.             mouse1press()
  428.             wait()
  429.             mouse1release()
  430.         end
  431.         RS.Heartbeat:wait()
  432.         end
  433.         Box:Destroy()
  434.     elseif Input.KeyCode == toggle_esp then
  435.         esp_toggled = not esp_toggled
  436.         Notification({Title='ESP';Text='ESP was toggled '..(esp_toggled and 'ON' or 'OOF');Duration=2;})
  437.         setText('ESP '..(esp_toggled and 'ON' or 'OOF'))
  438.     elseif Input.KeyCode == toggle_aimbot then
  439.         aimbot_toggled = not aimbot_toggled
  440.         Notification({Title='AimBot';Text='AimBot was toggled '..(aimbot_toggled and 'ON' or 'OOF');Duration=2;})
  441.         setText('Toggled AimBot '..(aimbot_toggled and 'ON' or 'OOF'))
  442.     elseif Input.KeyCode == fov_increase then
  443.         fov = fov + .5
  444.         FovAdjust.Text = tonumber(fov)
  445.         if FovGui.Visible then
  446.             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)
  447.         end
  448.         setText('Aimbot FOV: '..fov)
  449.     elseif Input.KeyCode == fov_decrease and fov>0 then
  450.         fov = fov - .5
  451.         FovAdjust.Text = tonumber(fov)
  452.         if FovGui.Visible then
  453.             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)
  454.         end
  455.         setText('Aim FOV: '..fov)
  456.     elseif Input.KeyCode == sens_increase then
  457.         sens = sens + .05
  458.         SensAdjust.Text = tonumber(sens)
  459.         setText('Sens: '..sens)
  460.     elseif Input.KeyCode == sens_decrease then
  461.         sens = sens - .05
  462.         SensAdjust.Text = tonumber(sens)
  463.         setText('Sens: '..sens)
  464.     elseif Input.KeyCode == targetpart_change then
  465.         val = val+1
  466.         targetpart = val<=#parts and parts[val] or parts[1]
  467.         if parts[1]==targetpart then val = 1 end
  468.         Notification({Title='Target Part';Text='Target part set to '..targetpart;Duration=2;})
  469.         setText('Target Part: '..targetpart)
  470.     elseif Input.KeyCode == ffatoggle then
  471.         ffa = not ffa
  472.         Notification({Title='FFA Mode';Text='FFA Mode is '..(ffa and 'Enabled' or 'Disabled');Duration=2;})
  473.         setText('FFA Mode: '..(ffa and 'Enabled' or 'Disabled'))
  474.     elseif Input.KeyCode == priority_toggle then
  475.         aim_priority = aim_priority+1>2 and 0 or 1
  476.         aim_priority = aim_priority+1
  477.         FovGui.Visible = aim_priority>1
  478.         Notification({Title='Aim Priority';Text='Aim Priority: '..(aim_priority==1 and 'Distance' or 'FOV');Duration=2;})
  479.         setText('Aim Priority: '..(aim_priority==1 and 'Distance' or 'FOV'))
  480.     elseif Input.KeyCode == toggle_bones then
  481.         esp_bones = not esp_bones
  482.         if not esp_bones then
  483.         for _,v in next,ESP:GetDescendants() do
  484.             if v:IsA('Frame') and v.Name:match('-') then
  485.                 v:Destroy()
  486.             end
  487.         end
  488.         end
  489.         Notification({Title='ESP';Text='ESP Bones: '..(esp_bones and 'Enabled' or 'Disabled');Duration=2;})
  490.         setText('Toggled ESP Bones '..(esp_bones and 'Enabled' or 'Disabled'))
  491.     elseif Input.KeyCode == toggle_gui then
  492.         hidden = not hidden
  493.         for _,gui in next,GUI:GetDescendants() do
  494.             if gui:IsA('GuiObject') and not hidden and not gui.Visible then
  495.                 gui.Visible = true
  496.                 Mouse.Icon = 'rbxassetid://'..mouseiconid
  497.             elseif gui:IsA('GuiObject') and gui.Visible then
  498.                 gui.Visible = false
  499.                 esp_toggled = false
  500.                 Mouse.Icon = old_icon
  501.             end
  502.             end
  503.         elseif Input.KeyCode == toggle_bottompos then
  504.             bottompos = not bottompos
  505.             if bottompos then
  506.                 Bottom.Position = UDim2.new(.5,0,1,1)
  507.             end
  508.         elseif Input.KeyCode == toggle_performance then
  509.             performancemode = not performancemode
  510.             setText('Performance Mode '..(performancemode and 'Enabled' or 'Disabled'))
  511.         elseif Input.KeyCode == toggle_chams then
  512.             esp_chams = not esp_chams
  513.             setText('Chams '..(esp_chams and 'Enabled' or 'Disabled'))
  514.             Notification({Title='ESP';Text='Chams: '..(esp_chams and 'Enabled' or 'Disabled');Duration=2;})
  515.         elseif Input.KeyCode == toggle_tracers then
  516.             esp_tracers = not esp_tracers
  517.             setText('Tracers '..(esp_chams and 'Enabled' or 'Disabled'))
  518.             Notification({Title='ESP';Text='Tracers: '..(esp_tracers and 'Enabled' or 'Disabled');Duration=2;})
  519.         elseif Input.KeyCode == toggle_boxes then
  520.             bounding_box = not bounding_box
  521.             setText('Bounding Boxes '..(bounding_box and 'Enabled' or 'Disabled'))
  522.             Notification({Title='ESP';Text='Bounding Boxes: '..(bounding_box and 'Enabled' or 'Disabled');Duration=2;})
  523.         elseif Input.KeyCode == toggle_font then
  524.                 currentfont = (currentfont+1)>#fonts and 1 or currentfont+1
  525.                 for _,v in next,GUI:GetDescendants() do
  526.                     if v.Name~='KeysList' then
  527.                     if v:IsA('TextLabel') or v:IsA('TextButton') then
  528.                         v.Font = fonts[currentfont]
  529.                     end
  530.                     end
  531.                 end
  532.         end
  533. end)
  534.  
  535. UIS.InputEnded:Connect(function(Input)
  536.     if Input.KeyCode == toggle_aim or Input.UserInputType == toggle_aim then
  537.         aim_toggled = false
  538.     end
  539. end)
  540.  
  541. local function checkifspawned(x)
  542.     spawned = false
  543.     while not spawned and game.PlaceId==292439477 do
  544.         spawned = distfromspawn(x)>200 and true or false
  545.         wait(1/5)
  546.     end
  547.     spawned = true
  548. end
  549.  
  550. checkifspawned(Player)
  551. Player.CharacterAdded:Connect(function(c)
  552.     checkifspawned(Player)
  553.    
  554.     for _,v in next,ESP:GetDescendants() do
  555.         if v:IsA('Frame') and v.Name:match('-') then
  556.             v:Destroy()
  557.         end
  558.     end
  559. end)
  560.  
  561. Notification({Title='GameSense '..version;Text='Cheat loaded successfully.';Icon='rbxassetid://2572157833';Duration=10;})
  562. wait(.5)
  563. Notification({Title='Main Coder';Text='AvexusDev';Duration=4;Icon='https://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&username=AvexusDev'})
  564. wait(.5)
  565. Notification({Title='Thank you!';Text='If you like this script, please leave a vouch on my thread!';Duration=4;})
  566.  
  567. RS.RenderStepped:Connect(function()
  568.     if cursor then
  569.         FovGui.Position = cursor.Position-UDim2.new(0,FovGui.AbsoluteSize.X/2,0,FovGui.AbsoluteSize.Y/2)
  570.         Indicator.Position = cursor.Position+UDim2.new(0,0,0,40)
  571.     end
  572. end)
  573.  
  574. Mouse.Button1Down:Connect(function()
  575.     spawn(function()
  576.         if FovGui.Visible then
  577.             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)
  578.             wait(.1)
  579.             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)
  580.         end
  581.     end)
  582. end)
  583.  
  584. while true do
  585.     Indicator.Text = (aim_priority>1 and 'FOV: '..fov or 'Distance') ..'\nSens: '..sens..(aim_toggled and '\nAiming' or '')
  586.     if not bottompos then Bottom.Position = cursor.Position end
  587.     if esp_toggled then
  588.     for _,v in next,ESP:children() do
  589.         if v~=Bottom and not Players:FindFirstChild(v.Name) then
  590.             v:Destroy()
  591.         end
  592.     end
  593.     for _,v in next,Players:GetPlayers() do
  594.         local Char = v.Character
  595.         if Char and spawned and v~=Player and Char:FindFirstChild(targetpart) and distfromspawn(v)>100 then
  596.             if ffa or v.TeamColor~=Player.TeamColor then
  597.             local X = Camera:GetPartsObscuringTarget({Camera.CFrame.p,Char[targetpart].CFrame.p},{v.Character,Char,Camera,unpack(windows)})
  598.             local Dist = Player:DistanceFromCharacter(Char:FindFirstChild(targetpart).Position)
  599.             local Color = hiddencolor
  600.             local Folder = ESP:FindFirstChild(v.Name) or Instance.new('Folder',ESP)
  601.             Folder.Name = v.Name
  602.             -- ESP
  603.             local Head = Folder:FindFirstChild('Head') or Instance.new('Frame',Folder)
  604.             if not Folder:FindFirstChild('Head') then
  605.             Head.Name = 'Head'
  606.             Head.BorderSizePixel = 1
  607.             Head.BorderColor3 = Color3.new(0,0,0)
  608.             Head.BackgroundTransparency = 0
  609.             end
  610.             Head.BackgroundColor3 = #X>0 and hiddencolor or #X==0 and visiblecolor
  611.             Head.Rotation = headboxshape=='diamond' and 45 or 0
  612.             Head.ZIndex = 3
  613.             local HP = Folder:FindFirstChild('HP') or Instance.new('TextLabel',Folder)
  614.             if not Folder:FindFirstChild('HP') then
  615.             HP.Name = 'HP'
  616.             HP.TextTransparency = Head.BackgroundTransparency-.4
  617.             HP.Font = fonts[currentfont]
  618.             HP.TextStrokeTransparency = .6
  619.             HP.BackgroundTransparency = 1
  620.             HP.TextSize = 14
  621.             end
  622.             HP.Text = showdists and Char.Name..'\n'..math.floor(Dist+.5) or Char.Name
  623.             if aim_toggled and target==Char then
  624.                 Head.Size = UDim2.new(0,headboxaimsize,0,headboxaimsize)
  625.                 Head.BackgroundColor3 = aimingcolor
  626.                 HP.Text = showdists and '['..Char.Name..']'..'\n'..math.floor(Dist+.5) or '['..Char.Name..']'
  627.                 HP.TextSize = 16
  628.             else
  629.                 Head.Size = UDim2.new(0,headboxsize,0,headboxsize)
  630.             end
  631.             HP.TextColor3 = Head.BackgroundColor3
  632.             local toScreen = Camera:WorldToScreenPoint(Char[targetpart].CFrame.p)
  633.             if #X==0 then Color = visiblecolor end
  634.             Head.Position = UDim2.new(0,toScreen.X-Head.Size.X.Offset/2,0,toScreen.Y-Head.Size.Y.Offset/2)
  635.             HP.Position = Head.Position-UDim2.new(0,0,0,textoffset)
  636.             if esp_tracers then
  637.             local Line = DrawLine(Folder,ESP.Bottom,Head,linesize,Head.BackgroundColor3,.75,1,Color3.new(0,0,0))
  638.                 Line.Visible = Head.Visible
  639.             else
  640.                 local imtired = Folder:FindFirstChild(ESP.Bottom.Name..'-'..Head.Name)
  641.                 if imtired then
  642.                     imtired:Destroy()
  643.                 end
  644.             end
  645.             if toScreen.Z<=0 then Head.Visible = false else Head.Visible = true end
  646.             HP.Visible = Head.Visible
  647.             if Char:FindFirstChild('Humanoid') and Char.Humanoid.RigType==Enum.HumanoidRigType.R6 then
  648.             local Neck = Folder:FindFirstChild('Neck') or Instance.new('Frame',Folder)
  649.             Neck.Name = 'Neck'
  650.             Neck.ZIndex = 2
  651.             if Char['Torso']~=nil then
  652.             local Pos = (Char.Torso.CFrame*CFrame.new(0,.8,0)).p
  653.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  654.             Neck.Position = UDim2.new(0,X,0,Y)
  655.             Neck.BorderSizePixel = 0
  656.             if Z<=0 then Neck.Visible = false else Neck.Visible = true end
  657.             else
  658.                 Neck.Visible = false
  659.             end
  660.             --
  661.             local Pelvis = Folder:FindFirstChild('Pelvis') or Instance.new('Frame',Folder)
  662.             Pelvis.Name = 'Pelvis'
  663.             Pelvis.ZIndex = 2
  664.             Pelvis.BorderSizePixel = 0
  665.             if Char['Torso']~=nil then
  666.             local Pos = (Char.Torso.CFrame*CFrame.new(0,-1,0)).p
  667.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  668.             Pelvis.Position = UDim2.new(0,X,0,Y)
  669.             if Z<=0 then Pelvis.Visible = false else Pelvis.Visible = true end
  670.             else
  671.                 Pelvis.Visible = false
  672.             end
  673.             --
  674.             local RightFoot = Folder:FindFirstChild('Right Foot') or Instance.new('Frame',Folder)
  675.             RightFoot.Name = 'Right Foot'
  676.             RightFoot.ZIndex = 2
  677.             RightFoot.BorderSizePixel = 0
  678.             if Char['Right Leg']~=nil then
  679.             local Pos = (Char['Right Leg'].CFrame*CFrame.new(0,-1,0)).p
  680.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  681.             RightFoot.Position = UDim2.new(0,X,0,Y)
  682.             if Z<=0 then RightFoot.Visible = false else RightFoot.Visible = true end
  683.             else
  684.                 RightFoot.Visible = false
  685.             end
  686.             --
  687.             local LeftFoot = Folder:FindFirstChild('Left Foot') or Instance.new('Frame',Folder)
  688.             LeftFoot.Name = 'Left Foot'
  689.             if Char['Left Leg']~=nil then
  690.             local Pos = (Char['Left Leg'].CFrame*CFrame.new(0,-1,0)).p
  691.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  692.             LeftFoot.Position = UDim2.new(0,X,0,Y)
  693.             LeftFoot.BorderSizePixel = 0
  694.             if Z<=0 then LeftFoot.Visible = false else LeftFoot.Visible = true end
  695.             else
  696.                 LeftFoot.Visible = false
  697.             end
  698.             --
  699.             local RightHand = Folder:FindFirstChild('Right Hand') or Instance.new('Frame',Folder)
  700.             RightHand.Name = 'Right Hand'
  701.             RightHand.ZIndex = 2
  702.             RightHand.BorderSizePixel = 0
  703.             if Char['Right Arm']~=nil then
  704.             local Pos = (Char['Right Arm'].CFrame*CFrame.new(0,-1,0)).p
  705.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  706.             RightHand.Position = UDim2.new(0,X,0,Y)
  707.             if Z<=0 then RightHand.Visible = false else RightHand.Visible = true end
  708.             else
  709.                 RightHand.Visible = false
  710.             end
  711.             --
  712.             local LeftHand = Folder:FindFirstChild('Left Hand') or Instance.new('Frame',Folder)
  713.             LeftHand.Name = 'Left Hand'
  714.             LeftHand.ZIndex = 2
  715.             LeftHand.BorderSizePixel = 0
  716.             if Char['Left Arm']~=nil then
  717.             local Pos = (Char['Left Arm'].CFrame*CFrame.new(0,-1,0)).p
  718.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  719.             LeftHand.Position = UDim2.new(0,X,0,Y)
  720.             if Z<=0 then LeftHand.Visible = false else LeftHand.Visible = true end
  721.             else
  722.                 LeftHand.Visible = false
  723.             end
  724.             -- draw joints
  725.             if esp_bones then
  726.             if Head.Visible then DrawLine(Folder,Head,Neck,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  727.             if Neck.Visible then DrawLine(Folder,Neck,Pelvis,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  728.             if Neck.Visible then DrawLine(Folder,Neck,RightHand,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  729.             if Neck.Visible then DrawLine(Folder,Neck,LeftHand,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  730.             if Pelvis.Visible then DrawLine(Folder,Pelvis,RightFoot,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  731.             if Pelvis.Visible then DrawLine(Folder,Pelvis,LeftFoot,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  732.             end
  733.             end
  734.            
  735.             if esp_chams then
  736.                 for _,Part in next,Char:children() do
  737.                     if Part:IsA('BasePart') and Part.Name~='HumanoidRootPart' then
  738.                         local Adornment = Folder:FindFirstChild(Part.Name..'_Cham') or Instance.new('BoxHandleAdornment',Folder)
  739.                         if not Folder:FindFirstChild(Part.Name..'_Cham') then
  740.                         Adornment.Name = Part.Name..'_Cham'
  741.                         Adornment.Adornee = Part
  742.                         Adornment.AlwaysOnTop = true
  743.                         Adornment.Size = Part.Name=='Head' and Vector3.new(1,1,1) or Part.Size
  744.                         Adornment.ZIndex = 1
  745.                         end
  746.                         Adornment.Color3 = Head.BackgroundColor3
  747.                     end
  748.                 end
  749.             else
  750.                 for _,v in next,Folder:GetDescendants() do
  751.                     if v.Name:match('Cham') then
  752.                         v:Destroy()
  753.                     end
  754.                 end
  755.             end
  756.            
  757.             if bounding_box and Char:FindFirstChild('HumanoidRootPart') then
  758.                 local Box = Char:FindFirstChild('Box') or Instance.new('BillboardGui',Char)
  759.                 if not Char:FindFirstChild('Box') then
  760.                 Box.Name = 'Box'
  761.                 Box.Adornee = Char:FindFirstChild('HumanoidRootPart')
  762.                 Box.AlwaysOnTop = true
  763.                 Box.LightInfluence = 0
  764.                 Box.StudsOffset = Vector3.new(0,-Box.Adornee.Size.Y/4,0)
  765.                 Box.Size = UDim2.new(4,1,5,1)
  766.                 local Top = Instance.new('Frame',Box)
  767.                 Top.Size = UDim2.new(1,0,0,box_line_size)
  768.                 Top.BorderSizePixel = 0
  769.                 local Bot = Top:Clone()
  770.                 Bot.Position = UDim2.new(0,0,1,-box_line_size)
  771.                 Bot.Parent = Box
  772.                 local Left = Top:Clone()
  773.                 Left.Size = UDim2.new(0,1,1,0)
  774.                 Left.Parent = Box
  775.                 local Right = Left:Clone()
  776.                 Right.Position = UDim2.new(1,-box_line_size,0,0)
  777.                 Right.Parent = Box
  778.                 end
  779.                 for _,v in next,Box:children() do
  780.                     if v:IsA('Frame') then
  781.                         v.BackgroundColor3 = Head.BackgroundColor3
  782.                     end
  783.                 end
  784.             else
  785.                 local Box = Char:FindFirstChild('Box')
  786.                 if Box then
  787.                     Box:Destroy()
  788.                 end
  789.             end
  790.            
  791.             if lockedon and target and aim_line and ESP:FindFirstChild(target.Name) then
  792.                 DrawLine(ESP,cursor,ESP:FindFirstChild(target.Name).Head,1,Head.BackgroundColor3,.5)
  793.             end
  794.            
  795.         else
  796.             if ESP:FindFirstChild(v.Name) then
  797.                 ESP:FindFirstChild(v.Name):Destroy()
  798.             end
  799.             end
  800.         else
  801.             if ESP:FindFirstChild(v.Name) then
  802.                 ESP:FindFirstChild(v.Name):Destroy()
  803.             end
  804.         end
  805.         end
  806.     else
  807.         for _,v in next,ESP:children() do
  808.             if v:IsA('Folder') then
  809.                 v:Destroy()
  810.             end
  811.         end
  812.     end
  813.     if performancemode then
  814.         wait(1/(workspace:GetRealPhysicsFPS()*.75))
  815.     else
  816.         RS.Stepped:wait()
  817.     end
  818. end
  819.  
  820. --[[ broken
  821. spawn(function()
  822. while script and game.PlaceId == 292439477 and workspace:FindFirstChild('Map') do
  823.     windows = {}
  824.     for _,v in next,workspace.Map:GetChildren() do
  825.         if v.Name=='Window' then
  826.             table.insert(windows,v)
  827.         end
  828.     end
  829.     wait(2)
  830. end
  831. end)
  832. --]]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top