How would you use... - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: Help (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=21) +--- Thread: How would you use... (/showthread.php?tid=6043) |
How would you use... - Blandflakes - 06-21-2011 How would you use getPosition()? I'm trying to get it to work but it wont *I'm trying to print the position* I'm pretty bad at lua RE: How would you use... - Jacob__mybb_import1 - 06-21-2011 getPosition() on a tool gives you the position of the end of the tool. RE: How would you use... - Blandflakes - 06-21-2011 (06-21-2011, 01:20 AM)Jacob_ Wrote: getPosition() on a tool gives you the position of the end of the tool. How would I print that out? print(getPosition()) ? [lua] function onClick(btn, pos) if btn == 1 then game.World.cube.Position = getPosition() end end link(script.Parent.MouseDown, onClick) [/lua] |