Part not being created and positioned above the HumanoidRootPart

Hi, I am trying to make it so that when you die, a DecoyGun is created and positioned above you. But it’s not being positioned properly. Here is my code:

local decoyGun = game.ServerStorage.Items.DecoyGun:Clone()
			decoyGun.Parent = game.Workspace.Lobby
			decoyGun.Orientation =,0,0)
			decoyGun.CFrame = character.HumanoidRootPart.CFrame -- +,2,0)

Which part of the position is incorrect? The rotation, the offset?

Is decoyGun a model or part?

DecoyGun is a part and it’s supposed to be positioned above the player.

Where is it currently being positioned in the code above? I notice that you commented out the Vector3 offset. If you set the CFrame to be the HumanoidRootPart’s CFrame, your gun will be jutting out of the character’s torso area.

The decoygun is supposed to be positioned with the CFrame, but for some reason, it’s not even moving over to the HumanoidRootPart. It’s cloned, but not positioned.

You may need to weld the gun for it to stick in place. It may have been moved to the position you specify, but subsequently fell off since there is nothing anchoring it to the character.

That doesn’t do anything. I moved the parent line over to the end and it’s starting to work. Thanks for the help!