i have a script for a clicky brick thats supposed to change a BoolValue and im not sure why it isnt working but i still am quite a noob so im not sure
local s = script.Parent
local val = workspace.GameData.Close
function setval()
s.Color = BrickColor.new("Lime green")
val.Value = true
wait(0.5)
s.Color = BrickColor.new("Really red")
end
s.CD.MouseClick:Connect(setval)

2 comments
What class is Close?
are there any errors from the output?