Attempt to perform arithmetic (mul) on number and Instance

Hello, i got a error that you see on topic name. Heres script:
local bank = ((((M.ViewSizeX/2)-M.X)/(M.ViewSizeX/2))MaxBank)
local pitch = (((M.ViewSizeY/2)-M.Y)/(M.ViewSizeY/2))
Animation.RightElevator.B.Motor.DesiredAngle = 0.5
-pitch
bank = (bank < -MaxBank and -MaxBank or bank > MaxBank and MaxBank or bank)

The error is telling me that you are doing a calculation with a number and an Instance.
Arithmetic calculations consists of only numbers.

What is the value of MaxBank?

MaxBank is Intvalue with value 90

use MaxBank.Value instead of just MaxBank

3 Likes