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"

2 comments
LocalScript(Client) cannot access the Server. These services are ServerScriptService and ServerStorage. The best place to store modules is ReplicatedStorage. Client and Server can access this service.
Ty