Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if getKeyState("mouse1") then
- if #currentLine == 0 then
- table.insert(currentLine, {x, y, z})
- else
- local xd = x - currentLine[#currentLine][1]
- local yd = y - currentLine[#currentLine][2]
- local zd = z - currentLine[#currentLine][3]
- local distance = math.sqrt(xd*xd + yd*yd + zd*zd)
- if distance > 2 then
- table.insert(currentLine, {x, y, z+0.1})
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement