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

GUI points system?

So for a GUI there is a text that says the cash and everyone spawns with 0 cash "$0" so for that cash can I make it link to a leaderboard so once you earn a point on the leaderboard it also shows on the gui so you get like 5 points the gui will say "$5" and it updates to the players leaderstat

-- The cash is named "Points"

add.Value  +1
script.Parent.Text = "$"

2 comments

0

Are you using Int Value?

0

Yes

1 answer

Do you know how to make a leaderboard? If not, put this script into workspace:

function playeradded(player)
Leader=Instance.new("IntValue")
Leader.Parent=player
Leader.Name="leaderstats"
P=Instance.new("IntValue")
P.Parent=Leader
P.Name="Points"
end
game.Players.PlayerAdded:connect(playeradded)

I'll leave you with an on touch script. Put it into a part.

function T(hit)
player=game.Players:findFirstChild(hit.Parent.Name)
if player~=nil then
player.leaderstats.Points.Value=player.leaderstats.Points.Value+10
end
           end
script.Parent.Touched:connect(T)

Also, for a cash GUI, put this script into a text label that's in a GUI that's in startergui.

while wait() do
script.Parent.Text=script.Parent.Parent.Parent.Parent.leader stats.Points.Value.."$"
end

Hope this helped!

-ds

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