So basically I made a voting system GUI and whatever option got the most votes, for example Option A, in Output, It will print/say Option A won. I want this to launch a code that makes it so another GUI shows up. So basically when it prints "Option A Won" I want it to make it/ launch open another specific GUI for only a specific amount of seconds.
COMMUNITY QUESTION
How to make a code run after a specific sentence gets printed?
1 answer
I don't think you can do that but instead you can fire a remote event.
Example
game.ReplicatedStorage.Putremoteeventnamehere:FireServer()
Then in serverscriptservice example
game.ReplicatedStorage.Remoteeventname.OnServerEvent:Connect(function()
game.Screengui.Enable = true
wait(5)
game.Screengui.Enable = false
You will need to get these scripts to work with your setup cause they will not work Hope this helps!!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Shouldn't he use a
BindableEventfor this instead, as he is transferring data from a Server-Script to another Server-Script?