u/Funny-Wonder99

How do i fix this? (T posing after anim finishes)

If you hold W after going prone it T poses instead of resuming normal animations. The idle/walking is handled by the default Animate script from roblox.

https://reddit.com/link/1tk4pyo/video/5d4n3r7mgl2h1/player

CODE:

humanoid:GetPropertyChangedSignal("MoveDirection"):Connect(function()
if not isCrawling then
return
end

if humanoid.MoveDirection.Magnitude > 0 then
crawlTrack:Stop(0.15)
crawlWalkTrack:Play(0.15)
else
crawlWalkTrack:Stop(0.15)
crawlTrack:Play(0.15)
end
end)

local function crawl(actionName, inputState)
if inputState == Enum.UserInputState.Begin then
for _, track in animator:GetPlayingAnimationTracks() do
track:Stop(0.15)
end
isCrawling = true
crawlTrack:Play(0.15)

elseif inputState == Enum.UserInputState.End then
isCrawling = false

crawlTrack:Stop()
crawlWalkTrack:Stop()
end
end
CAS:BindAction("crawl", crawl, true, Enum.KeyCode.Z)
reddit.com
u/Funny-Wonder99 — 1 day ago