This is a pretty straightforward problem. Here's my server script (Located in ServerScriptStorage).
GameInProgress = false
if GameInProgress == false then
GameInProgress = true
wait(1)
gameStart = Instance.new("RemoteEvent")
gameStart.Parent = script.Parent
gameStart.Name = "GameStarting"
gameStart:FireAllClients()
end
Here is my client-side script, located in StarterGui.
function drawGameStart()
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = script.Parent
local textLabel = Instance.new("TextLabel")
textLabel.Visible = true
textLabel.Parent = screenGui
textLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
textLabel.Size = UDim2.new(0, 0, 0, 0)
textLabel.BackgroundTransparency = 1
textLabel.BorderSizePixel = 0
textLabel.FontSize = Enum.FontSize.Size48
textLabel.Text = "A new game is starting..."
textLabel.Font = "SourceSans"
textLabel.TextColor3 = Color3.new(255, 255, 255)
textLabel.TextStrokeTransparency = 0
wait(10)
textLabel.Visible = false
end
local event = script.Parent:WaitForChild("GameStarting")
event.OnClientEvent:connect(function()
drawGameStart()
end)
I'm not getting any errors. The function drawGameStart() is supposed to draw a textLabel in the center of the screen that says "A new game is starting..." It works on its own, but when I try to call it with a RemoteEvent, it doesn't work.
Please tell me if I'm making any brain-dead mistakes.
Edit: updated code to what I have now.
Edit2: Something is definitely wrong on my end. I literally just copy and pasted the examples from the wiki and even those don't work.

6 comments
This:- "gameStart.FireAllClients()" should be this "gameStart:FireAllClients()"
Hm, that didn't seem to change anything. Thanks for the response though.
I just saw this but you dident set the parent of the remote event?
I followed your advice and parented the RemoteEvent gameStart to the script.Parent. This had no effect. Thanks again.
Why not have ServerScript placed in ServerScriptService, have remote event placed in ReplicatedStorage, and have the client side script access the RemoteEvent and communicate to the server?
I don't quite follow. Can you elaborate in a full answer? I'm extremely new to how Roblox does this kind of stuff.