How would I make the player face a part?

Hi developers, I have been trying to make the player face a part when a button is clicked!

Here is my script

	local player = players.LocalPlayer
	local character = player.Character or player.CharacterAdded:Wait()
	
	script.Parent.MouseButton1Click:Connect(function()
		character.HumanoidRootPart.CFrame = CFrame.lookAt(character.HumanoidRootPart.Position, Vector3.new(game.Workspace.BombBolt.Parts.C4.Position.X, character.HumanoidRootPart.Position.Y, game.Workspace.BombBolt.Parts.C4.Position.X.Position.Z))
	end)

I think the issue is that you typed “MouButton1Click”. Try MouseButton1Click.

Also, you’re probably going to want to use character:PivotTo() instead of character.HumanoidRootPart.CFrame

u might want to use body gyro. set the CFrame of the BodyGyro to target’s