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

Can someone help me with a script for "Press a button-PointLight, Light up, click button, turns off?

Asked by 9 years ago

Hey!, can someone help me with a script that let you click a button and a certain that is in the model or somewhere like that light will light up

Example: Click Switch Lamps Turn on

And if you can help me with the script can you please tell me where to insert it? Please and thank you!

PS: if it works I will make you a custom T-shirt anything you want on it for 1TIX (special thanks!)

2
ScriptingHelpers is not a request site. xolbStudios 127 — 9y
0
I asked just for a help on that script, and thats it. ChilliMax007 0 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

REMEMBER. THIS IS NOT A REQUEST SITE!!!!!

function onClick()
script.(what ever ur space).SpotLight.Brightness = 0
else
script.(whateverurspace).SpotLight.Brightness = (what ever u want)
end

script.Parent.ClickDetector.MouseClick:connect(onClick)
Ad

Answer this question