Ive been looking through the developer docs trying to keep learning and see what I can try and I saw in this article Documentation - Roblox Creator Hub
showing that it has a module script and inside the module script, there is a player added and player removing event. Is this possible? Can you really put this type of event inside a module script? If so, how is that done? If not, would the alternative be to have these types of events inside a server script and then call the module script inside the server script?
2 Likes
So this is possible in a module script?
game.Players.PlayerAdded:Connect(setupPlayerData)
or
game.Players.PlayerRemoving:Connect(saveOnExit)
You said it doesnt execute upon running the game and they are like functions. How can the modulescript detect these player events?
Yes those are possible in a module, I use a completely modular system and they work fine.
2 Likes