trying to make a save system but the value wont save.
saving script:
local datastore = game:GetService("DataStoreService")
local seatside = datastore:GetDataStore("seatside1")
script.Parent.OnServerEvent:Connect(function(player,
seatsided
)
if seatsided.Value == true then
seatside:SetAsync(player.UserId,true)
elseif seatsided.Value == false then
seatside:SetAsync(player.UserId,false)
end
load script:
local datastore = game:GetService("DataStoreService")
local seatside = datastore:GetDataStore("seatside1")
local player = script.Parent.player.Value
wait(0.1)
script.Parent.Parent:WaitForChild(player.Name.."Data").Slot1.cosmetics.RHD.Value = seatside:GetAsync(player.UserId) or false
thxyes

3 comments
i have tried added seatsided.value, yet it still wont save
Can you print the variable that is supposed to get saved? Id like to know what it prints.
prints out true