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

Followup- I get this error every single time I used any piece of code I added. Help?

Asked by 4 years ago
Edited by Ziffixture 4 years ago

The original question is here

I'm repeatedly getting this error, " HumanoidRootPart is not a valid member of Model"

1 answer

Log in to vote
0
Answered by 4 years ago

Going off PrismaticFruits answer in your previous inquiry

local player = game.Players.LocalPlayer
local playerpos = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")

workspace["PART NAME HERE"].Position = Vector3.new(playerpos)   wait(0.5)

instead of doing .HumanoidRootPart do :WaitForChild("HumanoidRootPart") as sometimes the scripts load before the character loads in causing the problem

If you have any more problems contact me via Discord at deth836231#6264 and i can assist you further.

Ad

Answer this question