This website is under active development! You're very early! Please report any bugs directly to Durf

MoreMath.lua Part LUA Script File (subscript)

Asset Details

Name = MoreMath.lua
Description = Part LUA Script File (subscript) for 494f0a47-3f18-4ae1-bc42-3f0fccce4f43 (MoreMath.lua)
Tags = script, scripted, lua, dofile
Author = 76561198014346778
RequiredAssets =
FileContents =
if __MoreMath_Loaded then return end
__MoreMath_Loaded = true


function math.round(x)
  if x%2 ~= 0.5 then
    return math.floor(x+0.5)
  end
  return x-0.5
end

function math.roundby( x, by)
	-- TODO

end

function table.size(tablename)
	local i = 0
	for k, v in pairs(tablename) do
		i = i +1
	end
	return i
end

Advertisement