Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can anyone help me fix error "cannot resume non-suspended coroutine"?

Asked by 7 years ago
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local MatchStatus = ReplicatedStorage:WaitForChild("MatchStatus")

local Events = ReplicatedStorage:WaitForChild("Events")
local MatchOver = Events:WaitForChild("MatchOver")
local StartGameEvent = Events:WaitForChild("StartGame")

StartGameEvent.OnClientEvent:Wait()

The script errors on line 8. The error says "cannot resume non-suspended coroutine".

StartGameEvent is fired with "FireAllClients". This is in a local script.

0
I don't think you can wait for a client network based event. User#5423 17 — 7y

Answer this question