Any better way to base animations on a player's body package?

So whenever someone has a man or woman 3.0 package, all of the animations in the player tools break and look terrible. I know this isn’t a great method, but my plan was to just find out what package they’re using based on the mesh of the player’s hand, and then if it is a woman/man one, to use tools from a certain pack, and if the player’s hand is neither man/woman package, then use another set of tools. I get this is very flawed, since players will mix and match their avatar parts, but it’s all I could think to do.

But I do have the issue now where it doesn’t seem to be working, at all.

local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()



script.Parent.MouseButton1Click:Connect(function()
	
	if player.Character.LeftHand.MeshID == "https://assetdelivery.roblox.com/v1/asset/?id=8997173998" then
		-- Function for if Player is using man/woman package
		
		for _, Child in pairs(player.Backpack.ToolsT:GetChildren()) do
			Child.Parent = player.Backpack 
		end  
		player.Backpack:FindFirstChild("ToolsB"):Destroy()
		
	else	if player.Character.LeftHand.MeshID == "https://assetdelivery.roblox.com/v1/asset/?id=8650168403" then

			for _, Child in pairs(player.Backpack.ToolsT:GetChildren()) do
				Child.Parent = player.Backpack 
			end  
			player.Backpack:FindFirstChild("ToolsB"):Destroy()
				
	else
		
		-- Function for if Player is using other package

		for _, Child in pairs(player.Backpack.ToolsB:GetChildren()) do
			Child.Parent = player.Backpack 
		end  
		player.Backpack:FindFirstChild("ToolsT"):Destroy()

		end
	end
	
	
end
)
1 Like