local plr = script.Parent.Parent.Parent.Parent.Parent
function comma_value(amount)
local formatted = amount
while true do
formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
if (k==0) then
break
end
end
return formatted
end
while wait() do
script.Parent.Text = comma_value(plr.leaderstats.Coins.Value)
end