Since roblox changed how you do it, idk how to anymore. Could anyone tell me how you load and play an animation?
You would do something like this.
local animation = script:WaitForChild('Animation') -- add the animation as a child of the script -- local humanoid = script.Parent:WaitForChild('humanoid') -- the script will be a child of the rig-- local dance = humanoid:LoadAnimation(animation) dance:Play()
Put the trigger function around the danceplay.