I am making a script where character will spawn in at spawn #1 but when the character dies he will spawn at spawn #2 somewhere else, the script works perfectly in studio but does not on Roblox itself, so I resolved that instead of using a regular wait() I should wait until PlayerAdded, but I have no clue how to do this sort of thing because it uses functions. Script:
workspace.Model.SpawnLocation.Enabled = true --Spawn #1
workspace.Cell.SpawnLocation.Enabled = false --Spawn #2
wait(1)
workspace.Model.SpawnLocation.Enabled = false
workspace.Cell.SpawnLocation.Enabled = true

10 comments
I would replace line 11 with "char.Humanoid.Died:Connect(function()" then put lines 12-16 inside of the function.
it tells me "bad argument" at line 9
Sorry, use Spawn1.CFrame, same with Spawn2
says same thing, bad argument #3 to 'CFrame' (CFrame expected, got Object)
I'll update the script
Should work now
doesn't work :P
thanks for trying to help though
Do you have any errors?
Try now, I updated the script again