What the hell is happening to my animation in game?

I tried to make a vaulting script but the animation is broken how do I fix it?

Here is the script:

local plr = game:GetService(“Players”).LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local HRP = char:WaitForChild(“HumanoidRootPart”)
local Hum = char:WaitForChild(“Humanoid”)
local CA = Hum:LoadAnimation(script:WaitForChild(“ClimbAnim”))
local jumpsoun = script.Jump
local ledgeavail = true

while game:GetService(“RunService”).RenderStepped:Wait() do
local r = Ray.new(HRP.Position, HRP.CFrame.LookVector * 7 + HRP.CFrame.UpVector * -5)
local part = workspace:FindPartOnRay(r,char)

if part and ledgeavail then
	if part.Name == "Vault" then
		if Hum.FloorMaterial ~= Enum.Material.Air then
			ledgeavail = false
			local Vel = Instance.new("BodyVelocity")
			Vel.Parent = HRP
			Vel.Velocity = Vector3.new(0,0,0)
			Vel.MaxForce = Vector3.new(1,1,1) * math.huge
			Vel.Velocity = HRP.CFrame.LookVector * 20 + Vector3.new(0,15,0)
			game.Debris:AddItem(Vel, .15)
			CA:Play()
			jumpsoun:Play()
			wait(0.75)
			ledgeavail = true
		end
	end
end

end

1 Like

It’s probably because legs collide with other parts

1 Like

i turned off “cancollide” it still does the same thing

1 Like

and its about the arms not legs

1 Like

i wasnt talking about the flinging i was talking about the arms giving off a weird animation

1 Like

CanCollide does not apply on Body Parts, use CollisionId instead

This animation does not fully override walking animation, this is why it acts weird

yeah thats true bc if i stand in place and vault the animation plays successfully, how do i make it override the walking animation?

Just select all of the body parts and move them back and forward

but my walk animation is set to movement and vault anim to action how come it not override?

Those are have to be done in animator itself, no matter the priority

ill try later ㅤㅤ ㅤ ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ

it didnt work ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ

it also affects other animations

it happend even in another game im making (i used kitsune kit if that helps)

1 Like

Set animation priority to core?

1 Like

dosent work ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ

have you tried disabling the walk animation?

i have no walk animation (in the kitsune game), nothing works

Try changing the Animation weight of the vault


Vault:Play()
Vault:AdjustWeight(1.5)

Thise will make it so it plays over any other animations playing