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

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

: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.

0
None of those are issues. Line 4 works fine, and the spacing is fine. theCJarmy7 1293 — 6y
0
It'd help if I had the error code for the script EnderGamer358 79 — 6y
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. EnderGamer358 79 — 6y
0
where is your script located? Despayr 505 — 6y
Ad

Answer this question