Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I can't identify this error on the end of the function?(ANSWERED)

Asked by
emervise 123
4 years ago
Edited 4 years ago

I'll put my full script for context, but the place it gives me an error is on the block about the on button. (line 58) Here is my error:

08:59:35.582 - ServerScriptService.MicrowaveScript:58: Expected identifier when parsing expression, got ')'

01local onButton = game.Workspace.Microwave.Buttons.OnButton
02local offButton = game.Workspace.Microwave.Buttons.OffButton
03local openButton = game.Workspace.Microwave.Buttons.OpenButton
04local closeButton = game.Workspace.Microwave.Buttons.CloseButton
05local door = game.Workspace.Microwave.TweeningDoor
06local wheel = game.Workspace.Microwave.LazySusan
07local base = game.Workspace.Microwave.Base
08local motor = base.MicrowaveMotor
09local light = game.Workspace.Microwave.Light
10local doorOpen = false
11local microwaveOn = false
12local tweenCooldown = false
13 
14local TweenService = game:GetService("TweenService")
15local Info = TweenInfo.new(
View all 86 lines...
2
remove the end on line 56 or 57 Amiaa16 3227 — 4y
0
yup he is right VerdommeMan 1479 — 4y
0
Ty emervise 123 — 4y
0
now i get this tho 09:31:24.499 - ServerScriptService.MicrowaveScript:87: Expected 'end' (to close 'function' at line 45), got <eof>; did you forget to close 'function' at line 84? emervise 123 — 4y
0
fixed emervise 123 — 4y

Answer this question