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

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

Asked by
Nidoxs 190
10 years ago
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
Use the "code block" formatting symbol next time. OniiCh_n 410 — 10y

1 answer

Log in to vote
0
Answered by
Reverge -1
10 years ago

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

0
THANKS! Nidoxs 190 — 10y
0
I have still no reply :/ Nidoxs 190 — 10y
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 Reverge -1 — 10y
0
It's red at line 6... Nidoxs 190 — 10y
Ad

Answer this question