Hi,
I’m trying to make a character spawn animation play immediately on spawn, with no visible delay. The animation asset is already preloaded on the loading screen using ContentProvider:PreloadAsync.
Even with Humanoid:LoadAnimation() + Play(0,1,1), I still notice a slight delay before the animation starts. Is there a reliable way to guarantee that the animation starts instantly on spawn for all players?
Thanks in advance!
CustomDeploy.Function = function(plr:Player, model:Model)
local humanoid =
model:FindFirstChildOfClass("Humanoid") or
model:WaitForChild("Humanoid")
local root =
model.PrimaryPart or
model:FindFirstChild("HumanoidRootPart")
local deploySound = Assets:WaitForChild("Deploy"):Clone()
deploySound.Parent = workspace.TEMP
deploySound:Play()
cleaner:AddItem(deploySound)
root.Anchored = true
model.Parent = workspace
task.wait(.5)
local spawnAnimation = humanoid:LoadAnimation(
Assets:WaitForChild("Spawn")
)
spawnAnimation:Play()
end