players = game.Players:GetChildren()
GUI = game.StarterGui.RoundSystemGui
local state = game.ReplicatedStorage.RoundInfo.RoundState
state.Value = "Intermission..."
if state.Value == "Intermission..." then
GUI.IntermissionText.Text = state.Value
end
wait(9)
state.Value = "playing"
wait(1)
if state.Value == "playing" then
print("game started")
GUI.IntermissionText.Text = "e"
end
#Text
37 messages · Page 1 of 1 (latest)
** You are now Level 9! **
Give me a sec
players = game.Players:GetChildren()
GUI = game.StarterGui.RoundSystemGui
local state = game.ReplicatedStorage.RoundInfo.RoundState
state.Value = "Intermission..."
if state.Value == "Intermission..." then
GUI.IntermissionText.Text = state.Value
wait(9)
state.Value = "playing"
wait()
if state.Value == "playing" then
print("game started")
GUI.IntermissionText.Text = "e"
end
end
it worked?
The text "e" does not appear?
Can you send a video?
and if you better use a bool value?
it is easier
In gui you have to reference the gui of the player
Example
game.Players.LocalPlayer.PlayerGui.RoundSystemGui
or
for i, v in pairs(game.Players:GetPlayers()) do
local GUI = v.PlayerGui.RoundState
end
for i, v in pairs(game.Players:GetPlayers()) do
local GUI = v.PlayerGui.RoundState
game.ReplicatedStorage.RoundInfo.RoundState
state.Value = "Intermission..."
if state.Value == "Intermission..." then
GUI.IntermissionText.Text = state.Value
wait(9)
state.Value = "playing"
wait()
if state.Value == "playing" then
print("game started")
GUI.IntermissionText.Text = "e"
end
end
end
Ups
Are you sure that the gui is in the playerGui folder?
And why you better not use a LocalScript
Is the same
And to send the information to the server you use a remote function
Gui
you can use a condition in the LocalScript for the time to start
example
local players = #game.Players:GetPlayers()
if players == 3 then
--start
end
local players = #game.Players:GetPlayers()
if players == 3 then
for i = 5,0, -1 do
print(i)
end
print("the game Start")
remote:FireServer()
end
This is an example
when you fire the event you will send a signal to the server to execute the functions
in script
I don't know what your game is about
when triggering the event, you can make all the players teleport to a space where the game started
maybe I can help you after school
10:28
@noble harness i'm here