Advertisement
ERROR_CODE

Player Icon

Dec 21st, 2023 (edited)
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. local UIGui = Instance.new("ScreenGui")
  2. local PlayerIcon = Instance.new("ImageLabel")
  3. local PlayerIconUICorner = Instance.new("UICorner")
  4.  
  5. UIGui.Parent = game.CoreGui
  6.  
  7. PlayerIcon.Name = "PlayerIcon"
  8. PlayerIcon.Parent = UIGui
  9. PlayerIcon.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  10. PlayerIcon.BackgroundTransparency = 0.5
  11. PlayerIcon.Position = UDim2.new(0.85, 0, 0.25, 0)
  12. PlayerIcon.Size = UDim2.new(0, 50, 0, 50)
  13. PlayerIcon.BorderSizePixel = 0
  14. PlayerIcon.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=999&height=999&format=png"
  15.  
  16. PlayerIconUICorner.Parent = PlayerIcon
  17. PlayerIconUICorner.CornerRadius = UDim.new(0.5, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement