So, im making a leaderstat reset button that consists of 1 remote event. Every time you push the button, it resets your Leaderstat. But after clicking the button, when you chat ingame, it resets the leaderstat once more.
Main Script: (Script)
game.ReplicatedStorage.Reset.OnServerEvent:Connect(function(player) player.leaderstats.Kills.Value = 0 player.leaderstats.Deaths.Value = 0 player.leaderstats.Ping.Value = 0 end)
Button script: (Localscript)
script.Parent.MouseButton1Up:Connect(function() game.ReplicatedStorage.Reset:FireServer() script.Parent.Parent.Visible = false script.Parent.Parent.Cooldown.Visible = true wait(60) script.Parent.Parent.Cooldown.Visible = false end)