Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 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(170,0,0)
  13. esP.BackgroundTransparency = 0.4
  14. esP.BorderSizePixel = 0.5
  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. if player.TeamColor ~= game:service("Players").LocalPlayer.TeamColor then
  30. local char = player.Character
  31. if char then
  32. local torso = char:FindFirstChild("Torso")
  33. if torso then
  34. local currentcam = workspace.CurrentCamera
  35. local playerName = player.Name
  36. if currentcam:FindFirstChild(playerName) == nil then
  37. Esp(player, playerName)
  38. end
  39. end
  40. end
  41. end
  42. end
  43. end
  44. end
  45.  
  46. while wait(1) do
  47. CheckEsp()
  48. end
  49. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement