How to update a Module Variable? explanation below
--module script
module={}
pose = "idle"
module.one = function()
print(pose)
if pose == "walk" then
--do stuff and
module.two()
end
end
module.two= function()
if pose == "walk" then
--do stuff and
module.one()
end
end
return module
--Local script
--require stuff so S = module script
S.pose = "walk" --So I change the variable first, then call the function
S.one() --but the function says pose == idle when I just changed it .-.

1 comment
Thank you so much! Worked like a charm!