Why does the bin not go where it is in the Animation?

I have an animation that clearly shows the bin in hands its wielded and all that stuff. Here is a video of the problem:

All help appreciated

Here is code used:

workspace.House.ClothingBinObject.ClickDetector.MouseClick:Connect(function()
	if Stage.Value == 2 then
		workspace.House.ClothingBinObject.ClickDetector.MaxActivationDistance = 0
		
		for _, v in pairs(workspace.House.ClothingBinObject:GetChildren()) do
			if v:IsA("Part") then
				v.CanCollide = false
				v.Anchored = false
			end
		end
		
		workspace.House.ClothingBinObject.Parent = game.Players.LocalPlayer.Character

		local AnimTrack = game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Animator:LoadAnimation(script.BinAnimation)
		AnimTrack:Play()

		Stage.Value = 3
		NavigatedHighlight.Parent = workspace.House.Washer
	end
end)

It doesn’t look like you’ve attached the bin to the character in any way. I recommend attaching it to the root part with either a motor6d or a weld then editing the C0 to your liking.

1 Like

Oh i just realized I edited the weld before the animation, I guess i have to script that then itll work, thanks for the feedback ill give the results in a few mins

I did this:

	local weld = Instance.new("Motor6D", character:WaitForChild("HumanoidRootPart"))
		weld.Part0 = character:WaitForChild("HumanoidRootPart")
		weld.Part1 = character.ClothingBinObject.Bottom
		

but now it just moves my character to the bin and I dont even see the bin either

I tried this and it actually worked completely fine for me, so I’m not really sure what your problem is. However, I noticed that you’re handling this on the client, meaning that it’s not replicating to the server. Even if it did work, nobody would be able to see it. Perhaps changing to server handling might fix the problem, but idk otherwise. The other thing is making the bin massless might fix it if for some reason the bin had an absurd amount of mass.
Also, it seems like the bin is a model. How are the parts of the bin attached? Is bottom the PrimaryPart of the model?

1 Like

Turns out its because i changed the name of the weld, and it was anchored. Should probably pay more attention to that, but thanks for the help!

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