Model Animation firing...?

Hi, I can’t decide whether I should use a BindableEvent or BindableFunction to make an animation play on a model. It’s coming from a different script when clicked. How would I code it as well?

What i want it to do is if the event is fired, the animation on the model will play

Use BindableEvents unless you want to yield a script and return information back.
Here is an example:

local event = -- Get the bindable event
local anim = -- Get the animation
local model = -- Get the model you want the animation to play on.

event.Event:Connect(function() -- When the event is fired, this function will run

local anim2 = model.Humanoid:LoadAnimation(anim) -- Load the animation onto the humanoid
anim2:Play() -- Play the animation

end)