0

# How to make a code run after a specific sentence gets printed?

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.

0

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!!

0
Shouldn't he use a BindableEvent for this instead, as he is transferring data from a Server-Script to another Server-Script? DindinYT37 212 — 16d