Howdy.
I spent 6+ hours straight searching the devforum and pretty much the whole internet, WITHOUT a answer so i come here to ask of your help
I m making a classified system
here is the table
Slot1 = {
Difficulty = "None",
IslandName = "None",
Multiplayer = "Off",
TimeCreated = "None",
}
![]()
prints this error
the server script:
IslandCreatedEvent.OnServerEvent:Connect(function(Player)
local Slot1Table = SlotSettings:Get(Player, "Slot1")
SlotSettings:Set(Player, Slot1Table["Difficulty"], "Difficulty = true") -- I know this does not set it to true, so if you could also help with that, that would be amazing
end)
the profile service handler module
-- Getter/Setter methods
function PlayerDataHandler:Get(player, key)
local profile = getProfile(player)
assert(profile.Data[key], string.format("Data does not exist for key: %s", key))
return profile.Data[key]
end
function PlayerDataHandler:Set(player, key, value)
local profile = getProfile(player)
assert(profile.Data[key], string.format("Data does not exist for key: %s", key))
assert(type(profile.Data[key]) == type(value))
profile.Data[key] = value
end
I tried so many methods, none seeming to work. If you need more info im glad to add more, thanks for reading I hope you are able to help