Unexpected Variable Name Error while Writing Function

image
"Expected variable name while parsing, got local’ is displaying when I hover over the ‘local’.

My code’s goal is to detect changes in three text boxes each representing an x, y, and z value, then if they are numbers it will adjust a fourth text box to display the volume of the three values multiplied together. If they are not, it will display an error message in the fourth text box.

Why am I receiving this error when trying to do something as simple as a function declaration? I did notice update might be a bad function name, so I have already updated ‘update’ as the name to ‘updaterecipe’, so that was not the issue. This is the entire script so far, running as a local script in a local GUI.

You have to close the function parameters.

local function update()

1 Like

Oh, I feel goofy now. Thanks for the help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.