Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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.

2 comments

0

Sorry for the typos, but hope you understand anyway.

0

also always put codes in codeblocks to make them more easy to understand

This discussion is preserved as it was. New answers, comments, and votes are closed.