Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

script only works (updates) when player respawns?

Asked by
mehssi 20
9 years ago
1if game.Workspace.minutes.Value == -5 then
2    script.Parent.Visible = true
3elseif game.Workspace.minutes.Value ~= -5 then
4    script.parent.Visible = false
5end

can you help me make this work whenever and not just only if player respawns

1 answer

Log in to vote
0
Answered by
unmiss 337 Moderation Voter
9 years ago

This is because you're doing this only once. Put it in a loop.

1while wait(1) do
2    if game.Workspace.minutes.Value == -5 then
3        script.Parent.Visible = true
4    elseif game.Workspace.minutes.Value ~= -5 then
5        script.parent.Visible = false
6    end
7end
Ad

Answer this question