Currently trying to polish up my dash script with animations, i noticed the first time the dash animation will be extremely laggy
I'm currently trying to preload animations with this code
local function preloadAnimations(player)
local animationsFolder = RPS:WaitForChild("Assets"):WaitForChild("Animations")
local animationsToPreload = {}
-- Collect all animations in the folder
for _, animation in pairs(animationsFolder:GetChildren()) do
if animation:IsA("Animation") then
table.insert(animationsToPreload, animation)
end
end
-- Preload animations using PreloadAsync from ContentProvider
ContentProvider:PreloadAsync(animationsToPreload)
end```
I still have the same issue and im just a bit stumped here
just for reference above code should be one of the first things that run when my player joins
** You are now Level 1! **