Rounding up numbers to the closest

Sorry if this isnt quite well explained, but ive been trying to make a way to change a bricks position to the closest numbers divisable by 5. i.e (14,8,1) to (15,10,0)

I cannot find any way to do this, and ive not found any solutions so far. Here is my current way of doing this:

local Xpos = math.round(script.Parent.Position.X)
local Ypos = math.round(script.Parent.Position.Y)
local Zpos = math.round(script.Parent.Position.Z)

script.Parent.Position = Vector3.new(Xpos,Ypos,Zpos)
newPosition = Vector3.new(math.round(oldPos.X/5)*5, samething but y, samething but z)
local Number = 7
print(math.round(Number / 5) * 5)

or

function RoundToNearest(Number, Nearest)
    return math.round(Number / Nearest) * Nearest
end

print(RoundToNearest(7, 5)