Hi, I’m incredibly new to coding in Roblox and just in general so beware. I can’t seem to figure out why this script isn’t working. I got this script through a Youtube video to create a “button simulator” type game, I thought it’d be a nice starting point for learning to script with variables and such.
Anyways this is the error that I am receiving through line 4
This is the code that is not working (Error brings me to line 4 so I am guessing that is where the faulty code is)
This is my workspace that is being used for the code
It would be very helpful if I could receive some assistance to fix this error.
Thanks!