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

How to get any part inside of player in local script?

Asked by 5 years ago
Edited 5 years ago

Hello.

I was trying to get player's HumanoidRootPart inside of player, but it doesn't work... Here is the local script code.

local hrp = game.Players.LocalPlayer.Character.HumanoidRootPart

And this is what it says in output --> HumanoidRootPart is not a valid member of Model

Help.

0
:WaitForChild('HumanoidRootPart'), the HRP might not have been created yet User#20388 0 — 5y
0
Yeah that works thanks! DevAwesomely 15 — 5y
0
np ^-^ User#20388 0 — 5y

Answer this question