local player = game.Players:GetPlayerFromCharacter(onClicked) local hum = player.Humanoid local anim = hum:LoadAnimation(player.Animate.laugh.LaughAnim) function onClicked() anim:Play() wait(2) script.Parent.ClickDetector.MaxActivationDistance = 0 wait(60) script.Parent.ClickDetector.MaxActivationDistance = 20 end script.Parent.ClickDetector.MouseClick:connect(onClicked)
script.Parent.ClickDetector.MouseClick:Connect(function (player) local humanoid = player.Character.Humanoid local anim = humanoid:LoadAnimation(player.Character.Animate.laugh.LaughAnim) anim:Play() cooldown() end) function cooldown() script.Parent.ClickDetector.MaxActivationDistance = 0 wait(60) script.Parent.ClickDetector.MaxActivationDistance = 20 end
Make this in a normal script.
This may not work but here we go...
wait(10.5) local player = game.Players:GetPlayerFromCharacter(onClicked) local hum = player.Humanoid local anim = hum:LoadAnimation(player.Animate.laugh.LaughAnim) function onClicked() anim:Play() wait(2) end script.Parent.ClickDetector.MouseClick:connect(onClicked)
I removed your waits and other useless things because it made it not work, did not test this yet...