nezuo / lapis

A DataStore abstraction library for Roblox
https://nezuo.github.io/lapis/
MIT License
44 stars 7 forks source link

Lapis cannot be used in Studio Widget with Team Create enabled #47

Open Halferi opened 3 months ago

Halferi commented 3 months ago

Lapis is currently dependent on game:BindToClose during module import and this event seems to not work in projects with Team Create enabled.

nezuo commented 2 months ago

I'm not sure I understand. Lapis works fine in Team Create enabled projects. Are you trying to use Lapis in a Studio plugin?

Halferi commented 2 months ago

Apologies for not describing it well in the description. Yes, this is related to Studio plugins. Trying to import the libarary from a Studio plugin will cause the library to break, as the game:BindToClose is used on import and it's not supported in Studio plugins.

Not sure if there are any suitable workarounds to support Studio plugins without game:BindToClose, but thought it would be good to bring it up.

nezuo commented 2 months ago

Yeah, I will probably disable that in Studio plugins. I just wasn't sure how Team Create was relevant to the issue.