Hello, I was trying to make an Animation script that plays when a player pulls out a tool. I'm most likely to be using the wrong events.
Code:
Amim = Instance.new("Animation")
Amim.AnimationId = 04609133987
Amin.Parent = script.Parent.Parent
if script.Parent.Parent.Activated == true then
Amim:play()
end
if script.Parent.Parent.Deactivated == true then
Amim:stop()
end

2 comments
The script sits inside the Handle, it doesn't see, to work.
put it outside the handle, or type in "local tool = script.Parent" this > "local tool = script.Parent.Parent"