I made a game and it got a problem, its a hospital roleplay game.
So player’s arm or hand can be broken when he falls down or steps on banana peel, how do I make this? like how do i make the player get a arm invisible then a machine or something which makes it visible again
Then you need to do a check to see if they are R6 or R15, try putting in your script:
if player.Humanoid.RigType == Enum.HumanoidRigType.R6 then
local r6arm = player:FindFirstChild("Right Arm")
-- code here
elseif player.Humanoid.RigType == Enum.HumanoidRigType.R15 then
local r15arm = {
player:FindFirstChild("RightUpperArm"),
player:FindFirstChild("RightLowerArm"),
player:FindFirstChild("RightHand")
}
for i,v in pairs(r15arm) do
-- code here
end
end