#How to put Overhead tag

2 messages · Page 1 of 1 (latest)

turbid lichen
#

use billboard gui

wooden violet
#
local Head = script.Parent:WaitForChild("Head")
local character = script.Parent

local player = game.Players:WaitForChild(character.Name)

if Head then
    
    local tag = Instance.new("BillboardGui")
    tag.Parent = Head
    tag.Size = UDim2.new(4, 0,1, 0)
    tag.AlwaysOnTop = true
    tag.StudsOffset = Vector3.new(0, 2, 0)
    
    local Username = Instance.new("TextLabel")
    Username.Parent = tag
    Username.Text = character.Name
    Username.Size = UDim2.new(1, 0, 0.5, 0)
    Username.BackgroundTransparency = 1
    Username.TextScaled = true
    Username.TextColor3 = Color3.new(1, 1, 1)
    
    local Rank = Instance.new("TextLabel")
    Rank.Parent = tag
    Rank.Text = "Rank: " .. "x" --player.leaderstats.Rank???
    Rank.Position = UDim2.new(0, 0, 0.5, 0)
    Rank.Size = UDim2.new(1, 0, 0.5, 0)
    Rank.BackgroundTransparency = 1
    Rank.TextScaled = true
    Rank.TextColor3 = Color3.new(1, 1, 1)
end