How would you use...
#1
How would you use getPosition()?

I'm trying to get it to work but it wont Sad

*I'm trying to print the position* I'm pretty bad at lua Tongue
Reply
#2
getPosition() on a tool gives you the position of the end of the tool.
Reply
#3
(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]
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)