Explaination: How to you make a block that adds a win to the leaderboard on touch. I also need it to save. Also, how do you make the leaderboard?
Please dont ask for requests in the future but this is how to add wins on touch: (put inside the part) (also make a wins leaderboard)
script.Parent.Touched:Connect(function(hit) local man = hit.Parent:FindFirstChild("Humanoid") if man ~= nil then local char = game.Players:GetPlayerFromCharacter(hit.Parent) char.leaderstats.Wins.Value = 10 end end)