How do I remove something of of a Database?
Its me again. After my brother and I started playing the game. I noticed that my economy was getting inflated. How do I reset the database to remove my code?
I used the database by jcs801
04 | function onPlayerEntered(player) |
06 | player:WaitForDataReady() |
07 | repeat wait() until player:FindFirstChild( "leaderstats" ) |
08 | if player.DataReady then |
09 | if player:findFirstChild( "leaderstats" ) then |
10 | local score = player.leaderstats:GetChildren() |
12 | local ScoreLoaded = player:LoadNumber(score [ i ] .Name) |
14 | if ScoreLoaded ~ = 0 then |
15 | score [ i ] .Value = ScoreLoaded |
22 | function onPlayerLeaving(player) |
23 | if player:findFirstChild( "leaderstats" ) then |
24 | local score = player.leaderstats:GetChildren() |
26 | player:SaveNumber(score [ i ] .Name,score [ i ] .Value) |
31 | game.Players.PlayerAdded:connect(onPlayerEntered) |
32 | game.Players.PlayerRemoving:connect(onPlayerLeaving) |