function onClicked(playerWhoClicked) local Spiral = Instance.new("Animation") Spiral.AnimationId = "http://www.roblox.com/Asset?ID=227009893" local animTrack = po.Character.Humanoid:LoadAnimation(Spiral) animTrack:Play() end MouseClick:connect(onClicked)
It should play once I click.
First, you would need to put a ClickDetector
in the part you want to click in order for this function to fire. (If it is a GUI, you need a TextButton)
If it isn't a part (Assuming it is a GUI), you need to do this as your connecting line:
TextBox's Location.MouseButton1Click:connect(onClicked)
Otherwise, if it is a part, you need to do this as your connecting line:
ClickDetector's Location.MouseClick:connect(onClicked)
NOTE: Replace (TextBox's Location) and (ClickDetector's Location) with their location (Pretty obvious LOL)