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
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