IdleAnimation broken? Not playing as intended

I’m using the torso, attaching it to the Motor6D for my railgun animation which would have the end result of this:

However, I end up with the result of this despite already attaching the Motor6D from the player’s torso to the bodyattch. How do I fix it so that it’ll play the animation correctly?

image

Code for the tool:

local Railgun = script.Parent
local ShootPart = Railgun.ShootPart

Railgun.Equipped:Connect(function()
	local Idle = Railgun.Parent.Humanoid:LoadAnimation(script.Idle)
	local Fire = Railgun.Parent.Humanoid:LoadAnimation(script.Fire)
	
	Idle.Priority = Enum.AnimationPriority.Action
	Fire.Priority = Enum.AnimationPriority.Action4
	
	local ToolGrip = Railgun.Parent.Torso.BodyAttch
	ToolGrip.Part1 = Railgun.BodyAttch
	
	Idle:Play()
	
	Railgun.Activated:Connect(function()
		Fire:Play()
	end)
	
end)

BodyAttch hierachy:

Manipulating the CFrame of the BodyAttch and it’s orientation fixed the issue. Other methods do not work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.