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

how to I make a gui that pops up for everyone at the same time and says the same thing?

Asked by
zValerian 108
5 years ago
Edited 5 years ago

I get so close but then I mess up. This is the hardest part of anything I have ever done. What I am trying to do is to make a GUI that pops up for everyone at the same time and says the same thing. I also am trying to make it so that it can be fired again so the rounds can keep on going. I have tried many things but they just don't work. If anyone has any tips or anything DM me. I really need help. I am at the point where I will PAY.

I had something like this before but I have no idea how re- fire it.


function update(count) local player = game.Players.LocalPlayer game.Players.LocalPlayer.PlayerGui.pods.ann.TextButton.Text = "Waiting for "..count.." more players!" if count <= 0 and game.Workspace.game.CanCollide == true then game.Players.LocalPlayer.PlayerGui.pods.ann.Visible = true game.Players.LocalPlayer.PlayerGui.pods.ann.TextButton.Text = "Welcome to the annual HUNGER GAMES" wait(10) game.Players.LocalPlayer.PlayerGui.pods.ann.TextButton.Text = "If you don't know how to play, read the description!" wait(10) player.TeamColor = BrickColor.new("Forest green") game.Players.LocalPlayer.PlayerGui.pods.ann.TextButton.Text = "Selecting random arena..." wait(5) game.Players.LocalPlayer.PlayerGui.pods.ann.TextButton.Text = "Arena selected. Prepare to enter the game. May the odds be ever in your favor." wait(20) game.Players.LocalPlayer.PlayerGui.pods.ann.Visible = false game.ReplicatedStorage.Remotes.tp:FireServer() end while true do if game.Workspace.inter.CanCollide == false and game.Workspace.game.CanCollide == true then update() wait(1) game.Workspace.game.CanCollide = false end end end wait(5) game.ReplicatedStorage.Notify.OnClientEvent:connect(update)

I tried to do remotes but it didn't work at all. here was the remote script

player = game.Players:GetPlayers()
while true do
    if game.Workspace.game.CanCollide == true
        and game.Workspace.PlayerCount.Players.Value < 5
        then
        game.ReplicatedStorage.Remotes.one:FireServer()
        wait(10)
        game.ReplicatedStorage.Remotes.two:FireServer()
        wait(10)
        game.ReplicatedStorage.Remotes.three:FireServer()
        wait(10)
        game.ReplicatedStorage.Remotes.four:FireServer()
        wait(10)
    end
end

and here was the first script a part of that

local player = game.Players:GetPlayers()
game.ReplicatedStorage.Remotes.one.OnServerEvent:Connect(function(qnay)
    player.PlayerGui.pods.ann.Visible = true
    player.PlayerGui.pods.ann.TextLabel.Text = ("Welcome to the annual HUNGER GAMES!")
end)
0
We are scriptinghelpers.org, not scriptersforhire.org. User#19524 175 — 5y
0
I think you can use events for that, unless you're talking about all servers, then I don't know how to help for that. Ap_inity 112 — 5y
0
I updated it look up zValerian 108 — 5y

1 answer

Log in to vote
1
Answered by
INOOBE_YT 387 Moderation Voter
5 years ago
  1. Have a gui in the startergui so it replicates to every client
  2. Have a local script in the gui
  3. Have a server script in the serverscriptservice

Server script:

RemoveEvent:FireAllClients("Text you want to show")

Local script:

RemoteEvent.OnClientEvent:Connect(function(TextArg)
    script.Parent.Text = TextArg
end)

The FireAllClients function fires the remoteevent for all the clients and the parameter is the text you want to show. On the local script, we handle the event with the OnClientEvent event listener and we change the gui's text to show the text that we passed on from the server script.

0
Oh I didn't know you used this website lol lunatic5 409 — 5y
Ad

Answer this question