Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Characters = workspace.Characters
- local Player = game.Players.LocalPlayer
- function CreateESP(Char)
- local Billboard = Instance.new("BillboardGui",Char.Head)
- Billboard.Name="Info"
- local Text = Instance.new("TextLabel", Billboard)
- local Dist = Instance.new("TextLabel", Billboard)
- Dist.Name="Dist"
- Dist.Size=UDim2.new(1,0,0,20)
- Dist.Position=UDim2.new(0,0,0,10)
- Dist.BackgroundTransparency=1
- Dist.TextColor3=Color3.fromRGB(255,255,255)
- Billboard.Size=UDim2.new(0, 100,0, 100)
- Billboard.AlwaysOnTop=true
- Billboard.ExtentsOffsetWorldSpace=Vector3.new(0,4,0)
- Text.Size=UDim2.new(0,100,0,10)
- Text.Position=UDim2.new(0,0,0,0)
- Text.Text=Char.Name
- Text.BackgroundTransparency=1
- Text.TextColor3=Color3.fromRGB(255,255,255)
- for i,v in pairs(Char:GetChildren()) do
- if v:IsA("MeshPart") or v:IsA("BasePart") then
- if v.Name~="HumanoidRootPart" then
- for i=0,5 do
- local Surface = Instance.new("SurfaceGui",v)
- local Frame = Instance.new("Frame",Surface)
- Frame.Size = UDim2.new(1,0,1,0)
- Frame.BackgroundTransparency=0.5
- Frame.BorderSizePixel=1
- Frame.BackgroundColor3=Color3.fromRGB(255,0,0)
- Surface.Face=i
- Surface.AlwaysOnTop=true
- end
- end
- end
- end
- end
- workspace.Characters.ChildAdded:Connect(function(Plr)
- if Plr.Name~=game.Players.LocalPlayer.Name then
- CreateESP(Plr)
- end
- end)
- for i,v in pairs(workspace.Characters:GetChildren()) do
- if v.Name~=game.Players.LocalPlayer.Name then
- CreateESP(v)
- end
- end
- while wait() do
- repeat wait() until Player.Character
- for i,v in pairs(Characters:GetChildren()) do
- if v.Head:FindFirstChild("Info") then
- local Dist = v.Head:FindFirstChild("Info").Dist
- local hum = Player.Character:WaitForChild("HumanoidRootPart")
- Dist.Text=math.floor((hum.Position-v.HumanoidRootPart.Position).Magnitude).." Stds."
- end
- end
- end
Add Comment
Please, Sign In to add comment