right i haven’t died off that script
Were there any errors? Did your health change at all?
1 Like
oh wait i put the script in the wrong thing
1 Like
ok i can confirm it works thank you
1 Like
I have multiple concerns about this script. One you can’t use LoadCharacter() in a local script, is that what you are using to reset the character?
Two it would be better to define this line outside of the function so it can define other variables in your script, it won’t reach anything outside the function if it is defined inside. Also you can’t use LocalPlayer in (server) scripts, so you will have to find another way to define the player if you are doing that.
I see you found a work, but just to stay away from bad practice and to make your scripting much cleaner I recommend doing this.
1 Like