How do I make this animation play when the game is started?

All I need this to do is have the animation run when the game is started / running.

try this if it works

local animation = script:WaitForChild('Animation')
local humanoid = script.Parent:WaitForChild('Humanoid')
local dance = humanoid:LoadAnimation(animation)
dance:Play()