• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Lua error. My file name is trans.lua. the error is - trans.lua:1: '=' expected (1 Viewer)

s4molet1k

Newcomer
Joined
Apr 3, 2022
Messages
2
Reaction score
0
function onEvent(name, value1, value2)
setProperty('trans.visible', true);
objectPlayAnimation('trans', 'cool', true);
end

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

It is a code for a transition in friday night funkin song. it is a custom event. I can't deal with the error message, it just crashes over and over again, i've tried everything.
 

Attachments

  • unknown.png
    unknown.png
    14.3 KB · Views: 5

Herly Quijano

Newcomer
Joined
Mar 19, 2021
Messages
77
Reaction score
10
Hey, why did you add the ';'?, lua don't use it.

Edit: Nah, you can use it, I think is your code convention.
 
Last edited:
Top