Infinite Yield Error:
For example your workspace looks like this:
-
Workspace
-
Server Script Service
And Inside of your Main_Code script it has this:
local part = game.Workspace:WaitForChild(NPC)
No errors would occur, however, if your code looked like this:
local part = game.Workspace:WaitForChild(cookie)
It would come up with the error, "Infinite Yeild Possible on ‘game.Workspace.cookie’.
Script Timeout Error:
You’ve probably encountered one of the protections that Roblox has in place for long running scripts.
It occurs when a script runs longer than a predefined ‘timeout’ setting in seconds without yielding. When this happens, it usually causes the game to freeze for a couple seconds.
Are you experiencing this freezing?
If not, it is probably something else.
If you are experiencing the freezing, then it is likely caused by an infinite loop without waits.
In some cases you need to perform a heavy calculation which can take longer than the timeout. If this is the case, then I’d recommend adding some wait()'s at strategic locations and performing the calculation over a longer period of time.
Attempt to concatenate string with instance:
This occurs when you try to print a model or part in the game.
E.g:
This would cause an error:
print(game.Players.LocalPlayer)
Yet this wouldn’t:
print(game.Players.LocalPlayer)
**MenuGui is not a valid member of PlayerGui: **
E.g your explorer looks like this:
Inside your code, running this would lead to an error as the instance “Rocket” does not exsist:
script.Parent.Rocket:Destroy()
This would work:
script.Parent.Frame:Destroy()
This is the same concept for Membership is not a valid member of Players
Invalid argument #1 to ‘ipairs’:
Ok, this happens as your trying to call a table that doesn’t exist.
E.g:
This would cause an error:
for i, v in ipairs(Data ) do
print(i, v)
end
This would work:
local Data = {'Boo','Eek'}
for i, v in ipairs(Data ) do
print(i, v)
end
I hope this helped, enjoy!