Yeah, I don’t have much experience of scripting right now, that’s why Im trying to see if one of you guys can help
You’ll want to change up your script:
local Players = game:GetService('Players')
local BillboardGui = game.ServerStorage.BillBoardGui
Players.PlayerAdded:Connect(function(Player)
local timeAlive = Player.leaderstats['Time Alive']
Player.CharacterAdded:Connect(function(Character)
local BillboardClone = BillboardGui:Clone()
BillboardClone.Parent = Character:WaitForChild("Head")
BillboardClone.TextLabel.Text = timeAlive.Value
timeAlive:GetPropertyChangedSignal('Value'):Connect(function()
BillboardClone.TextLabel.Text = timeAlive.Value
end)
end)
end)
Not sure if it works, give it a try.
Any errors? (If you don’t know where it is, click VIEW then click Output.)
Is there anything red or yellow in the output? Or is the gui disabled, or the text label invisible?
I don’t think the gui is disabled
Did you make all these changes while play testing?
If yes then exit play test, save all changes and play test again.
No I did not make any changes
Seems like I did a typo, maybe try this? (Well, probally wont work)
local Players = game:GetService('Players')
local BillboardGui = game.ServerStorage.BillboardGui
Players.PlayerAdded:Connect(function(Player)
local timeAlive = Player.leaderstats['Time Alive']
Player.CharacterAdded:Connect(function(Character)
local BillboardClone = BillboardGui:Clone()
BillboardClone.Parent = Character:WaitForChild("Head")
BillboardClone.TextLabel.Text = timeAlive.Value
timeAlive:GetPropertyChangedSignal('Value'):Connect(function()
BillboardClone.TextLabel.Text = timeAlive.Value
end)
end)
end)
It works! but we have a little bit of a problem! when I got out of spawn, the time stopped and didn’t go
I did it right now but may you help me? the time stopped when I got out of spawn
Is your script that changes the time a localscript? If it is then thats probably why.
Oh alright, then I don’t know why.