RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Script a billboard gui to be displayed over the players head and showing what level they are at"
-- local script for displaying a billboard GUI over a player's head local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local head = character:WaitForChild("Head") local billboardGui = Instance.new("BillboardGui") local textLabel = Instance.new("TextLabel") billboardGui.Parent = head billboardGui.Adornee = head billboardGui.Size = UDim2.new(0, 200, 0, 50) billboardGui.StudsOffset = Vector3.new(0, 2, 0) billboardGui.AlwaysOnTop = true textLabel.Parent = billboardGui textLabel.Size = UDim2.new(1, 0, 1, 0) textLabel.BackgroundTransparency = 1 textLabel.TextScaled = true textLabel.Text = "Level: " .. (player.leaderstats.Level.Value or 1) player.leaderstats.Level.Changed:Connect(function(newValue) textLabel.Text = "Level: " .. newValue end)