Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make every character not auto spawn?

I'm trying to make a spectate system but I need that if you die you don't respawn and the spectate Gui appears, I need only the script for disabling the respawn.

I tried this but it didn't work (It's in a local script):

while true do
	wait(0.1)
	
	local Players = game:GetService("Players")
	
	Players.CharacterAutoLoads = false
end

I would really appreciate it if you help me with this problem.

Thanks, MajinBluee

1 comment

0

Use a ServerScript

1 answer

✓ Accepted answer

Why you are doing this through code confuses me.

First issue is that you are using a LocalScript to do something that the server controls. Don't do that.

Second, you can just click the Players tab in Studio and uncheck the CharacterAutoLoads option in it's Properties.

But, if it must be done through code... Use a ServerScript


... Thank you for reading this answer:


if thisHelped then
	local markThisAnswerAsCorrect = true
	local followMeOnTwitch = true
	local subscribeToYooogleOnYT = true
end

2 comments

0

I liked your last words, Not following and not subscribing

0

lol that is okay. @majinbluee

This discussion is preserved as it was. New answers, comments, and votes are closed.