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

How do I get the CFrame of a HumandiodRootPart?

Asked by
proo34 41
5 years ago
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!

0
Make sure it's spelled, "HumanoidRootPart" Trollapse 89 — 5y

1 answer

Log in to vote
1
Answered by
royaltoe 5144 Moderation Voter Community Moderator
5 years ago
game.Players.PlayerAdded:Connect(function(Player)
    Player.CharacterAdded:Connect(function(Character)
        local HRP = Character:WaitForChild("HumaniodRootPart")
    print(HRP.CFrame)
    end)
end)
0
hi did this work for you? royaltoe 5144 — 5y
0
if so please mark as solved, if not then please comment why royaltoe 5144 — 5y
0
comment that it didn't work royaltoe 5144 — 5y
0
Well, all you did was change the local. I had the local going globally so this wasnt useful to me. proo34 41 — 5y
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? royaltoe 5144 — 5y
Ad

Answer this question