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

Recent glitches with the Character?

Asked by
OBenjOne 190
5 years ago

I have been having two glitches with the ROBLOX character in my game. The first one occurs when I kill the character like this:

 humanoid.Health = humanoid.Health - 100

The script kills the character and it respawns with no problems except that for some reason the old character is not removed. The joints break and everything, but the character stays (without its accessories) My second problem is more related to my game. In my game, I have seats that automatically parent the character to them when it sits down so that it is easy to access values in the seat. These seats are sometimes parented to vehicles which can be removed when destroyed, using a script like this:

 Vehicle:Destroy()

Unfortunately this removes the character which would be ok except that it never respawns. The player then has to leave the game. What should I do?

0
Which is why you wouldn't destroy the character. You could do "char.Parent = nil" and then whenever you need it back in the workspace do "char.Parent = workspace", and then set the Character property of the Player to their model. User#19524 175 — 5y
0
Is there a way to make sure the character is not destroyed? OBenjOne 190 — 5y
0
If destroying the character glitches out the ROBLOX system, why does it let you do it? And is there a way to reverse it? Like loading the character back in? OBenjOne 190 — 5y
0
You could use “occupant” to check if the seat has a humanoid in it first. ABK2017 406 — 5y
0
oh! great! OBenjOne 190 — 5y

Answer this question