Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is a valid member of both R6 and R15 Humanoid's?

Asked by 5 years ago

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?

2 answers

Log in to vote
0
Answered by 5 years ago

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.

Ad
Log in to vote
0
Answered by
Fewice 22
5 years ago

HumanoidRootPart is in both R6 and R15. In your case I would use this as it is the most convenient.

Answer this question