#Im making a combat system
1 messages · Page 1 of 1 (latest)
you forgot to close alot of things
You forgot to end like a lot of things
In the first script
Where?
.
Like where do i add end?
you also forgot to close a function in the second script
Like this?
** You are now Level 1! **
?
Did you even write anything new?
Yh
Then no
There
Write end) at the bottom left
check ur dms
Like that?
K
No in the first script
I added another end on the first script
oh god.
unlike most languages, lua requires you to add an "end" to every single statement you make. Those statements being any If statements, While and For loops, any event functions, and standalone functions.
...you did not do that at all
thats literally why it doesn't work
Yup. Exactly!
test your additions slowly instead of trying to write a whole system without even testing it once
** You are now Level 5! **
or be like me do it all in one go and have it still magically work 
Though I don't recommend that to a beginner