local players = game:GetService('Players')
players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new('Folder')
leaderstats.Name = 'leaderstats'
leaderstats.Parent = player
local rolls = Instance.new('IntValue')
rolls.Parent = leaderstats
rolls.Value = 0
rolls.Name = 'Rolls'
local function createBillboardGui(character)
local head = character:WaitForChild("Head", 5)
if not head then
warn("Head not found for player " .. player.Name)
return
end
local showrolls = Instance.new('BillboardGui')
showrolls.Parent = head
showrolls.StudsOffset = Vector3.new(0, 3, 0)
showrolls.Adornee = head
showrolls.Size = UDim2.new(0, 100, 0, 50)
local show = Instance.new('TextLabel')
show.Parent = showrolls
show.Text = 'Rolls: ' .. tostring(rolls.Value)
show.BackgroundTransparency = 1
show.Size = UDim2.new(1, 0, 1)
show.TextColor3 = Color3.fromRGB(255, 255, 255)
show.TextScaled = true
show.Font = Enum.Font.PermanentMarker
local rolval = rolls.Value
task.wait(1)
show.Text = 'Rolls:' ..rolval
rolls.Changed:Connect(function()
show.Text = 'Rolls: ' .. tostring(rolval)
end)
end
player.CharacterAdded:Connect(function(character)
createBillboardGui(character)
end)
if player.Character then
createBillboardGui(player.Character)
end
end)
** You are now Level 3! **