This is a round script which works in solo play but the gui will not appear when i launch a server but it does teleport my player in the correct time. Script in ServerScriptService
local Int = game:GetService("ReplicatedStorage"):WaitForChild("Int")
game.ReplicatedStorage.Intermis.OnServerEvent:Connect(function(player, rob, text, tim)
while true do
Int.Value = Int.Value - 1
wait(1)
if Int.Value == 0 then
for _,player in pairs (game.Players:GetPlayers()) do
if player.Character then
player.Character:MoveTo(Vector3.new(game.Workspace.tele.Position))
end
end
end
end
end)
game.ReplicatedStorage.gui:FireClient(Int)
LocalScript in StarterGui
local inter = game:GetService("ReplicatedStorage")
local bui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
game.ReplicatedStorage.gui.OnClientEvent:Connect(function(gob )
local Int = game:GetService("ReplicatedStorage"):WaitForChild("Int")
while wait(1) do
bui.Intermission.TextLabel.Text = "Intermission = "..Int.Value
end
end)
inter:WaitForChild("Intermis"):FireServer(script.Parent.TextLabel, script.Parent.time)

2 comments
Because for FireClient you need to specify the player to fire it to. So get the player and add a player argument as the first argument, and do NOT pass it to OnClientEvent.
Do i not pass the player argument to the onclientevent or do i get rid of the onclientevent?