I'm trying to compare a number (pos) with another number (returned by getComp()). I get this error: Workspace.Part.Script:28: attempt to compare number with function. Line 28 is the one with > . What am I doing wrong?
function getComp(vector, comp)
return 1
end
function split(part, pos, axis)
-- Test input
if (pos > getComp(part.size, axis)) then
print("pos too large")
end
end

1 comment
posis most likely a function because getCom() is returning an integer.