-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local DataStoreService = game:GetService("DataStoreService") local dinheiroStore = DataStoreService:GetDataStore("DinheiroJogador") game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local dinheiro = Instance.new("IntValue") dinheiro.Name = "Dinheiro" dinheiro.Parent = leaderstats -- Carregar dinheiro salvo local data local success, err = pcall(function() data = dinheiroStore:GetAsync(player.UserId) end) if success and data then dinheiro.Value = data else dinheiro.Value = 0 -- começa com 0 end -- Salvar quando sair player.AncestryChanged:Connect(function() if not player:IsDescendantOf(game) then pcall(function() dinheiroStore:SetAsync(player.UserId, dinheiro.Value) end) end end) end)