local v=game.Players.LocalPlayer local X=v.Currency.Soul local C=script.Parent local function p()local v=X.Value if v>999 then if v>=1000000 then C.Text=string.format("\037\046\049\102\077",v/1000000)elseif v>=1000 then C.Text=string.format("\037\046\049\102\075",v/1000)end else C.Text=tostring(v)end end X.Changed:Connect(p)p()

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()
