#how would i make my function shorter

1 messages · Page 1 of 1 (latest)

dense vector
#

it works but i dont want it to be this long

#

also ignore the script editor colors

versed loom
#

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 Thumbs

#

or just put the statements on one line if they're short enough if cond then x=y end

sage terrace
#

also you could do something like
local forward = uis:iskeydown(whatever)

stoic magnet
#

use tables

#

instead of variables, makes it much easier to scale