local c=game.Players.LocalPlayer local A=c.Currency.Soul local p=script.Parent local function l()local c=A.Value if c>999 then if c>=1000000 then p.Text=string.format("\037\046\049\102\077",c/1000000)elseif c>=1000 then p.Text=string.format("\037\046\049\102\075",c/1000)end else p.Text=tostring(c)end end A.Changed:Connect(l)l()
-- local script inside a TextLabel
local player = game.Players.LocalPlayer
local SoulValue = player.Currency.Soul
local textLabel = script.Parent

local function updateText()
	local Soul = SoulValue.Value
	if Soul > 999 then
		if Soul >= 1000000 then
			textLabel.Text = string.format("%.1fM", Soul / 1000000)
		elseif Soul >= 1000 then
			textLabel.Text = string.format("%.1fK", Soul / 1000)
		end
	else
		textLabel.Text = tostring(Soul)
	end
end

SoulValue.Changed:Connect(updateText)
updateText()
