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

GUI for coins not working!! Can someone please help? The script is down below! Pls help!!

local player = game.Players.LocalPlayer

script.Parent.Text = player.leaderstats.Coins.Value

player.leaderstats.Coins.Changed:connect(function()

script.Parent.Text = player.leaderstats.Coins.Value

end)

It just shows in the leaderboard!!!!!!! I would like it to appear in a text box like on some other games! Please help if you can and please don't close this down!! ????????

(READ THE COMMENT SECTION)

3 comments

0

After reading the Roblox wiki website, I decided to try this out. However, the script did not work and I even opened output to check if I was missing something! Nothing showed up!! Did I go wrong? If so, please tell me where.

0

Can you check that the script is running and the event is also working by adding is some prints.

0

It kind of helps

1 answer

✓ Accepted answer

It should be

player.leaderstats.Coins.Value.Changed:connect(function()
	script.Parent.Text = player.leaderstats.Coins.Value
end)

not

player.leaderstats.Coins.Changed:connect(function()
	script.Parent.Text = player.leaderstats.Coins.Value
end)

That's where you went wrong.

1 comment

0

Thanks!! It worked!!

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