Well i tried to make every players in my game see a GUI with a script but only 1 player see it (The others just hear the sounds made by it)
I tried everything ( I even searched on the ROBLOX wiki)
script.Intermission:Play() for s,Dudes in pairs(game.Players:GetPlayers()) do for Time = 25, 5, -1 do Dudes.PlayerGui.Infos.Info1.Visible = true Dudes.PlayerGui.Infos.Info1.Active = true Dudes.PlayerGui.Infos.Info1.Text = "Starting game in "..Time.." seconds" script.Sound:Play() wait (1) end script.CountdownQ:Play()
Thanks for helping me
``
You need to add another end for the second loop.
But, first you should put the two loops into a function, example:
script.Intermission:Play() function Intermission() for s,Dudes in pairs(game.Players:GetPlayers()) do for Time = 25, 5, -1 do Dudes.PlayerGui.Infos.Info1.Visible = true Dudes.PlayerGui.Infos.Info1.Active = true Dudes.PlayerGui.Infos.Info1.Text = "Starting game in "..Time.." seconds" script.Sound:Play() wait (1) end--Added end. end--Another added end! end Intermission()--Change this. script.CountdownQ:Play()
This should work, or help you. If it does, then accept my answer, it gives us both rep!
for Time = 25, 5, -1 do
this code will not play for each player at the same time, it play the code for 1 player at a time so if your intermission is 25 seconds, every 25 seconds, 1 player would see this.
so,
set the visible and active properties to
true
in the first loopnext loop go tru all the players and set the new value and have the loop go 25 times
sorry i could not give code