Try this!:D
bin=script.Parent
function OnButton1Down(mouse)
game.Workspace.Troop.Humanoid:MoveTo(mouse.Target.Position,game.Workspace.Base)
end
function OnSelected(mouse)
print("Selected")
end
bin.Selected:connect(OnSelected)
bin.Button1Down:connect(OnButton1Down)
----Credit to name1
if that works,Youll make the troop walk wherever you click!:D |