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

why doesn't the part move when i use moveto?

this script looks like it should work but it's outdated

while true do
	wait (1)
	 player = game.Workspace.AimPart
	print (player)
	script.Parent.Humanoid:MoveTo (player.Position)
end

1 answer

:First of all, you should add a .Name to the end of (player) in line 4. That could be holding up the rest of the script, if not the error's in line 5. Try getting rid of the space between the :MoveTo and the (player.Position), and see if that works.

4 comments

0

None of those are issues. Line 4 works fine, and the spacing is fine.

0

It'd help if I had the error code for the script

0

The problem could be that you're using a humanoid, and that humanoids need all the basic parts to work (Such as a humanoidrootpart, a head, a torso and such). If you haven't added these things I'd try that.

0

where is your script located?

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