#how would i make my function shorter
1 messages · Page 1 of 1 (latest)
maybe with more of these it'll be shorterlua if dirCondition then dirBoolean=true -- completely pointless detour through a boolean that does nothing other than waste everyone's time, and the script's linecount end if dirBoolean then -- actually do something end more of these is the way to go 
or just put the statements on one line if they're short enough if cond then x=y end
also you could do something like
local forward = uis:iskeydown(whatever)