Hello! I wrote a script for the Powder Toy that makes both stickmen invincible, (keeps their lives at 100) but when I try to run the script, it says "StickLife.lua:7: '< eof >' expected near 'end' "
Here is what my script looks like:
tpt.set_console(0) function StickLife() tpt.set_property("life",100,0,stkm) end
You have two extra "end"s. The only time when you need the keyword "end" is when you make a function, and the "end" tells when the function to stop (conditionals and loops also use it, too). "end" is not to be used after every line.