Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do i make a yes no gui that pops up at the same time for everyone in the server?

Asked by 4 years ago

am trying to make a gui where the player gets a question saying Join Battle and I want it to pop up at the same time for everone regardless of when they joined the server can u give me a hit on how I can do it

1 answer

Log in to vote
0
Answered by 4 years ago

Hey sjskunice, this is a rather easy thing to achieve. If you desire to do this you would use a fire all clients function, this will fire to all the players (clients). I'll give you an example: 1. First add a' remote event' to workspace. 2. Write the script in workspace.

function FiringEvent() workspace.RemoteEvent:FireAllClients() end

while true do wait(10) FiringEvent() end

  1. Add a text label and add a script inside it.

  2. Write the local scripts code:

script.Parent.Visible = fakse workspace.RemoteEvent.OneClientEvent:Connect(function() script.Parent.Visible = true wait(3) script.Parent.Visible = false end)

  1. This script will fire an event that will make a textlabel appear on all the players screens for 5 seconds, this event will be fired every 10 seconds, if you need any more help then please reply and tell me what you need help with.

Happy Coding, Destroyer1234x.

0
Sorry for the typos, but hope you understand anyway. Destroyer1234x 52 — 4y
0
also always put codes in codeblocks to make them more easy to understand Gameplayer365247v2 1055 — 4y
Ad

Answer this question