Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.