Here's a fixed version of your script:
for _, player in pairs(game.Players:GetChildren()) do
spawn(function()
player.PlayerGui.TimeNote.Timer2.Visible = true
wait(2)
player.PlayerGui.TimeNote.Timer2.Visible = false
end)
end
What you were doing wrong is referencing the player incorrectly. You also should use spawn to spawn the function, else this will happen for one player after the next and not at the same time.
What spawn does is run a function, but still continue with the rest of the code without stopping if there's a pause (like using wait).
I hope this helps! Good luck.
1 comment
This still won't work as intended. The function for each player needs to be asynchronous, else it won't work properly.