Roblox animation playing different than in the animator?

I made an animation for my fps game but when the animation plays the arms dont move correctly, I think this is because my position script.

In animator:


In game:

script:

RunService.RenderStepped:Connect(function(step)
	local increment = RATE_PER_SECOND * step
	local camframe = game:GetService("Workspace").CurrentCamera.CFrame
	script.Parent.PrimaryPart.CFrame = camframe + camframe.LookVector * 0 + camframe.UpVector * 0 + camframe.RightVector * 0
	script.Parent.PrimaryPart.CFrame = script.Parent.PrimaryPart.CFrame:Lerp(camframe, 0.0001)
	script.Parent["Left Arm"].BrickColor = game.Workspace:FindFirstChild(playerName):WaitForChild("Body Colors").LeftArmColor
	script.Parent["Right Arm"].BrickColor = game.Workspace:FindFirstChild(playerName):WaitForChild("Body Colors").RightArmColor
	game.Players.LocalPlayer.PlayerGui:WaitForChild("UI").Main.Ammo.Text = script.Parent.Ammo.Value
	if game.Workspace:FindFirstChild(playerName):FindFirstChild("Shirt") then
		script.Parent["Left Arm"].Decal.Texture = game.Workspace:FindFirstChild(playerName).Shirt.ShirtTemplate
		script.Parent["Right Arm"].Decal.Texture = game.Workspace:FindFirstChild(playerName).Shirt.ShirtTemplate
	end
end)

To be honest it’s probably the position of the gun or the animation is too long, or just maybe a roblox bug which will be fixed.

Its not I have animated for a long time and this is my first fully scripted framework, I believe this is a bug with my code.

Im dumb just had to set it to action2…

1 Like