SHARE
TWEET

fg

aewdfawd623 Aug 21st, 2019 (edited) 99 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 ! 2GEGA#6846");
  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 = 10
  85. sens = .31
  86. drop = .50
  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 = 'AimBot main version '..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 = 'Aimbot Running'
  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.  
  562.  
  563. RS.RenderStepped:Connect(function()
  564.     if cursor then
  565.         FovGui.Position = cursor.Position-UDim2.new(0,FovGui.AbsoluteSize.X/2,0,FovGui.AbsoluteSize.Y/2)
  566.         Indicator.Position = cursor.Position+UDim2.new(0,0,0,40)
  567.     end
  568. end)
  569.  
  570. Mouse.Button1Down:Connect(function()
  571.     spawn(function()
  572.         if FovGui.Visible then
  573.             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)
  574.             wait(.1)
  575.             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)
  576.         end
  577.     end)
  578. end)
  579.  
  580. while true do
  581.     Indicator.Text = (aim_priority>1 and 'FOV: '..fov or 'Distance') ..'\nSens: '..sens..(aim_toggled and '\nAiming' or '')
  582.     if not bottompos then Bottom.Position = cursor.Position end
  583.     if esp_toggled then
  584.     for _,v in next,ESP:children() do
  585.         if v~=Bottom and not Players:FindFirstChild(v.Name) then
  586.             v:Destroy()
  587.         end
  588.     end
  589.     for _,v in next,Players:GetPlayers() do
  590.         local Char = v.Character
  591.         if Char and spawned and v~=Player and Char:FindFirstChild(targetpart) and distfromspawn(v)>100 then
  592.             if ffa or v.TeamColor~=Player.TeamColor then
  593.             local X = Camera:GetPartsObscuringTarget({Camera.CFrame.p,Char[targetpart].CFrame.p},{v.Character,Char,Camera,unpack(windows)})
  594.             local Dist = Player:DistanceFromCharacter(Char:FindFirstChild(targetpart).Position)
  595.             local Color = hiddencolor
  596.             local Folder = ESP:FindFirstChild(v.Name) or Instance.new('Folder',ESP)
  597.             Folder.Name = v.Name
  598.             -- ESP
  599.             local Head = Folder:FindFirstChild('Head') or Instance.new('Frame',Folder)
  600.             if not Folder:FindFirstChild('Head') then
  601.             Head.Name = 'Head'
  602.             Head.BorderSizePixel = 1
  603.             Head.BorderColor3 = Color3.new(0,0,0)
  604.             Head.BackgroundTransparency = 0
  605.             end
  606.             Head.BackgroundColor3 = #X>0 and hiddencolor or #X==0 and visiblecolor
  607.             Head.Rotation = headboxshape=='diamond' and 45 or 0
  608.             Head.ZIndex = 3
  609.             local HP = Folder:FindFirstChild('HP') or Instance.new('TextLabel',Folder)
  610.             if not Folder:FindFirstChild('HP') then
  611.             HP.Name = 'HP'
  612.             HP.TextTransparency = Head.BackgroundTransparency-.4
  613.             HP.Font = fonts[currentfont]
  614.             HP.TextStrokeTransparency = .6
  615.             HP.BackgroundTransparency = 1
  616.             HP.TextSize = 14
  617.             end
  618.             HP.Text = showdists and Char.Name..'\n'..math.floor(Dist+.5) or Char.Name
  619.             if aim_toggled and target==Char then
  620.                 Head.Size = UDim2.new(0,headboxaimsize,0,headboxaimsize)
  621.                 Head.BackgroundColor3 = aimingcolor
  622.                 HP.Text = showdists and '['..Char.Name..']'..'\n'..math.floor(Dist+.5) or '['..Char.Name..']'
  623.                 HP.TextSize = 16
  624.             else
  625.                 Head.Size = UDim2.new(0,headboxsize,0,headboxsize)
  626.             end
  627.             HP.TextColor3 = Head.BackgroundColor3
  628.             local toScreen = Camera:WorldToScreenPoint(Char[targetpart].CFrame.p)
  629.             if #X==0 then Color = visiblecolor end
  630.             Head.Position = UDim2.new(0,toScreen.X-Head.Size.X.Offset/2,0,toScreen.Y-Head.Size.Y.Offset/2)
  631.             HP.Position = Head.Position-UDim2.new(0,0,0,textoffset)
  632.             if esp_tracers then
  633.             local Line = DrawLine(Folder,ESP.Bottom,Head,linesize,Head.BackgroundColor3,.75,1,Color3.new(0,0,0))
  634.                 Line.Visible = Head.Visible
  635.             else
  636.                 local imtired = Folder:FindFirstChild(ESP.Bottom.Name..'-'..Head.Name)
  637.                 if imtired then
  638.                     imtired:Destroy()
  639.                 end
  640.             end
  641.             if toScreen.Z<=0 then Head.Visible = false else Head.Visible = true end
  642.             HP.Visible = Head.Visible
  643.             if Char:FindFirstChild('Humanoid') and Char.Humanoid.RigType==Enum.HumanoidRigType.R6 then
  644.             local Neck = Folder:FindFirstChild('Neck') or Instance.new('Frame',Folder)
  645.             Neck.Name = 'Neck'
  646.             Neck.ZIndex = 2
  647.             if Char['Torso']~=nil then
  648.             local Pos = (Char.Torso.CFrame*CFrame.new(0,.8,0)).p
  649.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  650.             Neck.Position = UDim2.new(0,X,0,Y)
  651.             Neck.BorderSizePixel = 0
  652.             if Z<=0 then Neck.Visible = false else Neck.Visible = true end
  653.             else
  654.                 Neck.Visible = false
  655.             end
  656.             --
  657.             local Pelvis = Folder:FindFirstChild('Pelvis') or Instance.new('Frame',Folder)
  658.             Pelvis.Name = 'Pelvis'
  659.             Pelvis.ZIndex = 2
  660.             Pelvis.BorderSizePixel = 0
  661.             if Char['Torso']~=nil then
  662.             local Pos = (Char.Torso.CFrame*CFrame.new(0,-1,0)).p
  663.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  664.             Pelvis.Position = UDim2.new(0,X,0,Y)
  665.             if Z<=0 then Pelvis.Visible = false else Pelvis.Visible = true end
  666.             else
  667.                 Pelvis.Visible = false
  668.             end
  669.             --
  670.             local RightFoot = Folder:FindFirstChild('Right Foot') or Instance.new('Frame',Folder)
  671.             RightFoot.Name = 'Right Foot'
  672.             RightFoot.ZIndex = 2
  673.             RightFoot.BorderSizePixel = 0
  674.             if Char['Right Leg']~=nil then
  675.             local Pos = (Char['Right Leg'].CFrame*CFrame.new(0,-1,0)).p
  676.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  677.             RightFoot.Position = UDim2.new(0,X,0,Y)
  678.             if Z<=0 then RightFoot.Visible = false else RightFoot.Visible = true end
  679.             else
  680.                 RightFoot.Visible = false
  681.             end
  682.             --
  683.             local LeftFoot = Folder:FindFirstChild('Left Foot') or Instance.new('Frame',Folder)
  684.             LeftFoot.Name = 'Left Foot'
  685.             if Char['Left Leg']~=nil then
  686.             local Pos = (Char['Left Leg'].CFrame*CFrame.new(0,-1,0)).p
  687.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  688.             LeftFoot.Position = UDim2.new(0,X,0,Y)
  689.             LeftFoot.BorderSizePixel = 0
  690.             if Z<=0 then LeftFoot.Visible = false else LeftFoot.Visible = true end
  691.             else
  692.                 LeftFoot.Visible = false
  693.             end
  694.             --
  695.             local RightHand = Folder:FindFirstChild('Right Hand') or Instance.new('Frame',Folder)
  696.             RightHand.Name = 'Right Hand'
  697.             RightHand.ZIndex = 2
  698.             RightHand.BorderSizePixel = 0
  699.             if Char['Right Arm']~=nil then
  700.             local Pos = (Char['Right Arm'].CFrame*CFrame.new(0,-1,0)).p
  701.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  702.             RightHand.Position = UDim2.new(0,X,0,Y)
  703.             if Z<=0 then RightHand.Visible = false else RightHand.Visible = true end
  704.             else
  705.                 RightHand.Visible = false
  706.             end
  707.             --
  708.             local LeftHand = Folder:FindFirstChild('Left Hand') or Instance.new('Frame',Folder)
  709.             LeftHand.Name = 'Left Hand'
  710.             LeftHand.ZIndex = 2
  711.             LeftHand.BorderSizePixel = 0
  712.             if Char['Left Arm']~=nil then
  713.             local Pos = (Char['Left Arm'].CFrame*CFrame.new(0,-1,0)).p
  714.             local X,Y,Z = Camera:WorldToScreenPoint(Pos).X,Camera:WorldToScreenPoint(Pos).Y,Camera:WorldToScreenPoint(Pos).Z
  715.             LeftHand.Position = UDim2.new(0,X,0,Y)
  716.             if Z<=0 then LeftHand.Visible = false else LeftHand.Visible = true end
  717.             else
  718.                 LeftHand.Visible = false
  719.             end
  720.             -- draw joints
  721.             if esp_bones then
  722.             if Head.Visible then DrawLine(Folder,Head,Neck,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  723.             if Neck.Visible then DrawLine(Folder,Neck,Pelvis,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  724.             if Neck.Visible then DrawLine(Folder,Neck,RightHand,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  725.             if Neck.Visible then DrawLine(Folder,Neck,LeftHand,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  726.             if Pelvis.Visible then DrawLine(Folder,Pelvis,RightFoot,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  727.             if Pelvis.Visible then DrawLine(Folder,Pelvis,LeftFoot,1,Color3.new(1,1,1),Head.BackgroundTransparency) end
  728.             end
  729.             end
  730.            
  731.             if esp_chams then
  732.                 for _,Part in next,Char:children() do
  733.                     if Part:IsA('BasePart') and Part.Name~='HumanoidRootPart' then
  734.                         local Adornment = Folder:FindFirstChild(Part.Name..'_Cham') or Instance.new('BoxHandleAdornment',Folder)
  735.                         if not Folder:FindFirstChild(Part.Name..'_Cham') then
  736.                         Adornment.Name = Part.Name..'_Cham'
  737.                         Adornment.Adornee = Part
  738.                         Adornment.AlwaysOnTop = true
  739.                         Adornment.Size = Part.Name=='Head' and Vector3.new(1,1,1) or Part.Size
  740.                         Adornment.ZIndex = 1
  741.                         end
  742.                         Adornment.Color3 = Head.BackgroundColor3
  743.                     end
  744.                 end
  745.             else
  746.                 for _,v in next,Folder:GetDescendants() do
  747.                     if v.Name:match('Cham') then
  748.                         v:Destroy()
  749.                     end
  750.                 end
  751.             end
  752.            
  753.             if bounding_box and Char:FindFirstChild('HumanoidRootPart') then
  754.                 local Box = Char:FindFirstChild('Box') or Instance.new('BillboardGui',Char)
  755.                 if not Char:FindFirstChild('Box') then
  756.                 Box.Name = 'Box'
  757.                 Box.Adornee = Char:FindFirstChild('HumanoidRootPart')
  758.                 Box.AlwaysOnTop = true
  759.                 Box.LightInfluence = 0
  760.                 Box.StudsOffset = Vector3.new(0,-Box.Adornee.Size.Y/4,0)
  761.                 Box.Size = UDim2.new(4,1,5,1)
  762.                 local Top = Instance.new('Frame',Box)
  763.                 Top.Size = UDim2.new(1,0,0,box_line_size)
  764.                 Top.BorderSizePixel = 0
  765.                 local Bot = Top:Clone()
  766.                 Bot.Position = UDim2.new(0,0,1,-box_line_size)
  767.                 Bot.Parent = Box
  768.                 local Left = Top:Clone()
  769.                 Left.Size = UDim2.new(0,1,1,0)
  770.                 Left.Parent = Box
  771.                 local Right = Left:Clone()
  772.                 Right.Position = UDim2.new(1,-box_line_size,0,0)
  773.                 Right.Parent = Box
  774.                 end
  775.                 for _,v in next,Box:children() do
  776.                     if v:IsA('Frame') then
  777.                         v.BackgroundColor3 = Head.BackgroundColor3
  778.                     end
  779.                 end
  780.             else
  781.                 local Box = Char:FindFirstChild('Box')
  782.                 if Box then
  783.                     Box:Destroy()
  784.                 end
  785.             end
  786.            
  787.             if lockedon and target and aim_line and ESP:FindFirstChild(target.Name) then
  788.                 DrawLine(ESP,cursor,ESP:FindFirstChild(target.Name).Head,1,Head.BackgroundColor3,.5)
  789.             end
  790.            
  791.         else
  792.             if ESP:FindFirstChild(v.Name) then
  793.                 ESP:FindFirstChild(v.Name):Destroy()
  794.             end
  795.             end
  796.         else
  797.             if ESP:FindFirstChild(v.Name) then
  798.                 ESP:FindFirstChild(v.Name):Destroy()
  799.             end
  800.         end
  801.         end
  802.     else
  803.         for _,v in next,ESP:children() do
  804.             if v:IsA('Folder') then
  805.                 v:Destroy()
  806.             end
  807.         end
  808.     end
  809.     if performancemode then
  810.         wait(1/(workspace:GetRealPhysicsFPS()*.75))
  811.     else
  812.         RS.Stepped:wait()
  813.     end
  814. end
  815.  
  816. --[[ broken
  817. spawn(function()
  818. while script and game.PlaceId == 292439477 and workspace:FindFirstChild('Map') do
  819.     windows = {}
  820.     for _,v in next,workspace.Map:GetChildren() do
  821.         if v.Name=='Window' then
  822.             table.insert(windows,v)
  823.         end
  824.     end
  825.     wait(2)
  826. end
  827. end)
  828. --]]
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