local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local animation =
Instance.new ("Animation")
animation.AnimationId = "rbxassetid://твой айди анимации"
local animTrack = humanoid:LoadAnimation(animation)
local cooldown = false
local cooldownTime = 1 -- секунды
mouse.Button1Down:Connect(function()
if not cooldown then
animTrack:Play()
cooldown = true
wait(cooldownTime)
cooldown = false
end
end)
Замени айди на айди твоей анимации.