Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I create a currency type only that the name would be "Fruits"?

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

1 comment

0

Why was moderation taken against my question and not this one?

1 answer

✓ Accepted answer

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)

4 comments

0

This is incorrect. It's a folder not IntValue

0

Why is it downvoted?

0

@Vulkarin No explanation I'd assume

0

green271 you can use as Folder

This discussion is preserved as it was. New answers, comments, and votes are closed.