Hello everyone. I’ve been wondering if, for example, I had a data saving module, is it really worth it creating a separate script just to be able to type Player.PlayerAdded just to load the player’s data when a player joins instead of just putting it inside the module script?
1 Like
With modules, you’ll have to require them in another script, anyways. I don’t think that events such as “PlayerAdded” are bad to use in modules, but personally I handle the playeradded events in other scripts and require the module for functions relating to the player. I don’t think there’s anything wrong.
2 Likes
Perfectly fine to do it in the module. It will make your modules easier to use too! So if you have a data saving module, you can give it to people and you won’t even need to give them special instructions. It’s cleaner.
2 Likes