i made my own viewmodel n animations n whenever i equip a weapon the animation is delayed
this is the code i have for it
if Modules.Game:FindFirstChild(Item) then
Framework.Module = require(Modules.Game:FindFirstChild(Item))
if Rigs:FindFirstChild(Item) then
Framework.Viewmodel = Rigs:FindFirstChild(Item):Clone()
Framework.Viewmodel.Parent = Camera
pcall(function()
Framework.Viewmodel:FindFirstChild("AnimationController").Animator:LoadAnimation(Framework.Viewmodel:FindFirstChild("Equip_Animation")):Play()
end)
local Crosshair = Framework.Viewmodel:FindFirstChild("crosshair")
if Crosshair then
Crosshair.Parent = Player.PlayerGui
end
LoadSlot_Event:FireServer(Framework.Module.Fire_Sound, Framework.Viewmodel.Name)
local Equip_Sound = Framework.Viewmodel:FindFirstChild("Equip")
if Equip_Sound then
Equip_Sound:Play()
end
end
end