I’ve got a custom rig that I made an animation for, but every time I start walking, there’s a small delay before the walking animation starts. Does anyone have a fix?
Link to video:
Server script in StarterCharacterScripts:
local char = script.Parent
local hum = char:WaitForChild("Humanoid")
local walkAnim = script:WaitForChild("Walk")
local walkTrack = hum:WaitForChild("Animator"):LoadAnimation(walkAnim)
hum.Running:Connect(function(speed)
if speed > 0 and speed < 11 then
if not walkTrack.IsPlaying then
walkTrack:Play()
end
elseif speed > 11 then
if not walkTrack.IsPlaying then
walkTrack:Play()
end
else
if walkTrack.IsPlaying then
walkTrack:Stop()
end
end
end)
No, if you play animation local scripts, roblox allows it to show to everyone.
That’s why the animate script inside our characters is a local script, so there is no delays.
Nevermind, it seems to have been a problem with how I made the animation (one of the keyframes was left blank intentionally, though I figured out that the blank keyframe made it look like there was a delay).