Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Click part play sound and activate point light at the same time?

script.Parent.ClickDetector.MouseClick:connect(function() script.sound:play() if script.Parent.Light.Enabled == true then script.Parent.Light.Enabled = false else script.Parent.Light.Enabled = true if script.Parent.ClickDetector.MouseClick:connect(function() pointlight.Sound:pause() end end

1 comment

0

Use the "code block" formatting symbol next time.

1 answer

✓ Accepted answer

This is not complicated. You'd have to remake the entire script. I wish I could.. But I'm in school. PM voltoxus.

4 comments

0

THANKS!

0

I have still no reply :/

0

script.Parent.ClickDetector.MouseClick:connect(function() script.sound:play() if script.Parent.Light.Enabled == true then script.Parent.Light.Enabled = false else script.Parent.Light.Enabled = true if script.Parent.ClickDetector.MouseClick:connect(function() pointlight.Sound:pause() end end

0

It's red at line 6...

This discussion is preserved as it was. New answers, comments, and votes are closed.