Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make every character not auto spawn?

Asked by 5 years ago

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

0
Use a ServerScript theCJarmy7 1293 — 5y

1 answer

Log in to vote
0
Answered by
joeldes 201 Moderation Voter
5 years ago
Edited 5 years ago

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
0
I liked your last words, Not following and not subscribing MajinBluee 80 — 5y
0
lol that is okay. @majinbluee joeldes 201 — 5y
Ad

Answer this question