a LOOOOOOONG time ago, models had a function called Model:move(position)
it just teleported the root part (or primarypart) of the model to that position
nowadays, that function is called Model:MoveTo(position), but the old function still exists so that old games don't break
however, when you index an instance, it prioritizes properties, functions, and events over children of that instance
you can confirm this for yourself by running this code in the command bar
local model = Instance.new("Model")
local moveTo = Instance.new("Part")
moveTo.Name = "MoveTo"
moveTo.Parent = model
print(model.MoveTo)
so, for example, if you put a part called "Name" in a model, and tried to get it using Model.Name, it wouldn't give you that part, but the actual name of the model
in your case, when you try to get WashRoom.move, it doesn't give you the part you named move, but rather the function move
really, all you have to do to fix the problem is rename "move" to something else
5 comments
Basically what the error is saying is that kuro is a function that has been set AFTER the line 2 was set. Hope that helps.
how is that possible? these 6 lines are the only code in the script.
Try setting move.Position to a variable and put the variable in parenthesis.
okay, ive tried it. The error still persists, but the error is on line 2 (where I put the variable), instead of line 6
The problem is Humanoid is not a physical body part. Use HumanoidRootPart instead.