Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to display a value beside the team bar?

Asked by 3 years ago

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?

1 answer

Log in to vote
0
Answered by
P_4rio 30
3 years ago
Edited 3 years ago

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!

Ad

Answer this question