I am making a game that when the player destroys a fruit, this player gains 1 point as fruit in the leaderboard
Please help me
Put this in a Script inside Server Script Service and you should see "Fruits" under the leaderboard.
game.Players.PlayerAdded:connect(function(p) local stats = Instance.new("Folder") stats.Name = "leaderstats" stats.Parent = p local fruits = Instance.new("IntValue") fruits.Name = "Fruits" fruits.Value = 0 fruits.Parent = stats end)