#Data Store
15 messages · Page 1 of 1 (latest)
bro i can help u with that
clicks.Value = data.Clicks maybe?
you did Rebirth.Values = data.Rebirths, but not clicks.Value = data.Clicks
and apparently click is the one not saving, right?
@lament pike here u go did some testing around with ur script and it saveslua local Data = game:GetService('DataStoreService'):GetDataStore('Clicker') function createFolder(player,folders) for i,v in pairs(folders) do local newFolder = Instance.new('Folder',player) newFolder.Name = v.key end end local Folders = {{key = 'leaderstats'}} function createData(player) createFolder(player,Folders) local ls = player:FindFirstChild('leaderstats') local Clicks = Instance.new('NumberValue',ls) Clicks.Name = 'Clicks' Clicks.Value = 0 local Rebirths = Instance.new('NumberValue',ls) Rebirths.Name = 'Rebirths' Rebirths.Value = 0 local data local success,errormessage = pcall(function() data = Data:GetAsync(player.UserId) end) if success then Clicks.Value = data.Clicks or 0 Rebirths.Value = data.Rebirths or 0 else warn(errormessage) end end function reloadData(player) local update = {} for i,v in pairs(player:GetChildren()) do if v:IsA('Folder') then for i, values in pairs(v:GetChildren()) do update[values.Name] = values.Value end end end return update end function storeNewData(player) local reload = reloadData(player) Data:SetAsync(player.UserId,reload) end game.Players.PlayerAdded:Connect(createData) game.Players.PlayerRemoving:Connect(storeNewData)
u need to use a RemoteEvent
I already did everything for the click event
now I need the rebirths
look
so u need to multiply the Rebirths to Clicks
Check out 🤠 Rebirth Simulator! [ in progress ]. It’s one of the millions of unique, user-generated 3D experiences created on Roblox. Climb the leaderboards and become the best clicker!
🖱️ Click Multiplier
👑 Get your name on the table of the best clickers
♻️ Get many rebirths to be the best
Tags: Colorful, Super, Speed, Fun, Bunny, Tapping, Cl...