iMeanOk

Untitled

Dec 2nd, 2019
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. local ESP = Misc:Button("ESP", function()
  2. function isnil(thing)
  3. return (thing == nil)
  4. end
  5. local function round(n)
  6. return math.floor(tonumber(n) + 0.5)
  7. end
  8. function UpdatePlayerChams()
  9. for i,v in pairs(game:GetService'Players':GetChildren()) do
  10. pcall(function()
  11. if not isnil(v.Character) then
  12. for _,k in pairs(v.Character:GetChildren()) do
  13. if k:IsA'BasePart' and not k:FindFirstChild'Cham' then
  14. local cham = Instance.new('BoxHandleAdornment',k)
  15. cham.ZIndex= 10
  16. cham.Adornee=k
  17. cham.AlwaysOnTop=true
  18. cham.Size=k.Size
  19. cham.Transparency=.8
  20. cham.Color3=Color3.new(0,0,1)
  21. cham.Name = 'Cham'
  22. end
  23. end
  24. if not isnil(v.Character.Head) and not v.Character.Head:FindFirstChild'NameEsp' then
  25. local bill = Instance.new('BillboardGui',v.Character.Head)
  26. bill.Name = 'NameEsp'
  27. bill.Size=UDim2.new(1,200,1,30)
  28. bill.Adornee=v.Character.Head
  29. bill.AlwaysOnTop=true
  30. local name = Instance.new('TextLabel',bill)
  31. name.TextWrapped=true
  32. name.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
  33. name.Size = UDim2.new(1,0,1,0)
  34. name.TextYAlignment='Top'
  35. name.TextColor3=Color3.new(1,1,1)
  36. name.BackgroundTransparency=1
  37. else
  38. v.Character.Head.NameEsp.TextLabel.Text = (v.Name ..' '.. round((game:GetService('Players').LocalPlayer.Character.Head.Position - v.Character.Head.Position).Magnitude/3) ..'m')
  39. end
  40. end
  41. end)
  42. end
  43. end
  44. while wait() do
  45. UpdatePlayerChams()
  46. end
Advertisement
Add Comment
Please, Sign In to add comment