Best method of making this intermission map loader?
Asked by
5 years ago Edited 5 years ago
Currently I have a screengui with a timer that counts down from 15. I'm not too worried about making the whole thing repeat itself infinitely yet, I'm just trying to get it work once.
02 | local repStorage = game:GetService( "ReplicatedStorage" ) |
03 | local remEvent = repStorage:WaitForChild( "IntermissionComplete" ) |
08 | script.Parent.Text = i |
11 | script.Parent.Text = "Game in progress." |
Now this works fine, timer stops, text changes and the event fires, loading the map, but since this is inside StarterGui, it creates this script for everybody each time they join, meaning that this script repeats each time a player joins, and hence the event fires, loading another map on top of the current one.
How can I alter the screengui for everybody's client without having to have the localscript within their startergui?