Anyone know what this means?

Error: “Expected Identifier when parsing expression, got ‘/’”

Code:

--// items //--
local StartGameEvent = game.ReplicatedStorage:WaitForChild("StartGame")
local CountdownEvent = game.ReplicatedStorage:WaitForChild("CountdownShown")

--// Functions //--
local function CountdownFrom(Number)
	CountdownEvent:FireAllClients(Number)
	wait(Number)
end

--// Start Game //--
StartGameEvent.OnServerEvent:Connect(function(Amount, TrueOrFalse)
	CountdownFrom(15)
end)
1 Like

Did you copy the entire script? The error means that there is a “/” in your script. This script doesn’t seem to have it so I don’t know the problem.

2 Likes

That’s the entire script. Could it mean anything else?

1 Like

That’s all it could mean. Your script even works for me. Are you sure that is the script producing the error? And could you also show which line the error came from? (should show in the output)

2 Likes


That’s the entire error.

1 Like

I have 0 clue what could be causing your problem then. Try restarting studio?

2 Likes

Alright, I will try that. Hopefully it works.

1 Like

I didn’t even restart studio and the error went away. That’s odd but good.

1 Like

If the script worked, please set one of the posts as the solution so others don’t try to reply. Have a good day.

2 Likes