This script is not now avaible. The problem with the script was solved
maybe instead of doing the anim:Stop() try something like:
for i, v in ipairs(char.Humanoid.Animator:GetPlayingAnimationTracks() do -- or maybe its pairs, i forgor
if v.AnimationId == "ID of the animation you want to stop" then
v:Stop()
end
end)
Additionally, you could try something like instead of doing char:WaitForChild(“Humanoid”):LoadAnimation() you could just use the “hum” variable you already created on line 5 of the local script. AKA hum:LoadAnimation(). There is no reason to use WaitForChild() on the same instance twice
I will try it later. I will tell you if it worked
But have problem with 2 above scripts. Because They work but the anim is not stopping which was playing while flying and body velocity is not deleting but I can fix it.
you are destroying the BodyVelocity on the client, not on the server.
if char.HumanoidRootPart:FindFirstChild("BodyVelocity") then
humanoid:SetStateEnabled("GettingUp")
char:WaitForChild("Animate").Enabled = true
char.HumanoidRootPart:WaitForChild("BodyVelocity"):Destroy()
end
In order for something to actually be deleted, it has to be deleted on the server.
I changed time of enabling animate script.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.