Magzz

IMVU CREDITScxzc

Feb 16th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. local Characters = workspace.Characters
  2. local Player = game.Players.LocalPlayer
  3.  
  4. function CreateESP(Char)
  5. local Billboard = Instance.new("BillboardGui",Char.Head)
  6. Billboard.Name="Info"
  7. local Text = Instance.new("TextLabel", Billboard)
  8. local Dist = Instance.new("TextLabel", Billboard)
  9. Dist.Name="Dist"
  10. Dist.Size=UDim2.new(1,0,0,20)
  11. Dist.Position=UDim2.new(0,0,0,10)
  12. Dist.BackgroundTransparency=1
  13. Dist.TextColor3=Color3.fromRGB(255,255,255)
  14. Billboard.Size=UDim2.new(0, 100,0, 100)
  15. Billboard.AlwaysOnTop=true
  16. Billboard.ExtentsOffsetWorldSpace=Vector3.new(0,4,0)
  17. Text.Size=UDim2.new(0,100,0,10)
  18. Text.Position=UDim2.new(0,0,0,0)
  19. Text.Text=Char.Name
  20. Text.BackgroundTransparency=1
  21. Text.TextColor3=Color3.fromRGB(255,255,255)
  22. for i,v in pairs(Char:GetChildren()) do
  23. if v:IsA("MeshPart") or v:IsA("BasePart") then
  24. if v.Name~="HumanoidRootPart" then
  25. for i=0,5 do
  26. local Surface = Instance.new("SurfaceGui",v)
  27. local Frame = Instance.new("Frame",Surface)
  28. Frame.Size = UDim2.new(1,0,1,0)
  29. Frame.BackgroundTransparency=0.5
  30. Frame.BorderSizePixel=1
  31. Frame.BackgroundColor3=Color3.fromRGB(255,0,0)
  32. Surface.Face=i
  33. Surface.AlwaysOnTop=true
  34. end
  35. end
  36. end
  37. end
  38. end
  39.  
  40. workspace.Characters.ChildAdded:Connect(function(Plr)
  41. if Plr.Name~=game.Players.LocalPlayer.Name then
  42. CreateESP(Plr)
  43. end
  44. end)
  45.  
  46. for i,v in pairs(workspace.Characters:GetChildren()) do
  47. if v.Name~=game.Players.LocalPlayer.Name then
  48. CreateESP(v)
  49. end
  50. end
  51.  
  52.  
  53.  
  54. while wait() do
  55. repeat wait() until Player.Character
  56. for i,v in pairs(Characters:GetChildren()) do
  57. if v.Head:FindFirstChild("Info") then
  58. local Dist = v.Head:FindFirstChild("Info").Dist
  59. local hum = Player.Character:WaitForChild("HumanoidRootPart")
  60. Dist.Text=math.floor((hum.Position-v.HumanoidRootPart.Position).Magnitude).." Stds."
  61. end
  62. end
  63. end
Add Comment
Please, Sign In to add comment