script.Parent.FireGun.Changed:connect(function()
	local anim3 = script.Parent.AnimationController:LoadAnimation(script.Parent.Anim)
	anim3:Play()
end)

I have this normal script that plays an animation whenever the FireGun boolvalue is changed. It doesn't actually play the animation, even though the value is being changed. No errors are displayed in the console. Can anybody help me?

2 comments

0

Are you changing the value from false to true or from true to true? I would put the animation in an if statment for value being true and at the end of if set it back to false

0

I've been using the not operator to change the value back and forth. I'll try out what you would do.