I am using a local script. It is a TextLabel inside a ScreenGUI.
player = game.Players.LocalPlayer
script.Parent.TextLabel.Text = (player.Backpack.Time.Value)
Why doesn't it change with the players time?
I am using a local script. It is a TextLabel inside a ScreenGUI.
player = game.Players.LocalPlayer
script.Parent.TextLabel.Text = (player.Backpack.Time.Value)
Why doesn't it change with the players time?
You only made it change once when the game starts. Use the changed event to make it change whenever the time changes:
player = game.Players.LocalPlayer
player.Backpack.Time.Value.Changed:Connect(function()
script.Parent.TextLabel.Text = (player.Backpack.Time.Value)
end)
I think it would be better like this: script.Parent.TextLabel.Text = "("..player.Backpack.Time.Value")"
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Why are you using ( )'s when defining? And also you need to use a loop with wait() in it.