lua

motkke - Custom level - Aug 26, 2024 from Android
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: 58 - Downloads: 22 - Level ID: 1040

Comments

1 month ago motkke: Thank you
4 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.
4 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.