Advertisement
DOGGYWOOF

disk overide

Jan 6th, 2024
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. local startupContent = [[
  2. print("Hello")
  3. ]]
  4.  
  5. local startupFilePath = "startup"
  6.  
  7. -- Open the startup file in write mode
  8. local file = fs.open(startupFilePath, "w")
  9. if file then
  10. file.write(startupContent)
  11. file.close()
  12. print("Startup file overridden. Now it will say 'Hello' on startup.")
  13. else
  14. print("Failed to override startup file.")
  15. end
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement