Hello, I am trying to make a character, that is essentially non-killable/destroyable, and I have no idea on how to approach this, and I was wondering how? I want to do this by Cloning the character, and then locking the camera on to the clone and adding animations to the clone, so that if somebody were to destroy the original character it would not destroy the clone, only the character, kind of like that old FM admin where if the player were kicked, he would spawn in as a new Character and play while nil. I want to know how I would go about doing this, thanks.
.Died event
of the Humanoid
and when that function
runs just run another function
which does all the Cloning
and setting the Camera
to a certain point. However, this would be more complicated then you think because you would have to also make your own controls and I recommend going over the Control scripts that are made for you from default. However, with the :remove()
the .Died event
might not run in which case just put another script which checks for the removal of it which I am pretty sure there are events which lead to that. This is quiet easy yet a bit difficult at the same time. However, making a character un-destructable should be quiet easy. The controlling of the clone is where it gets kind of difficult. I do not recommend using the :remove() method because it has been proclaimed as 'deprecated'.So, if you want your character to be invincible, try writing a script that every time it takes damage, it completely regenerates back to where it was before, and since some weapons are 1-hit kill, if you have his health at something like 1000 or 10000 those wouldn't be possible. Trying to give you an idea of what to do without telling you exactly how to do it so you can figure it out and learn something from the whole process. Good luck! Hopefully this helped!
Hello.
:Destroy() and :BreakJoints() are ROBLOX functions;they cannot be nullified or stopped.
What you could potentially do is clone the character model to ServerStorage (Or ReplicatedStorage,if it is needed on the local side).
When the character is removed,you would simple clone the backupmodel from ServerStorage into Workspace.There is no way to make a part/model 'Undestroyable',when :Remove() or :Destroy() or any other ROBLOX functions are called on them,they will always execute.Hope this helps.
If you are wanting to make the Humanoid un-killable (By non explosions),set the Humanoids health to math.huge() .