cortesjoren

aimbot for roblox :D

Dec 17th, 2018
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. local Boxes = {}
  2. local ValidGUI
  3. local Players = game:GetService("Players")
  4. local Me = Players.LocalPlayer
  5. local Mouse = Me:GetMouse()
  6. local Active = true
  7. local Cam = workspace.CurrentCamera
  8. while not ValidGUI do
  9. ValidGUI = game.CoreGui:FindFirstChildOfClass("ScreenGui")
  10. wait()
  11. end
  12. local ESPPlayer = function(Player)
  13. if not Boxes[Player.Name] then
  14. Boxes[Player.Name] = {}
  15. end
  16. if Player == Me then return end
  17. spawn(function()
  18. for i,v in pairs(Boxes[Player.Name]) do
  19. v:Destroy()
  20. end
  21. local Char = Player.Character or Player.CharacterAdded:Wait()
  22. local Billboard = Char:FindFirstChildWhichIsA("BillboardGui",true)
  23. if Billboard then
  24. for k,l in pairs(Billboard:GetDescendants()) do
  25. if l.ClassName == "TextLabel" and l.Text:lower():match(Player.Name:lower()) then
  26. l.ZIndex = 100
  27. Billboard.AlwaysOnTop = true
  28. Billboard.MaxDistance = math.huge
  29. Billboard.LightInfluence = 0
  30. l.TextTransparency = 0
  31. break
  32. end
  33. end
  34. end
  35. local Box = Instance.new("BoxHandleAdornment")
  36. Box.AlwaysOnTop = true
  37. Box.ZIndex = 10
  38. Box.Transparency = .25
  39. for i,v in pairs(Char:GetChildren()) do
  40. if v:IsA("BasePart") then
  41. local BClone = Box:Clone()
  42. BClone.Color3 = Player.Team == Me.Team and Color3.new(0,1,0) or Color3.new(1,0,0)
  43. BClone.Adornee = v
  44. BClone.Size = v.Size + Vector3.new(.01,.01,.01)
  45. BClone.Parent = ValidGUI
  46. table.insert(Boxes[Player.Name],BClone)
  47. end
  48. end
  49. Box:Destroy()
  50. end)
  51. end
  52. Players.PlayerAdded:Connect(function(Player)
  53. Player.CharacterAdded:Connect(function()
  54. ESPPlayer(Player)
  55. end)
  56. end)
  57. Players.PlayerRemoving:Connect(function(Player)
  58. for i,v in pairs(Boxes[Player.Name]) do
  59. v:Destroy()
  60. end
  61. Boxes[Player.Name] = nil
  62. end)
  63. Mouse.KeyDown:Connect(function(Key)
  64. if Key:lower() == "l" then
  65. Active = not Active
  66. for i,v in pairs(Boxes) do
  67. for k,l in pairs(v) do
  68. l.Visible = Active
  69. end
  70. end
  71. end
  72. end)
  73. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  74. ESPPlayer(v)
  75. v.CharacterAdded:Connect(function()
  76. ESPPlayer(v)
  77. end)
  78. end
Add Comment
Please, Sign In to add comment