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

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

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?

5 comments

0

Do you already have a leaderstat set up?

0

Yeah

0

What's your stat name?

0

Points

0

its in my DS2 script

1 answer

✓ Accepted answer

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

6 comments

0

in the variable of currencyname put the name put your stat name.

0

Thanks Will this have to be in a local script?

0

No, just a normal script.

0

alright in workspace?

0

Inside the text label.

0

oh yh sorry thanks

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