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

Ragdoll without removin humanoid from actual player using :clone()?

Asked by 8 years ago
Edited 8 years ago

Trying to create a script where the player goes invisible while a clone of their character is made when their health is below 5. Then when the clone is made it goes into a rag doll state by losing its humanoid. Then when they have more then 5 health the clone is destroyed and the player comes visible again, but it says I'm attempting to index local 'Fake' which is an nil value.


Humanoid.Changed:connect(function() if Humanoid.Health <= 5 then local Fake = Player.Character:Clone() Fake.Humanoid.PlatformStand = true Fake.Humanoid:Destroy() for _,v in pairs(char:GetChildren()) do if v.className == "Part" then v.Transparency = 1 elseif v.className == "Hat" then v.Handle.Transparency = 1 elseif Humanoid.Health > 5 then Fake:Destroy() for _,v in pairs(char:GetChildren()) do if v.className == "Part" then v.Transparency = 1 elseif v.className == "Hat" then v.Handle.Transparency = 0 end end end end end end)
0
What? Do you mean making the player fall around or do you mean advanced Ragdoll mechanics? User#11440 120 — 8y
0
I mean making the player fall Sanji02 0 — 8y

1 answer

Log in to vote
0
Answered by
ikiled 75 Donator
8 years ago

Use humanoid.PlatFormStand = true and loop it.

Thats the only other way, sorry!

0
Can you show me that in a script? Sanji02 0 — 8y
0
I changed the question up a bit so dont mind the previous answers. Sanji02 0 — 8y
Ad

Answer this question