of     1   

Defraud
#117516702Sunday, November 10, 2013 2:36 AM GMT

So, I have this script. I'm trying to disable a SpotLight when someone clicks on the gui. The script in the GUI is this: car = game.workspace.Car function onClicked() car.Headlight1.SpotLight.Enabled = false car.Headlight2.SpotLight.Enabled = false end script.Parent.MouseButton1Click:connect(onClicked) I'm new to scripting, so this could be completely wrong. Just need some help, hope someone can help.
FriendlyBiscuit
#117517013Sunday, November 10, 2013 2:39 AM GMT

Please post this in Scripting Helpers, as that section is more suited to answering your question. This section is for advanced programming topics that mostly relate to Lua. Everything else is spam and could result in you getting banned.
Defraud
#117517183Sunday, November 10, 2013 2:41 AM GMT

Oh, i'm very sorry about that. Didn't see that section.

    of     1