Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local AssetFolder = game:GetObjects("rbxassetid://13614502199")[1]
- local EspGui = AssetFolder:WaitForChild("PlayerEspScript"):WaitForChild("PlayerEspGui")
- local LocalPlayer = game.Players.LocalPlayer
- while task.wait() do
- for i, Player in pairs(game.Players:GetPlayers()) do
- if Player and Player.Character and not (LocalPlayer == Player) then
- if Player.Character:FindFirstChild("Head") and Player.Character.Head:FindFirstChild("PlayerEspGui") then
- local Gui = Player.Character.Head:FindFirstChild("PlayerEspGui")
- Gui.Enabled = true
- if Player.Character:FindFirstChild("HumanoidRootPart") then
- Gui.StudsAway.Text = tostring(math.floor((Player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).magnitude)).." Studs Away"
- end
- if not (Player.Team == nil) then
- Gui.Icon.BackgroundColor3 = Player.TeamColor.Color
- else
- Gui.Icon.BackgroundColor3 = Color3.new(255,255,255)
- end
- Gui.User.Text = Player.Name
- if Gui.Icon.Image == "" then
- local Image = game:GetService("Players"):GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size60x60)
- Gui.Icon.Image = Image
- end
- else
- if Player.Character:FindFirstChild("Head") then
- local Gui = EspGui:Clone()
- Gui.Enabled = true
- Gui.Parent = Player.Character.Head
- if Player.Character:FindFirstChild("HumanoidRootPart") then
- Gui.StudsAway.Text = tostring(math.floor((Player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).magnitude)).." Studs Away"
- end
- if not (Player.Team == nil) then
- Gui.Icon.BackgroundColor3 = Player.TeamColor.Color
- else
- Gui.Icon.BackgroundColor3 = Color3.new(255,255,255)
- end
- Gui.User.Text = Player.Name
- if Gui.Icon.Image == "" then
- local Image = game:GetService("Players"):GetUserThumbnailAsync(Player.UserId, Enum.ThumbnailType.AvatarBust, Enum.ThumbnailSize.Size60x60)
- Gui.Icon.Image = Image
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement