Hello. My problem is that I have seen that many other creators of Roblox have added a coin system and displaying the coins number beside the team bar. I wonder how to make that?
✓ ANSWER ACCEPTED
How to display a value beside the team bar?
1 answer
✓ Accepted answer
This is called a leaderboard if you want this to save i would look at datastores a more complicated version of leaderboards if you want to input your coin system into the ingame leaderboard then take your system that should looks something like this: (Format: Oldest Child > Younger Child.)
Any instance(named: leaderstats) > Intvalue(named: "insert currency name here")
create a script then put the leaderstats in it
then use that simple script to get a player who joined then clone it and set its parent to the player instance:
game.Players.LocalPlayer.PlayerAdded:Connect(function(plr)
local s = script.leaderstats:Clone()
s.Parent = plr
end)
hopefully this should help!
p.s you can also use Instance.new() to create everything then put it into the player that way!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
https://developer.roblox.com/en-us/articles/Leaderboards