How do I prevent a hat from moving the player with it using CFrame:lerp()?

I’m making something where the player presses Q and a hat moves to the player. The hat is supposed to move with CFrame:lerp() but it takes the player with it (if I lerp 1 stud to the right for the hat the player goes 1 stud to the right as well). How do I stop the player from moving with the lerping and only move the hat?

handle.CFrame = handle.CFrame:Lerp(p.Character.HumanoidRootPart.CFrame,1)
1 Like

I guess you could temporarily remove the weld of the hat which connects it to the character, then put it back once the hat has reached it’s destination.

Change the weld offset, don’t just CFrame lerp the hat because the weld will keep it attached to the head.

Where is the weld offset on a normal weld

Weld.C0, Weld.C1 are a weld’s CFrame properties.

1 Like