Cannot resume non-suspended coroutine

for some reason, doing script.Parent.Equipped:Wait() in a while true do loop gives the error

cannot resume non-suspended coroutine 

Why is this happening and how do I fix this?

Hello everyone, I still cannot figure out why this happening. I would really appreciate it if anyone could help me.

Why are you doing script.Parent.Equipped:Wait()?

Can you show your script?

quite inefficient but I still wonder why it doesn’t work:

while true do
	local newCFrame = CFrame.Angles(0, math.rad(90), 0)
	local offset =, 0,-11)
	local params =
	params.IgnoreWater = false
	params.FilterDescendantsInstances = {game.Workspace.Terrain}
	params.FilterType = Enum.RaycastFilterType.Whitelist

	local raycast = workspace:Raycast(,Furnace.PrimaryPart.Position.Y + 70,Furnace.PrimaryPart.Position.Z),,-500,0),params)
	local rootpartFrame = character.HumanoidRootPart.CFrame
	local rotation = rootpartFrame - rootpartFrame.Position
	local CompleteCFrame = rotation +, raycast.Position.Y + 4, rootpartFrame.Z) 
	furnace:SetPrimaryPartCFrame(furnace:GetPrimaryPartCFrame() * newCFrame)


(It shows where the furnace would be placed if the player were to click, I am replacing it from repeat wait() until script.Parent.Equipped)

Could be due to the wait() since you are trying to do script.Parent.Equipped:Wait()

One Example:

local RS = game:GetService("RunService")

while true do

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.