Nevermind. I fixed it! I forgot to put the actually put on player datastores at the bottom instead I put it in with the thing
local players = game:GetService("Players")
local datastore = game:GetService("DataStoreService")
local ds1 = datastore:GetDataStore("RBUXValueSaver")
local is1 = datastore:GetDataStore("InventorySaving")
players.PlayerAdded:connect(function(player)
local currency1 = Instance.new("IntValue", player)
currency1.Name = "RBUXAmt"
local inventory = Instance.new("IntValue", player)
inventory.Name = "Inventory"
is1:SetAsync(player.UserId, inventory.Value)
inventory.Value = is1:GetAsync(player.UserId) or 0
ds1:SetAsync(player.UserId, currency1.Value)
currency1.Value = ds1:GetAsync(player.UserId) or 0
currency1.Changed:connect(function()
ds1:SetAsync(player.UserId, currency1.Value)
end)
inventory.Changed:connect(function()
is1:SetAsync(player.UserId, inventory.Value)
end)
end)

6 comments
First of all we can't hack it, second, hacking is practically impossible for server code... third, you barely made the question clear on what you wanted.
Oops! I forgot. I was tired at the time. I'll edit the thing
to show up in the leaderstats, you want to make a folder called leaderstats (case sensitive) and parent anything you want to show up to the leaderstats folder
Royal That is not what I mean.
Please DM me on Discord or something. I’ve tried mentioning you in the site chat, however I am uncertain if you’re seeing that. Edited question title with “[Solved]” to show indication on page.
Thank you!