Here is the issue:
I have a button script not working.
The script:
local button = script.Parent
local click = script.ClickDetector
local Notifier = button.Parent.NeonNotifier.Neon
local Enabled = false
click.MouseClick:Connect(function()
if Enabled == false then
Enabled = true
Notifier.BrickColor = Color3.fromRGB(91, 154, 76)
elseif Enabled == true then
Enabled = false
Notifier.BrickColor = Color3.fromRGB(17, 17, 17)
end
end)
Snapshot of explorer so you know where all the parts in the variables are:

My goal (which I am unsuccessfully accomplishing):
I am trying to get the part named “Neon” to turn green (Shamrock) when the button is clicked. The button is the part named “Button” with the script in it under “HeatLasersButton”. However, for some reason, the click detector is not showing up when I try to click / hover over the button.
Neon is the black part on the top of the model.
My question is; is this on my part or is it a bug of some sort within roblox studio? I don’t know which because I haven’t received any errors in output for the script. If it is on my part, please let me know how to fix it.
Extra Info:
Machine: Windows 10
Current Version of studio: version-c3140ab690c0462f
Date / Time of issue: Approximately 9:30 PM CST May 25th 2021
