Advertisement
ProScripter29

REVAMPED Player ESP Script

Jun 1st, 2023 (edited)
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. local AssetFolder = game:GetObjects("rbxassetid://13614502199")[1]
  2.  
  3. local EspGui = AssetFolder:WaitForChild("PlayerEspScript"):WaitForChild("PlayerEspGui")
  4.  
  5. local LocalPlayer = game.Players.LocalPlayer
  6.  
  7. while task.wait() do
  8. for i, Player in pairs(game.Players:GetPlayers()) do
  9. if Player and Player.Character and not (LocalPlayer == Player) then
  10. if Player.Character:FindFirstChild("Head") and Player.Character.Head:FindFirstChild("PlayerEspGui") then
  11. local Gui = Player.Character.Head:FindFirstChild("PlayerEspGui")
  12. Gui.Enabled = true
  13. if Player.Character:FindFirstChild("HumanoidRootPart") then
  14. Gui.StudsAway.Text = tostring(math.floor((Player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).magnitude)).." Studs Away"
  15. end
  16. if not (Player.Team == nil) then
  17. Gui.Icon.BackgroundColor3 = Player.TeamColor.Color
  18. else
  19. Gui.Icon.BackgroundColor3 = Color3.new(255,255,255)
  20. end
  21. Gui.User.Text = Player.Name
  22. if Gui.Icon.Image == "" then
  23. local Image = game:GetService("Players"):GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size60x60)
  24. Gui.Icon.Image = Image
  25. end
  26. else
  27. if Player.Character:FindFirstChild("Head") then
  28. local Gui = EspGui:Clone()
  29. Gui.Enabled = true
  30. Gui.Parent = Player.Character.Head
  31. if Player.Character:FindFirstChild("HumanoidRootPart") then
  32. Gui.StudsAway.Text = tostring(math.floor((Player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).magnitude)).." Studs Away"
  33. end
  34. if not (Player.Team == nil) then
  35. Gui.Icon.BackgroundColor3 = Player.TeamColor.Color
  36. else
  37. Gui.Icon.BackgroundColor3 = Color3.new(255,255,255)
  38. end
  39. Gui.User.Text = Player.Name
  40. if Gui.Icon.Image == "" then
  41. local Image = game:GetService("Players"):GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.AvatarBust, Enum.ThumbnailSize.Size60x60)
  42. Gui.Icon.Image = Image
  43. end
  44. end
  45. end
  46. end
  47. end
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement