I'm trying to make a simple equation solver, and I get the following error:
- Workspace.Script:6: attempt to call local 'A' (a number value)
"A" is a Number Value since I placed numbers only as Arguments. What am I doing wrong? Any and all help is appreciated.
local Equation = {
C = 0;
}
function Equation.SolveForC(A,x,B,y)
Equation.C = A(x) + B(y)
print(Equation.C)
end
Equation.SolveForC(2,3,2,3)

4 comments
Your problem is A(x). Lua treats this as a function call, when you actually want to multiply. Instead, do "Equiation.C = Ax + By"
Why do you always post comments instead of answers, GoldenPhysics?
They're shorter.
There are no metatables involved here