Created
May 30, 2024 09:17
-
-
Save TheBunnyMan123/1efad225e3f738cb0e9d1e382741498c to your computer and use it in GitHub Desktop.
Setup ComputerCraft GPS servers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("X?") | |
x = tonumber(read()) | |
print("Y?") | |
y = tonumber(read()) | |
print("Z?") | |
z = tonumber(read()) | |
file = fs.open("/startup.lua", "w") | |
file.write('shell.run("gps", "host", ' .. x .. ', ' .. y .. ', ' .. z .. ')') | |
file.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment