Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local startupContent = [[
- print("Hello")
- ]]
- local startupFilePath = "startup"
- -- Open the startup file in write mode
- local file = fs.open(startupFilePath, "w")
- if file then
- file.write(startupContent)
- file.close()
- print("Startup file overridden. Now it will say 'Hello' on startup.")
- else
- print("Failed to override startup file.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement