ProfileService Module Error

I want to use ProfileService, but the ProfileService module has some errors.

Screenshot of the console:
image

Then i looked the module script and i found this script:

I’ve added print lines to see where is the error.
After i’ve added print lines the console was like this:
Image:

Normally profie_store_index variable would be “PlayerData” but it is actioning very weirdly.

My Script:


local ProfileTemplate = {
	TotalRobuxEarned = 0,
	["1"] = nil,
	["2"] = nil,
	["3"] = nil,
	["4"] = nil,
}


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

local ProfileDataStore = ProfileService:GetProfileStore(
	"PlayerData", 
	ProfileTemplate
)

local Profiles = {}

Thanks for any help

1 Like

Anyone to help me?
ProfileService Is not working
:frowning:

I wrote this so my topic will be in the top

Replace the “:” with a “.” in

ProfileService:GetProfileStore

So:

local ProfileTemplate = {
	TotalRobuxEarned = 0,
	["1"] = nil,
	["2"] = nil,
	["3"] = nil,
	["4"] = nil,
}


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

local ProfileDataStore = ProfileService.GetProfileStore(
	"PlayerData", 
	ProfileTemplate
)

local Profiles = {}

i did not try it yet but i think it will work, thanks :slight_smile: