Animation plays buggy

i was making a menu system and found this problem

function MenuGUI()
		--ALIVE
	local goal = {}
	if Player.Character.Humanoid.Health ~= 0 then
		if Menu == false and debounce == false then
			debounce = true
			VMEquip:Play(0)
			PlrEquip:Play(0.3)
			game.ReplicatedStorage.Screen:FireServer(Player)
			
			goal.GroupTransparency = 0

			wait(0.7)
			local GUITween = TweenService:Create(Menugrp, GUITweenInfo, goal)
			GUITween:Play()
			wait(0.7)
			Menu = true
			VMIdle:Play(0.3)
			PlrIdle:Play(0.3)
			debounce = false
		elseif Menu == true and debounce == false then
			debounce = true	
			VMUnequip:Play(0.3)
			PlrUnequip:Play(0.3)	
			VMIdle:Stop(0.3)
			PlrIdle:Stop(0.3)
			goal.GroupTransparency = 1
			local GUITween = TweenService:Create(Menugrp, GUITweenInfo, goal)
			GUITween:Play()	
			wait(1.02)
			game.ReplicatedStorage.Screen:FireServer(Player)
			Menu = false
			debounce = false
		end
	else	--DEAD
		if Menu == false then
			goal.GroupTransparency = 0
			local GUITween = TweenService:Create(Menugrp, GUITweenInfo, goal)
			GUITween:Play()
			Menu = true
		elseif Menu == true then	
			goal.GroupTransparency = 1
			local GUITween = TweenService:Create(Menugrp, GUITweenInfo, goal)
			GUITween:Play()	
			Menu = false
		end
	end

end

what should i change to make it smooth

2 Likes

whats not smooth about it it looks fine to me

1 Like

i agree, i think its fine just the way it is maybe just make the own animations smoooother

it plays smooth on ivewmodel but not on the player its like bugging out when start to play idle

it like bugs out when it gets to idle from equip animation

it looks like its just the equip animation overlapping with the idle, try calling :Stop() on the equip when the idle starts playing.

or maybe make a combined animation so you dont have to stop and you can use that device when running..

so make a run and a hold animation combined so it looks better

1 Like

stopping the equip animation would not stop the idle animation…

1 Like

i just solved it with changing plridle:Play(0.3) to
(0)

2 Likes

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