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

How do I fix the HumanoidRootPart not a valid member of Player issue?

It's explanatory. I don't know how to fix this... :(

wait(0.4)
script.Parent.Parent.InGameUI.Triggert.BackgroundTransparency = 0
wait(4)
script.Parent.Phase1NS:Stop() --SF Null Space
script.Parent.Phase2NS:Play() --SF Fist Bump (Null Space)
target  = CFrame.new(2020.615, 163.047, -339.609) -- position
game.Players.LocalPlayer.HumanoidRootPart.CFrame = target
script.Parent.Parent.InGameUI.Triggert.BackgroundTransparency = 0.1
wait(0.4)

2 comments

0

Use R6 avaitor, it will be better

0

Since that is a R15 Level, I can't do R6. Sorry.

1 answer

✓ Accepted answer

You are trying to get the HumanoidRootPart from the Player, but the HumanoidRootPart is actually in the character model.

you can try

game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = target

that way after it finds the player, it will get the character model and then get the HumanoidRootPart.

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