im having lots of problems with datastore2, some things just dont save, heres my script, am i doing something wrong?
local datastore2 = require(1936396537)
datastore2.Combine("DATA","FTP4")
game.Players.PlayerAdded:Connect(function(plr)
local FTPDS = datastore2("FTP4",plr)
local value = Instance.new("BoolValue",plr)
value.Name = "FTP"
local received = FTPDS:Get()
if received ~= nil then
value.Value = received
else
value.Value = false
end
end)
game.Players.PlayerRemoving:Connect(function(plr)
local FTPDS = datastore2("FTP4",plr)
FTPDS:Set(plr.FTP.Value)
end)