How to get HumRootPart in StarterPlayerScripts?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    Get HumanoidRootPart in StarterPlayerScripts.
  2. What is the issue? Include screenshots / videos if possible!
    How can i get HumRootPart in StarterPlayerScripts?
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ll tryed get HumRootPart from character. (localscript)
local plr = game.Players.LocalPlayer
--local mouse = plr:GetMouse()
local char = plr.Character or plr.CharacterAdded:Wait()
local humpart = char:FindFirstChild("HumanoidRootPart")
1 Like

You could do

local plr = game:GetService(“Players”).LocalPlayer
name = plr.Name
character = game.Workspace:FindFirstChild(name)
root = character:FindFirstChild(“HumanoidRootPart”)

I’m still not fully certain with what you asking but this is what I think you would need to do

local plr = game.Players.LocalPlayer
–local mouse = plr:GetMouse()
local char = plr.Character or plr.CharacterAdded:Wait()
local humpart = char:WaitForChild(“HumanoidRootPart”)

Use waitforchild instead of findfirst child.