How to remove decimal numbers?

Hello everybody! I wanted to find out how to remove decimal numbers.
Script:

local Players = game:GetService("Players")
local Player = Players.LocalPlayer

function refresh()
	TextLabel.Text = "đź’°".. Player:WaitForChild("leaderstats"):WaitForChild("Money").Value
end

Player:WaitForChild("leaderstats"):WaitForChild("Money").Changed:Connect(function()
	refresh()
end)

refresh()

Problem:
изображение_2022-02-18_212404

Use math.floor() to round down or math.ceil() to round up

where should I register it correctly in the script?

If this is a local script that is just getting the value from leaderstats you need to do it on the server.

  1. Make the values whole numbers (when you add it for calculations)
  2. Do Text = math.floor(player:WaitForChild('leaderstats')...Money.Value)
function refresh()
	TextLabel.Text = "đź’°".. math.floor(Player:WaitForChild("leaderstats"):WaitForChild("Money").Value)
end

Here.

Mark this post as the solution.

That emoji has been encoded so you may need to replace it.

Thank you all for your help!
I’ve been watching other topic’s a lot about “how to remove decimal numbers”, and I didn’t understand it, now I’ve raised my knowledge a little.