Advertisement
Defective_RBX

ESP

Feb 19th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. function Esp(player, username)
  2. if player ~= game:service("Players").LocalPlayer then
  3. if player.Character then
  4. local torso = player.Character:FindFirstChild("Torso")
  5. if torso then
  6. local base = Instance.new("BillboardGui")
  7. local esP = Instance.new("Frame", base)
  8. base.AlwaysOnTop = true
  9. base.Enabled = true
  10. base.Size = UDim2.new(4.5,0,6,0)
  11. base.StudsOffset = Vector3.new(0, -0.6, 0)
  12. esP.BackgroundColor3 = Color3.new(0,255,255)
  13. esP.BackgroundTransparency = 0.8
  14. esP.BorderSizePixel = 1
  15. esP.Size = UDim2.new(1,0,1,0)
  16. if base and workspace.CurrentCamera then
  17. base.Name = username
  18. base.Parent = workspace.CurrentCamera
  19. base.Adornee = torso
  20. end
  21. end
  22. end
  23. end
  24. end
  25.  
  26. function CheckEsp()
  27. for x,player in pairs(game:service("Players"):GetPlayers()) do
  28. if player then
  29. local char = player.Character
  30. if char then
  31. local torso = char:FindFirstChild("Torso")
  32. if torso then
  33. local currentcam = workspace.CurrentCamera
  34. local playerName = player.Name
  35. if currentcam:FindFirstChild(playerName) == nil then
  36. Esp(player, playerName)
  37. end
  38. end
  39. end
  40. end
  41. end
  42. end
  43.  
  44. while wait(2) do
  45. CheckEsp()
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement