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

Script for GUI coin counter isnt working despite no errors?

This script is inside a textlabel inside a ScreenGUI inside starter gui. There is a other script the successfully makes a value called Coins. However, this script is not effecting the Textlabel at all. Any help?

local Player = game.Players.LocalPlayer
local Coins = Player.leaderstats:WaitForChild("Coins")

script.Parent.Text = "Coins: " ..Coins.Vaule

Coins:GetPropertyChangedSignal("Vaule"):Connect(function()
	script.Parent.Text = "Coins: " ..Coins.Vaule
end)

1 comment

0

Is the script inside a localscript? If not, then it won't work properly, also value is spelled incorrectly.

1 answer

✓ Accepted answer

Hello,

You put Vaule instead of Value. I have remade your script.

local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Coins = LocalPlayer:WaitForChild("leaderstats").Coins
script.Parent.Text = "Coins: " ..Coins.Value
Coins:GetPropertyChangedSignal("Value"):Connect(function()
	script.Parent.Text = "Coins: " ..Coins.Value
end)

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