Error with datastores

What do you want to achieve?
I am trying to make a data store system for my game.

What is the issue?
I am getting an error:

What solutions have you tried so far?
I have tried to look through the forums but found no problems related to my issue.

Here is the code:

local Players = game:GetService("Players")
local ServerScriptService = game:GetService("ServerScriptService")

local Template = require(ServerScriptService.PlayerData.Template)
local Manager = require(ServerScriptService.PlayerData.Manager)
local ProfileService = require(ServerScriptService.Libs.ProfileService)

local ProfileStore = ProfileService.GetProfileStore("Production", Template)

Any help is appreciated!

1 Like

Are you requiring the Profile Service module correctly? If you did then a message like this should appear on your console:

image

1 Like