math.round() doesn't work
Posted: Mon May 10, 2021 12:56 pm
So I have a function that look something like this:
And the problem is, that the program can't call math.round() for some reason, it always says "attempt to call field 'round' (a nil value)", even if I remove the 'local' thing, just always, with any variable in this particular function (it doesn't throw any errors in the other functions).
can some1 halp pls
Code: Select all
function checkPlayerCollisions()
local x = player.x
local y = player.y
local rx = math.round(x)
local ry = math.round(y)
. . .
end
can some1 halp pls