Advertisement
Guest User

gserzdaewfs

a guest
May 22nd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.10 KB | None | 0 0
  1. local rdhtyvgsedryh = Instance.new("ScreenGui")
  2. local djfrcuytdnrt = Instance.new("TextLabel")
  3. rdhtyvgsedryh.Name = "rdhtyvgsedryh"
  4. rdhtyvgsedryh.Parent = game.CoreGui
  5. rdhtyvgsedryh.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  6. djfrcuytdnrt.Name = "djfrcuytdnrt"
  7. djfrcuytdnrt.Parent = rdhtyvgsedryh
  8. djfrcuytdnrt.BackgroundColor3 = Color3.new(0, 0, 0)
  9. djfrcuytdnrt.BackgroundTransparency = 1
  10. djfrcuytdnrt.Position = UDim2.new(0, 0, 0.936117947, 0)
  11. djfrcuytdnrt.Size = UDim2.new(0, 261, 0, 52)
  12. djfrcuytdnrt.Font = Enum.Font.Gotham
  13. djfrcuytdnrt.Text = "Mr.Stuperd"
  14. djfrcuytdnrt.TextColor3 = Color3.new(1, 1, 1)
  15. djfrcuytdnrt.TextScaled = true
  16. djfrcuytdnrt.TextSize = 14
  17. djfrcuytdnrt.TextStrokeTransparency = 0
  18. djfrcuytdnrt.TextWrapped = true
  19. wait (0.1)
  20. local safe = setmetatable({}, {
  21. __index = function(_, k)
  22. return game:GetService(k)
  23. end
  24. })
  25.  
  26. local movethemouse = mousemoverel or Input.MoveMouse --Mouse Move Function.
  27. local leftclickme = nil --Auto Shoot Key Press Thingy.
  28. local aimbotting = true -- Toggles.
  29. local autoshoot = false
  30. local teamcheck = true
  31. local visiblecheck = false
  32. _G.xaimoffset = 0 --_G.xaimoffset = -25
  33. _G.maxdistfromcross = 100
  34.  
  35. local cam = safe.Workspace.CurrentCamera -- Current Camera
  36. local lp = safe.Players.LocalPlayer -- Local Player
  37. local lpc = safe.Players.LocalPlayer.Character -- Local Player Character
  38.  
  39. local wtos = function(v) -- World To Screen
  40. return cam:WorldToScreenPoint(v)
  41. end
  42.  
  43. local distFromCenter = function(x, y)
  44. local vps = cam.ViewportSize -- Get ViewPortSize.
  45. local vpsx = vps.X
  46. local vpsy = vps.Y
  47. local screencenterx = vpsx/2
  48. local screencentery = vpsy/2
  49. local xdist = (x - screencenterx) -- X Distance From Mid Screen.
  50. local ydist = (y - screencentery) -- Y Distance From Mid Screen.
  51. local Hypotenuse = math.sqrt(math.pow(xdist, 2) + math.pow(ydist, 2))
  52. return Hypotenuse
  53. end
  54.  
  55. local function inlos(p, ...) -- In line of site?
  56. return #cam:GetPartsObscuringTarget({p}, {cam, lp.Character, ...}) == 0
  57. end
  58.  
  59. local getclosestPlayer = function() -- Checks the closest player based on Hypotenuse.
  60. local plrs, v = safe.Players:GetPlayers()
  61. local maxdist = 75
  62. local dist = math.huge
  63. local plr = "none"
  64. for i = 1, #plrs do
  65. v = plrs[i]
  66. if v ~= safe.Players.LocalPlayer then
  67. if v.Character then
  68. if v.TeamColor ~= safe.Players.LocalPlayer.TeamColor and teamcheck then
  69. local hpos = wtos(v.Character.Head.Position)
  70. local idist = distFromCenter(hpos.X, hpos.Y)
  71. if idist < dist and idist < _G.maxdistfromcross then
  72. dist = idist
  73. plr = v
  74. end
  75. elseif not teamcheck then
  76. local hpos = wtos(v.Character.Head.Position)
  77. local idist = distFromCenter(hpos.X, hpos.Y)
  78. if idist < dist and idist < _G.maxdistfromcross then
  79. dist = idist
  80. plr = v
  81. end
  82. end
  83. end
  84. end
  85. end
  86. return plr, dist
  87. end
  88.  
  89. local AimAt = function(x, y)
  90. local vps = cam.ViewportSize
  91. local vpsx = vps.X
  92. local vpsy = vps.Y
  93. local screencenterx = vpsx/2
  94. local screencentery = vpsy/2
  95. local aimspeed = 5
  96. local aimatx
  97. local aimaty
  98.  
  99. if x ~= 0 then
  100. if x > screencenterx then
  101. aimatx = -(screencenterx - x)
  102. aimatx = aimatx/aimspeed
  103. if aimatx + screencenterx > screencenterx * 2 then
  104. aimatx = 0
  105. end
  106. end
  107. if x < screencenterx then
  108. aimatx = x - screencenterx
  109. aimatx = aimatx/aimspeed
  110. if aimatx + screencenterx < 0 then
  111. aimatx = 0
  112. end
  113. end
  114. end
  115.  
  116. if y ~= 0 then
  117. if y > screencentery then
  118. aimaty = -(screencentery - y)
  119. aimaty = aimaty/aimspeed
  120. if aimaty + screencentery > screencentery * 2 then
  121. aimaty = 0
  122. end
  123. end
  124. if y < screencentery then
  125. aimaty = y - screencentery
  126. aimaty = aimaty/aimspeed
  127. if aimaty + screencentery < 0 then
  128. aimaty = 0
  129. end
  130. end
  131. end
  132. return aimatx, aimaty
  133. end
  134.  
  135. local MouseTests = function()
  136. local player = safe.Players.LocalPlayer
  137. local mouse = player:GetMouse()
  138. local screensizex = mouse.ViewSizeX
  139. local screensizey = mouse.ViewSizeY
  140. local midx = screensizex/2
  141. local midy = screensizey/2
  142. local mousex = mouse.X
  143. local mousey = mouse.Y
  144. local moveamountx = midx - mousex
  145. local moveamounty = midy - mousey
  146. movethemouse(moveamountx, moveamounty)
  147. local camera = safe.Workspace.Camera
  148. local newmousex = safe.Players.LocalPlayer:GetMouse().X
  149. local newmousey = safe.Players.LocalPlayer:GetMouse().Y
  150. local closestplayer = getclosestPlayer()
  151. if player.Character.Humanoid.Health > 0 then
  152. if closestplayer ~= "none" then
  153. if inlos(closestplayer.Character.Head.Position, closestplayer.Character) and visiblecheck then
  154. local closesthead = closestplayer.Character.Head
  155. local p = camera:WorldToScreenPoint(closesthead.Position)
  156. local xdistancetohead, ydistancetohead = AimAt(p.X + _G.xaimoffset, p.Y + 32)
  157. movethemouse(xdistancetohead, ydistancetohead)
  158. if autoshoot then
  159. movethemouse(xdistancetohead, ydistancetohead)
  160. wait(1)
  161. Input.LeftClick(MOUSE_DOWN)
  162. wait()
  163. end
  164. elseif not visiblecheck then
  165. local closesthead = closestplayer.Character.Head
  166. local p = camera:WorldToScreenPoint(closesthead.Position)
  167. local xdistancetohead, ydistancetohead = AimAt(p.X + _G.xaimoffset, p.Y + 32)
  168. movethemouse(xdistancetohead, ydistancetohead)
  169. end
  170. end
  171. end
  172. end
  173.  
  174. game:GetService('RunService').Stepped:connect(function()
  175. if aimbotting then
  176. --MouseTests()
  177. end
  178. end)
  179.  
  180.  
  181. local plr = safe.Players.LocalPlayer
  182. local mouse = plr:GetMouse()
  183. mouse.KeyDown:connect(function(key)
  184. if key == "none" then
  185. aimbotting = not aimbotting
  186. print("Aimbotting: " .. tostring(aimbotting))
  187. MouseTests()
  188. end
  189. if key == "none" then
  190. visiblecheck = not visiblecheck
  191. print("Visible Check: " .. tostring(visiblecheck))
  192. end
  193.  
  194. if key == "none" then
  195. teamcheck = not teamcheck
  196. print("Team Check: " .. tostring(teamcheck))
  197. end
  198. end)
  199. MB2Held = false
  200.  
  201. function onKeyPress(inputObject,gameProcessed)
  202. if inputObject.UserInputType == Enum.UserInputType.MouseButton2 then
  203. MB2Held = true
  204. while MB2Held do
  205. if aimbotting then
  206. MouseTests()
  207. end
  208. wait()
  209. end
  210. end
  211. end
  212.  
  213. function onKeyRelease(inputObject,gameProcessed)
  214. if inputObject.UserInputType == Enum.UserInputType.MouseButton2 then
  215. MB2Held = false
  216. end
  217. end
  218.  
  219. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  220. game:GetService("UserInputService").InputEnded:connect(onKeyRelease)
  221. wait (0.1)
  222. function findwat(a,b)for c,d in pairs(a:GetChildren())do if string.find(string.lower(tostring(d)),string.lower(b))then return d end end end;local e=findwat(game,"Players")print(e)local f={}f.ESP=true;local g=e.LocalPlayer;while true do if f.ESP==true then for h,i in pairs(e:GetPlayers())do if i.Name~=g.Name and i.Character and g.Team.Name~=i.Team.Name then local j=i.Character:FindFirstChild("ESP")if i.Character:FindFirstChildOfClass("Humanoid").Health~=0 and not j then for c,k in pairs(i.Character:GetChildren())do if k:IsA("BasePart")and k.Name~="HumanoidRootPart"then local l=Instance.new("BoxHandleAdornment",k)l.Color3=Color3.new(255,0,0)l.Adornee=l.Parent;l.Transparency=0.15;if l.Adornee.Name~="Head"then l.Size=l.Adornee.Size else l.Size=Vector3.new(1,1,1)end;delay(0,function()l.AlwaysOnTop=true;wait(1)l.ZIndex=2 end)l.Name="Ur mom gay lol"end end;local j=Instance.new("Folder",i.Character)j.Name="ESP"end end end end;wait(3)end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement