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