Why are my scripts erroring out?
Hello. I am currently remaking a Gui for a game of mine. For some odd reason, my script seems to error out. Here it is:
01 | GUI = game.Players.LocalPlayer.PlayerGui |
06 | script.Parent.Parent.Visible = false |
08 | GUI.InfoGui.TrackList.Dealership.Visible = true |
13 | script.Parent.MouseButton 1 Click:connect(onClicked) |
I keep receiving this error:
11:41:39.595 - attempt to call a nil value
11:41:39.596 - Disconnected event because of exception
Here is a link to my a picture of my explorer The highlighted LocalScript is the script I posted above.
If someone could please help me with this, I would greatly appreciate it! Thanks for your time!