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

script only works (updates) when player respawns?

if game.Workspace.minutes.Value == -5 then
	script.Parent.Visible = true
elseif game.Workspace.minutes.Value ~= -5 then
	script.parent.Visible = false
end

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

1 answer

✓ Accepted answer

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

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

This discussion is preserved as it was. New answers, comments, and votes are closed.