Is this possible of put "false" and "true" in a DataStore value?
ex:
local DataStoreService = game:GetService('DataStoreService') local playerData = DataStoreService:GetDataStore('PlayerData') local sessionData = {} in my function: sessionData[player] = {Money = 0, Experience = 0, Weapond = false} playerData:SetAsync(player.UserId, sessionData[player]) THIS IS JUST A EXEMPLE SCRIPT!
Hi there!
If you can't store booleans in DataStores, store it as a string. Scripts will interpet it the same [from what i can tell] and if they can't, do the following:
local l = [the "true" or "false] local m = false -- template if l == "true" then local m = true elseif l == "false" then local m = false else error("what the heck") end