my script doesn’t seem to work it is suppose to my the currencys of my leaderstats show on a gui, but for some reason it isn’t
code: local replicatedStorage = game:GetService(“ReplicatedStorage”)
local players = game:GetService(“Players”)
local formatNumber = require(replicatedStorage:WaitForChild(“FormatNumberAlt”))
local player = players.LocalPlayer
local gems = player:WaitForChild(“leaderstats”):WaitForChild(“Gems”)
local gemsLabel = script.Parent:WaitForChild(“Gems”):WaitForChild(“Label”)
local textGems = formatNumber.FormatCompact(tonumber(gems.Value))
gemsLabel.Text = textGems
gems.Changed:Connect(function()
local text = formatNumber.FormatCompact(tonumber(gems.Value))