local debounce = true local menu = game.StarterGui.Menu local Players = game:GetService("Players") local player = Players.LocalPlayer local target = game.Workspace:WaitForChild("Lexington")
script.Parent.MouseButton1Click:connect(function() if debounce == true then debounce = false player.Character.Humanoid.Head.CFrame = target.CFrame * CFrame.new(0,3,0) end end)
I keep getting an error that these different parts aren't a valid member of Humanoid. Can anyone help?
The limbs of a Character are not part of the Humanoid
they are part of the Character
. Furthermore, to answer your question, I personally like to use the HumanoidRootPart
as it is in the center of the player and used in both R15 and R6.
HumanoidRootPart is in both R6 and R15. In your case I would use this as it is the most convenient.