While making my game, I made a gamepass and badge. Tl;DR, I’m making a letter and it changes wether you have the badge, gamepass or both. Text is different. So, in a local scripts in StarterGUI, my Output said there was an error over here:
local Check = require(game.ServerScriptService.GamePassBadge.CheckBadgeAndGamePass)
Can you provide the code from the actual module script your using? Because a single require statement doesn’t say much, if anything. For all we know the module script you are requiring is empty and we would be none the wiser.
This module script does absolutely nothing. It’s basically just storing two variables, which isn’t needed. You can instead use MarketplaceService | Roblox Creator Documentation for anything that relates to whether a player owns an asset or not.
@BuilderBob25620 good point, there is a lot learn when it comes to client-server model and remote events because the client can change anything on the client, and fire anything through a remote event
That’s why you always need sanity checks on the server
Thanks that was a dumb mistake of me to make the client interact with the server. I did use remote events but forgot to use them. That was dumb mistake of me.
Basically in the module script, I have scripts for the badge and gamepass. And there’s other scripts that execute code based on the variables. Like I said before, it was dumb of me trying to have the client interact with the server.