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 6 years ago
Edited 6 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 — 6y
0
Yeah that works thanks! DevAwesomely 15 — 6y
0
np ^-^ User#20388 0 — 6y

Answer this question