Animations Glitching Out Crazy

I launched my game and noticed my animations not behaving the way they’re supposed to be. They were working fine yesterday but now they’re just a glitched mess. For some reason, this problem only exists in the client and not in Studio. This is happening to all animations excluding the default animations (idle, running, jumping, etc.)

normal_studio
[How it’s supposed to look like (captured from Studio)]

glitched_client
[What it looks like in game (captured from Client)]

I’ve done searches on Google and on the DevForum about “glitchy animations” and “animations broken” but I see nothing related to my problem. I’ve tried re-coding but it hasn’t solved this issue.

If anyone’s curious, here’s the code but I doubt the problem lies here since the animations were fine yesterday with the same code I have right now:

function equip()
	local character = player.Character
	local humanoid = character:FindFirstChild("Humanoid")
	if humanoid then
		idleAnimation = humanoid:LoadAnimation(tool.Animations.Idle)
		attackAnimation = humanoid:LoadAnimation(tool.Animations.Attack)
	end
	remotes.Equip:FireServer() -- change the player's health on server
	idleAnimation:Play()
end

function basicAttack()
	local playerData = player:WaitForChild("PlayerData")
	local energy = playerData.CombatValues:FindFirstChild("energy")
	if energy and energy.Value >= weaponStats.energyUse then
		if debounce == false then
			debounce = true
			remotes.Attack:FireServer(player.Character.HumanoidRootPart.CFrame) -- send cframe for attack pattern compensation
			attackAnimation:Play()
			if weaponStats.activeTime ~= nil then
				wait(weaponStats.chargeTime + weaponStats.activeTime)
			else
				wait(weaponStats.chargeTime)
			end

			wait(weaponStats.recoveryTime)
			debounce = false
		end
	end
end
2 Likes

The animations fixed itself, I’m assuming it was a bug out of my control

It was a like universal bug on Roblox specifically targeting R6 rig characters and some R15 rig characters. I have an idea on what the bug was. Perhaps something to do with network ownership. Your animations look nice, keep the good work up.

Try to use animator:LoadAnimation for better replication

This is still happening to me, it seems to be connected to the curve editor