by selecting a tool, this script moves the warrior (line 2) even though it makes him go to the edge of the map and fall off (that is a problem also)
how could i make this work by just clicking the mouse on the baseplate with no tool selected?
tool = script.Parent
warrior = game.Workspace.Warrior
playerMouse = game.Players.LocalPlayer:GetMouse()
tool.Equipped:connect(function(m)
m.Icon = "http://www.roblox.com/asset/?id=79658449"
m.Move:connect(function()
print("X Mouse Position: "..playerMouse.X.."",", ","Y Mouse Position: "..playerMouse.Y.."")
warrior.Humanoid:MoveTo(Vector3.new(playerMouse.X,playerMouse.Y))
end)
end)
i tried playerMouse:connect(click) it didnt even budge the warrior except with cframe and preset numbers
thanks to all that help me :)

2 comments
this worked. thanks :) just need to make it animated instead of just dragging his feet, but i think i can figure that out
one problem though. it only moves one warrior ( i had 3 in the workspace) it only moved one. i tried :getchildren if name = warrior and stuff. it either broke the script or still moved one.