How can I make a Player's arm collidable?
This seems simple but I cant find an answer for this. Am trying to make a ragdoll script where the player is still alive. So I've made the script copy the limbs of the character and attached them to the torso with a socket constraint. unfortunately the arms hang through the ground. How do I make the arms collide with the ground?(setting the arms to CanCollide dos not work)
Heres the code I have for the ragdoll script if you are interested...
01 | local character = script.Parent |
02 | local player = game.Players:GetPlayerFromCharacter(character) |
04 | player.PlayerGui.Health.Changed:connect( function () |
06 | if player.PlayerGui.Health.Value > 0 then |
07 | character.Humanoid.PlatformStand = false |
09 | if player.PlayerGui.Health.Value < = 0 then |
10 | character.Humanoid.PlatformStand = true |
11 | local FakeArm = game.Lighting.FakeArm:Clone() |
13 | local children = character:GetChildren() |
15 | if children [ i ] .Name = = "Left Arm" then |
16 | local clone = children [ i ] :Clone() |
17 | FakeArm.RealArmAttachment.Parent = children [ i ] |
18 | FakeArm.FakeArmAttachment.Parent = clone |
19 | FakeArm.BallSocketConstraint.Parent = clone |
20 | clone.BallSocketConstraint.Attachment 1 = children [ i ] .RealArmAttachment |
21 | clone.BallSocketConstraint.Attachment 0 = clone.FakeArmAttachment |
22 | children [ i ] .Transparency = 1 |
23 | clone.Parent = character |
26 | FakeArm.Parent = character |