Some animations are breaking my welds

I have a hockey game where players can perform skill moves, the problem is that when some of these moves occur the weld that connects the puck to the player’s stick is broken.

I know that this is due to the animation because I singeled out every single line of code from the skill moves and it would only break when the animation plays, example of the code:

			slideRight:Play() --the animation that breaks the weld
			task.wait(0.175)
			local velo = Instance.new("BodyVelocity")
			velo.Velocity = SomeMath
			velo.MaxForce = SomeMoreMath
			velo.Parent = tool.Parent:FindFirstChild("HumanoidRootPart")
			Debris:AddItem(velo, 0.25)	

The weld itself is a default roblox class weld that is setup as such:
image
Puck being the puck itself and PuckWeld being a location on the stick for the puck to weld to

The confusion thing is that only about 3 of these skill move animations will break the weld on the puck while the others do not.

Example of puck weld breaking:
https://gyazo.com/cc28ae20eedd774042f9ffee6b9eb62f
Example of puck weld not breaking with a different skill move: https://gyazo.com/72293da70fe4562789172905ec89abad

The odd thing is that all these skill moves used to perform normally until one day they just suddenly didn’t which leads me to believe that some sort of Roblox update broke this, if anyone has an ideas on how to fix this any help would be greatly appreciated! Thanks!

1 Like