Solution found, for those who might visit the thread after with a similar issue the problem was OP was firing the Bindable event before the other script had time to connect it to a function. A yield was added before the Bindable was fired and it works as expected.
7 Likes
Thank you so much!
Really like your games too, especially the New York game!
Thank you
1 Like
Script 1 is running before Script 2. Yielding is bad practice and you should rarely be using it. For something like this you should use some kind of module structure so your load order is deterministic because both scripts are run in separate threads and their load order can change at any time.
Example:
-- Still using event
require(script2) -- Event is connected
require(script1) -- Event is fired
-- Not using an event (callback in module body)
require(script1) -- Stuff is done
require(script2) -- After when event would fire and stuff is done