Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I add music into this script?

Asked by 10 years ago

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.

Answer this question