I need some help with this script. PLSS!
player = game.Players.LocalPlayer.Character.Torso.CFrame.p --the script is a local one, and is located in the StarterPlayerScripts file print(player) repeat wait(.1) human = game.Workspace.Dummy --dummy stands for the humanoid model human.Humanoid.WalkToPoint = Vector3.new(player) until human==nil
The problem is the humanoid keeps walking to the 0,0,0 position in the map when the player joins. But when you specify the humanoids WalkToPoint as a number, rather than a variable it works. HALP!!!!!!!!
It looks like player is already in a vector try doing
player = game.Players.LocalPlayer.Character.Torso.CFrame.p --the script is a local one, and is located in the StarterPlayerScripts file print(player) repeat wait(.1) human = game.Workspace.Dummy --dummy stands for the humanoid model human.Humanoid.WalkToPoint = player until human==nil
You have a few issues here
player
is already a Vector3 value. Don't do that.
The value of player
is not going to change. You may want to consider instead setting a variable to be the Torso and making the AI move to the Torso.Position
All players are trying to control this one single dummy Humanoid, over a network. Bad idea. Move it to a server script and choose a Player to pick on.