how can i disable the idle animations while my animations are playing? all of the custom made animations are hampered by the default animations, is there a way to disable them while mines are playing?
local replicatedStorage = game:GetService("ReplicatedStorage")
local players = game:GetService("Players")
local Debounce = {}
local DebounceDuration = 5
local function fn(player)
local character = player.Character or player.CharacterAdded:Wait()
if character == nil then return end
if not character:FindFirstChild("Humanoid") then return end
if character.Humanoid.Health == 0 then return end
if Debounce[player] then return end
Debounce[player] = true
local BangAni = character.Humanoid.Animator:LoadAnimation(script.Bang)
```
(Stop Default animations here)
```lua
BangAni:Play()
task.spawn(function()
wait(DebounceDuration)
if Debounce[player] then
Debounce[player] = nil
``` (reEnable them here)
```lua
end
end)
end
replicatedStorage.PUMP.OnServerEvent:Connect(fn)