I was Making a lua script for the powder toy and when I finished it Most of The script was deleted!
idk nothing of lua... devs can help you
ok
Believer0914:
...Most of The script was deleted!
more likely you just forgot to save it lol
i did save it
it could also be an antivirus
try whitelisting the script/taking it out of quarantine (or just disabling the antivirus)
Are you writing your scripts in notepad or something? Get a real programming editor like vscode (or vscodium if you don't like Microsoft collecting data about your programming habits) that allows you to go back to previously saved versions of every file you edit. One more advantage of a programming editor is that you can install a lua language server that has many features like code completion to help you with writing lua software (called IntelliSense in vscode).