function onClicked(playerWhoClicked)
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=218069004"
local animTrack = Humanoid:LoadAnimation(animation)
animTrack:Play()
animTrack:Play()
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
The animation should play when the brick is click but it doesnt, could you tell me whats wrong with it?

2 comments
YOu haven't set the parent of the player who clicked it make line 3: local animation = Instance.new("Animation", playerWhoClicked.Humanoid)
Nope, sorry still not working...