I’m working on this code to basically have a team selection menu and I have a error.
[ERROR] gamemodes/frightnight/gamemode/cl_init.lua:63: function arguments expected near '=' 1. unknown - gamemodes/frightnight/gamemode/cl_init.lua:0
Here is the line (first line is 63):
close_button:DoClick = function() TeamMenu:Close() end
I’m confused, is there arguments I’m missing. I thought this is a way to make a close button close when you press it.
Thanks, in advance I’m new to GLua.