Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cmp= require("component")
- g=cmp.glasses
- p=g.addTextLabel().getPosition()
- g.removeAll()
- io.write("Введите X: ")
- x=io.read() xs=tonumber(x)
- io.write("Введите Y: ")
- y=io.read() ys=tonumber(y)
- io.write("Введите Z: ")
- z=io.read() zs=tonumber(z)
- io.write("Введите Размер: ")
- s=io.read() s=tonumber(s)
- io.write("Введите R: ")
- r=io.read() r=tonumber(r)
- io.write("Введите G: ")
- g1=io.read() g1=tonumber(g1)
- io.write("Введите B: ")
- b=io.read() b=tonumber(b)
- io.write("Введите текст: ")
- text=io.read() t=tostring(text)
- for x=xs-p, xs+p do
- for y=ys-p, xs+p do
- for z=zs-p, zs+p do
- tx=g.addFloatingText()
- tx.set3DPos(x,y,z)
- tx.setColor(r,g1,b)
- tx.setScale(s)
- tx.setText(t)
- end
- end
- end
Add Comment
Please, Sign In to add comment