This is a script in ServerScriptService seconds is the defined version of my intvalue "time" The error in if game.Workspace.seconds.Value "0" = true then is the "=" it has a red line and it says "ServerScriptService.Script:10: Expected 'then' when parsing if statement, got '='" when i hover over it this is supposed to be a intermission and it starts the game ten when there is 1 player in the alive team it restarts the game.
local teams = game.Workspace.Teams
local seconds = game.Workspace.Time
local Game = game.Workspace.Game.Position
while true do
wait(1)
seconds.Value = seconds.Value - 1
if game.Workspace.seconds.Value "0" = true then
local teleport = game.Players:GetChildren()
for i = 1, #teleport do
teleport[i].Character:MoveTo(Vector3.new(Game.X, Game.Y, Game.Z))
end
end
if teams.Alive.GetPlayers == 1 then
local teleport = game.Players:GetChildren()
for i = 1, #teleport do
teleport[i]:LoadCharacter()
end
end
I put as much info as i could, please help
just comment if you need more info :)

1 comment
im trying to see how much players are on the 'alive" team