So im trying to make my game r6 and r15 compattiable but i think i did something wrong with the if statements how do i fix this there is no error in the output
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
if character.Humanoid.RigType == "R15" then
character.LeftFoot.Locked = true
character.LeftHand.Locked = true
character.LeftLowerArm.Locked = true
character.LeftLowerLeg.Locked = true
character.LeftUpperArm.Locked = true
character.LeftUpperLeg.Locked = true
character.LowerTorso.Locked = true
character.RightFoot.Locked = true
character.RightHand.Locked = true
character.RightLowerArm.Locked = true
character.RightLowerLeg.Locked = true
character.RightUpperArm.Locked = true
character.RightUpperLeg.Locked = true
character.UpperTorso.Locked = true
character.Head.Locked = true
character.HumanoidRootPart.Locked = true
elseif character.Humanoid.RigType == "R6" then
character.Head.Locked = true
character.HumanoidRootPart.Locked = true
character.Torso.Locked = true
character["Left Arm"].Locked = true
character["Left Leg"].Locked = true
character["Right Arm"].Locked = true
character["Right Leg"].Locked = true
end
end)
end)

2 comments
I see the issue here. Your indenting is horrible.
when in doubt, print() it out