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

Does anyone know how to make a gui that shows ur points?

Asked by 4 years ago

Im very bad at scripting and If anyone could help me that would be great :)

I've been making a game where you can gain points but I want the points to show in a textbox instead of the leaderboard my brother has tried and it worked but when he reset it went back to label so he scrapped it. Could someone help please?

0
Do you already have a leaderstat set up? co_existance 141 — 4y
0
Yeah no0bgaming748 24 — 4y
0
What's your stat name? co_existance 141 — 4y
0
Points no0bgaming748 24 — 4y
0
its in my DS2 script no0bgaming748 24 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

This may be over complicating it, but this is what works for me. Insert the script inside of the text label.

local currencyname = "Money"

while wait(0.1) do
    for i,v in pairs(game.Players:GetPlayers()) do
        if v:FindFirstChild("leaderstats") then
            script.Parent.Text = v.leaderstats[currencyname].Value
        end
    end
end
0
in the variable of currencyname put the name put your stat name. co_existance 141 — 4y
0
Thanks Will this have to be in a local script? no0bgaming748 24 — 4y
0
No, just a normal script. co_existance 141 — 4y
0
alright in workspace? no0bgaming748 24 — 4y
View all comments (2 more)
0
Inside the text label. co_existance 141 — 4y
0
oh yh sorry thanks no0bgaming748 24 — 4y
Ad

Answer this question