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

How do I get the CFrame of a HumandiodRootPart?

game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        UTplr = Character:WaitForChild("HumaniodRootPart")
    end)
end)

I want to access the properties of HumaniodRootPart. It is in the characters model. I thought what I had was how you access it, but I seem to be wrong. May I have some help on figuring this out?

Thank you!

1 comment

0

Make sure it's spelled, "HumanoidRootPart"

1 answer

game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        local HRP = Character:WaitForChild("HumaniodRootPart")
	print(HRP.CFrame)
    end)
end)

5 comments

0

hi did this work for you?

0

if so please mark as solved, if not then please comment why

0

comment that it didn't work

0

Well, all you did was change the local. I had the local going globally so this wasnt useful to me.

0

i added an example of how you access the HRP with the print statement. does it error when you print/not show the cframe?

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