so im trying to instantly detect a condition change, currently a local boolean variable.
basically if you let go of the key(S) when falling (freefall), id like step to stay true until freefall is false.
just checking it over and over until freefall is false, surely theres a better way to do this?
elseif inputState == Enum.UserInputState.End then
if freefall == true and step == true then
repeat wait() until freefall == false (!!)
step = false
stepmult = 1
else
step = false
stepmult = 1
end
end
ive experimented with making it an attribute/boolvalue and using getpropertychangedsignal, but it seemed to be quite heavy.
also, im using StateChanged on the humanoid to detect being airborne.