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?