lua

By motkke – Custom level – uploaded 26 Aug 2024 from Android
PlayEdit
Issues trying to play levels? Troubleshoot issues playing levels

can anyone help with this lua i dont know whats the problem with the script

Views: 60 - Downloads: 23 - Level ID: 1040

Comments

7 months ago motkke: Thank you
10 months ago ROllerozxa: I have now also started this page on the wiki which may be of use, small bite-sized examples for working with LuaScript in addition to the API reference that is currently on the wiki.
10 months ago ROllerozxa: The code only runs once on startup right now when it's not in any callback function. To have it run on every tick which I assume is what you'd want you'll need to put it inside of the step() function that you define in your code. This is available as a boilerplate when you first create a LuaScript object but the information about callbacks are also available on this page on the wiki.