Advertisement
Guest User

orthoxia esp

a guest
Jan 17th, 2020
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2.  
  3. local function esp(Part)
  4. if Part:IsA("BasePart") then
  5. local a = Instance.new("BoxHandleAdornment", game.CoreGui)
  6. a.Name = Part.Parent.Name
  7. a.Adornee = Part
  8. a.AlwaysOnTop = true
  9. a.ZIndex = 0
  10. a.Size = Part.Size
  11. a.Transparency = 0.7
  12. a.Color = BrickColor.new("Lime green")
  13. local BillboardGui = Instance.new("BillboardGui", game.CoreGui)
  14. local TextLabel = Instance.new("TextLabel")
  15. BillboardGui.Adornee = Part.Parent.Head
  16. BillboardGui.Name = Part.Parent.Name
  17. BillboardGui.Size = UDim2.new(0, 100, 0, 150)
  18. BillboardGui.StudsOffset = Vector3.new(0, 1, 0)
  19. BillboardGui.AlwaysOnTop = true
  20. TextLabel.Parent = BillboardGui
  21. TextLabel.BackgroundTransparency = 1
  22. TextLabel.Position = UDim2.new(0, 0, 0, -50)
  23. TextLabel.Size = UDim2.new(0, 100, 0, 100)
  24. TextLabel.Font = Enum.Font.SourceSansSemibold
  25. TextLabel.TextSize = 20
  26. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  27. TextLabel.TextStrokeTransparency = 0
  28. TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
  29. game:GetService("RunService").RenderStepped:Connect(function()
  30. if Part.Parent ~= nil and Part.Parent:FindFirstChild('HumanoidRootPart') and Part.Parent:FindFirstChild('Humanoid') and game.CoreGui:FindFirstChild(Part.Parent.Name) then
  31. local pos = math.floor((game.Players.LocalPlayer.Character.HumanoidRootPart.Position - Part.Position).magnitude)
  32. TextLabel.Text = 'Name: '..Part.Parent.Name..' | Studs: '..pos else
  33. BillboardGui:Destroy() a:Destroy()
  34. end
  35. end)
  36. Part.Parent.Humanoid.Died:Connect(function()
  37. a:Destroy()
  38. BillboardGui:Destroy()
  39. end)
  40. end
  41. end
  42. for i,v in pairs(game.Players:GetChildren()) do
  43. if v ~= Player then
  44.  
  45. if v.Character then
  46. if v.Character:FindFirstChild("HumanoidRootPart") then
  47. esp(v.Character.HumanoidRootPart)
  48. end
  49. v.Character.ChildAdded:Connect(function(child)
  50. if child.Name == "HumanoidRootPart" then
  51. esp(child)
  52. end
  53. end)
  54. end
  55. v.CharacterAdded:Connect(function(char)
  56. local human = Char:WaitForChild("Humanoid")
  57. local root = Char:WaitForChild("HumanoidRootPart")
  58. esp(root)
  59. end)
  60. end
  61. end
  62. game.Players.PlayerAdded:Connect(function(plr)
  63. plr.CharacterAdded:Connect(function(char)
  64. local human = char:WaitForChild("Humanoid")
  65. local root = char:WaitForChild("HumanoidRootPart")
  66. esp(root)
  67. end)
  68. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement