I made this script so you can attack with this weird arm on your torso (Don't ask why)... The error it give me "Players.kittonlover101.Backpack.Pick2.LocalScript:5: attempt to index local 'character' (a nil value)". The error is on line 5. Any help would be appreciated. Also the 3rd Arm is a model with its own humanoid.
local CanAttack = true
local player = script.Parent.Parent
local playername = player.Name
local character = game.Workspace:FindFirstChild(playername)
local arm = character:WaitForChild("3rd Arm")
script.Parent.Activated:connect(function()
wait(0.1)
local attack = arm.Humanoid:LoadAnimation (script.Attack)
attack:Play()
wait(1)
attack:Stop()
end)
