SHARE
TWEET

Untitled

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