-
I am trying to make it so arms fall off when this function is called.
-
Everytime the function is called, it says that it is attempting to index nil with ‘Left Arm’
function make(part)
char = script.Parent
local a = Instance.new("Part",part)
a.Size = part.Size
a.Transparency = 1
local wa = Instance.new("Weld",a)
wa.Part0 = a
wa.Part1 = part
end
make( char["Left Arm"])
make( char["Right Arm"])
char.Torso["Left Shoulder"].Part1 = nil
char.Humanoid:TakeDamage(10)
wait(math.random(5,20))
char.Torso["Right Shoulder"].Part1 = nil
char.Humanoid:TakeDamage(10)