Viewmodel animation transition from the original model position to the animation

I want the animation to immediately be in the position of the animation I had prepared instead of it transitioning from the original model position (if that’s what you call it) to the animation pose

As I said above the model transitions from its original position of the model to the animation pose

I already have tried looking for a solution on this site earlier but there may be one but I haven’t found it yet

here’s the code i am using and the module script if it could do any help


local Viewmodel = game.ReplicatedStorage:WaitForChild("Default"):Clone()
local M13 = game.ReplicatedStorage:WaitForChild("M-13"):Clone()
local AX_50 = game.ReplicatedStorage:WaitForChild("AX-50"):Clone()
local Anim = game.ReplicatedStorage:WaitForChild("Animations")

local MainModule = require(game.ReplicatedStorage.ModuleScript)

Viewmodel.Parent = game.Workspace.Camera

	MainModule.update(Viewmodel, Dt)

	if input.KeyCode == Enum.KeyCode.One then
		M13.Parent = Viewmodel
		local Animator ="Animator")
		Animator.Parent = Viewmodel.AnimationController
		local Animation = Anim["M13 anim"].Idle
		Animation.AnimationId = "rbxassetid://11809783468"
		local AnimationTrack = Viewmodel.AnimationController:LoadAnimation(Animation)

		if Viewmodel:FindFirstChild("AX-50") then
			Viewmodel:FindFirstChild("AX-50").Parent = game.ReplicatedStorage
		local M6D = Viewmodel.HumanoidRootPart.Handle
		M6D.Parent = Viewmodel.HumanoidRootPart
		M6D.Part0 = Viewmodel.HumanoidRootPart
		M6D.Part1 = M13.Components.Handle
	elseif input.KeyCode == Enum.KeyCode.Two then
		AX_50.Parent = Viewmodel
		local Animator ="Animator")
		Animator.Parent = Viewmodel.AnimationController

		local animation = Anim["AX-50 anim"].Idle
		animation.AnimationId = "rbxassetid://11809782293"
		local AnimationTrack = Viewmodel.AnimationController:LoadAnimation(animation)
		if Viewmodel:FindFirstChild("M-13") then
			Viewmodel:FindFirstChild("M-13").Parent = game.ReplicatedStorage
		local M6D = Viewmodel.HumanoidRootPart.Handle
		M6D.Part0 = Viewmodel.HumanoidRootPart
		M6D.Part1 = AX_50.Components.Handle



local module = {}

function module.update(viewmodel, dt)
	viewmodel.HumanoidRootPart.CFrame = game.Workspace.Camera.CFrame

return module

Thank you if you guys have helped me find a fix

So… Unfortunately there’s no way to fix that.

Most viewmodel animators know well to make the “original viewmodel position” be the idle animation, basically in simple terms, they position/make the viewmodel’s arms look like it’s idle. This way, when the viewmodel gets inserted, it’s already in the idle pose with no delays.

Hope I helped. Thanks for marking me as a solution.

If you’re reusing the same viewmodel asset across guns/items/whatever, it would be cumbersome to create new viewmodels with the idle pose of the needed gun, furthermore if you need to edit the idle pose. I would just play the idle AnimationTrack with a fadetime of 0, although sometimes you can still see the base pose of the viewmodel for a split second before it transitions instantly into the idle animation, making it an issue of the animation not loading fast enough before it needs to be played. A proper fix to this issue would be to just preload the animations before you play the animation.

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