I don't know where's the problem. The script works fine with one of my games that doesn't have FE.
local datastore = game:GetService("DataStoreService"):GetDataStore("GameStore")
game.Players.PlayerAdded:connect(function(player)
local leaderstats = Instance.new("IntValue")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local xd = Instance.new("IntValue")
xd.Name = "BUX"
xd.Parent = leaderstats
xd.Value = 0
local qe = Instance.new("IntValue")
qe.Name = "Hexoton"
qe.Parent = leaderstats
qe.Value = 0
local key = "user-" .. player.userId
local storeditems = datastore:GetAsync(key)
if storeditems then
xd.Value = storeditems[1]
qe.Value = storeditems[2]
else
local items = {xd.Value, qe.Value}
datastore:SetAsync(key, items)
end
end)
game.Players.PlayerRemoving:connect(function(player)
local items = {player.leaderstats.BUX.Value, player.leaderstats.Hexoton.Value }
local key = "user-" .. player.userId
datastore:SetAsync(key, items)
end)

2 comments
To me, there is nothing wrong with it. Does it give you any errors?
Is it in local script or script?