Here is the script so far -
while true do
wait(300)
StatName = "Kills"
Amount = 0
wait(.1)
Player = game.Players:GetPlayerFromCharacter(workspace[PlayerName])
StatLeaderboard = Player.leaderstats[StatName]
StatName = "Deaths"
Amount = 0
wait(.1)
Player = game.Players:GetPlayerFromCharacter(workspace[PlayerName])
StatLeaderboard = Player.leaderstats[StatName]
end
I want to reset the leader stats every 5 min for all players and the stats are Kills and Deaths
The script isn't working though and I dont know why, can you help me
Also if the script does look terrible, I only started a year ago

1 comment
I dont know how to code this but you need a function to get all the children in players. Change there intvalue i think