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
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)
This is incorrect. It's a folder not IntValue
Why is it downvoted?
@Vulkarin No explanation I'd assume
green271 you can use as Folder
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Why was moderation taken against my question and not this one?