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
I'm trying to get it to work but it wont
*I'm trying to print the position* I'm pretty bad at lua
How would you use...
|
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
06-21-2011, 01:20 AM
getPosition() on a tool gives you the position of the end of the tool.
(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] |
« Next Oldest | Next Newest »
|