this script is not working and can someone please explain why? Because when I changed (randomnumber) to 1, it added one match to the leaderstats, so the problem is in a random number
local randomnumber = math.random(1,6)
script.Parent.ClickDetector.MouseClick:Connect(function(ply)
ply.leaderstats.Matches.Value = ply.leaderstats.Matches.Value + (randomnumber)
end)
