#State Machine

6 messages · Page 1 of 1 (latest)

hidden saffron
#

If you want to make it simpler, just make a number value and assign each state to a predefined number, if you are only reading it from the server, security shouldn't be a problem

late plume
#

u can make a table in a script called states

#

local states = {}

#

and then just define each state

#

states.sprinting = function()
--define state behavior here
end

#

also define a current state variable