Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why doesn't the text change?

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?

1 comment

0

Why are you using ( )'s when defining? And also you need to use a loop with wait() in it.

1 answer

✓ Accepted answer

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)

1 comment

0

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.