I need a system to automatically put a player's physical character into a folder called "Spectating" once they join. I've tried this but it doesn't seem to be working. I have a feeling I may be using the wrong format.
function onCharacterAdded(character)
character.Parent = workspace.Spectating
end
There's nothing showing up in Output about character being a nil value so I really don't know.

4 comments
I got an "attempt to index nil value with Parent" error. How should I fix this?
Try this, I changed the answer.
Ok, this will work, all you have to do is add a delay. :D
The delay worked!