Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why isn't this Animation Working?

I've created a tool and when I equip it, it doesn't run.

function Animation(left,right)
	left.CFrame=CFrame.new(1,1,1)*CFrame.Angles(0,0,math.rad(-30)) -- Nothing big, just arm test
	right.CFrame=CFrame.new(1,1,1)*CFrame.Angles(0,0,math.rad(30))
end

script.Parent.Equipped:connect(function()
	local chr=script.Parent -- the character(tool's parent)
	left_arm=chr:WaitForChild'Left Arm'
	right_arm=chr:WaitForChild'Right Arm'
	Animation(left_arm,right_arm)	
end)

f.y.i. Nothing in the output,Not Running.I don't know anything about Custom Animations.

1 answer

✓ Accepted answer

Line 07, chr is set as the tool not the character, you need,

script.Parent.Parent

, tell me if you still have errors.

This discussion is preserved as it was. New answers, comments, and votes are closed.