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

unkillable or understroyable character?

Asked by 7 years ago

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.

3 answers

Log in to vote
2
Answered by 7 years ago

That's easy, just make a script using the .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'.

I hope I helped in one way or another and if I didn't help then I am very sorry for wasting your time and if you have any questions just post them in the comment section below.

P.S. I didn't type a script for you because you never gave me a script to begin with and I don't want to give you the answer, that's not how you learn. I want you to find the answer by yourself. Good luck!

0
I never expected a script? I wanted to know how to do it, anyway, thank you, finally a legit answer... Seven_Teen 0 — 7y
0
No problem. I hope I helped. KingLoneCat 2642 — 7y
Ad
Log in to vote
0
Answered by 7 years ago

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!

0
No, because then you can simply :Destroy() the character, or :Remove() or BreakJoints Seven_Teen 0 — 7y
0
There is nothing you can do to prevent :Destroy(), :Remove(), or :BreakJoints() from killing a character. Kampfkarren 215 — 7y
0
Seven, since :Destroy(), :Remove() and :BreakJoints() are all commands that the script recognizes, it will run those every time, unless you write something that somehow nullifies them. I don't know what you're trying to do, but good luck with it whatever it is. areiydenfan00 115 — 7y
0
If you guys had actually read the question, and not the title, you would realize, that I wanted to CLONE the character and use the CLONE as the character instead of the actual character, so when BreakJoints is ran on the Character or Destroy, or Remove, nothing happens to the clone, literally all of that is in the question... Seven_Teen 0 — 7y
0
OH! I see what you are saying. I would check out ROBLOX's "Quantum Entangler",and view its source. I cannot give you an answer off of the top of my head with that case,but I would suggest 'Transferring' humanoids into the different models. Do this by simply making an exact replica of the original character,then swapping their positions and parts to 'Transfer' the humanoid. Reshiram110 147 — 7y
Log in to vote
0
Answered by 7 years ago

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() .

0
Also,there would be no need to stop them,unless you are preventing exploiters from breaking your game.This can easily be stopped with FilteringEnabled,and a good client-server modeled game that uses remote events. Reshiram110 147 — 7y
0
Again, please read the question, that's not what I'm asking. If you read the question, my question was, how would I add animations to a CLONE of the character so that the player cannot be killed using :Destroy() or :Remove() and where could I parent the CLONE, this way if the CHARACTER is DESTROYED or REMOVED then nothing will happen... Seven_Teen 0 — 7y

Answer this question