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
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
: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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
None of those are issues. Line 4 works fine, and the spacing is fine.
It'd help if I had the error code for the script
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.
where is your script located?