Im confused.
There is a module script in server script service. Its name is shop.
My (local) script:
local ServerScriptService = game:GetService("ServerScriptService") local Module = require(ServerScriptService.Shop) --The problem. function onClick() Module:PurchaseAnthem(game.Players.LocalPlayer, script.Parent.Parent.Id.Value, script.Parent.Parent.Price.Value) end script.Parent.MouseButton1Click:Connect(onClick)
When I try to get the module it doesn't work and I get an error in the output: "Shop is not a valid member of ServerScriptService "ServerScriptService"
This is because its in ServerScriptStorage. As soon as the game is run, anything inside there gets sent somewhere else. You can use ReplicatedStorage instead, it works that way.