#module breaks when player dies
1 messages · Page 1 of 1 (latest)
it works when you spawn for the first time
but if you die each function "disconnects" and wont activate again
before converting stuff to modules i would use a playeradded and characteradded connection in localscripts which worked fine
where have you put the local scripts ?
i had the same problem when i had the local scripts on startegui but when i put it on starterCharacter it fixed
ok
the script has to do with the player character, also can you show the error message
I don't think it can disconnect automatically unless you're connecting to an instance event (like BasePart.Touched instead of RunService.HeartBeat)
Roblox automatically disconnects all events if the instance is destroyed.
it's not disconnecting the same way :Disconnect works on connections
it was just me explaining it
there is no error message, and also nothing is getting destroyed
starterplayerscripts
it might be because of that actually
I'll try putting it in startercharacterscripts when I get back from school
that was the issue yeah
sorry for the late response
module breaks when player dies (solved)
module breaks when player dies
adding onto this
only some of the things work properly