Hello guys, I just wanted to know when I press this button "Script Below" I want it to play music, please can someone tell me!
BoolValue = script.Parent.Parent.EmergencyLight1.Toggle
function onClick()
if BoolValue.Value == false then
BoolValue.Value = true
print(BoolValue.Value)
else BoolValue.Value = false
end
end
script.Parent.ClickDetector.MouseClick:connect(onClick)
Best regards, Nathan.
PS: Used random tag since no tag available for the question I am asking.
