I made this script and it dosent work help
game.Players.PlyerAdded:connect(function( PLAYER ) PLAYER:WaitForDataReady(). local stats = Instance.new("IntValue") stats.Name = "leaderstats" local cash = Instance.new("IntValue") cash.Name = "Cash" cash.Value = 0 cash.Parent =stats stats.Parent = PLAYER, if PLAYER:LoadNumber("A") then cash.Value = PLAYER:LoadNumber("A") end end) game.Players.PlayerRemoving:connect(function( PLYR ) PLYR:SaveNumber("A", PLYR.leaderstats.Cash..Value), end)
i fixed it the code now pls help
Closed as Too Broad by User#19524
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?