I'm trying to fix something that doesn't give any errors in output. Everything works fine in solo, but when I test with servers, idk how to use breakpoints. How do i use the debugger??
An easy way to find a breakpoint in your script is using print()s. E.G
1 | local num = 5 |
2 | print ( "ok" ) |
3 | if num = = 5 then |
4 | print ( "ok2" ) |
5 | num = 3 |
6 | if num = = 4 then |
7 | print ( "ok3" ) |
8 | end |
9 | end |
In this case, it will print up to "ok2", but not "ok3".