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

What is my GUI script missing?

Asked by
CRJ900 0
9 years ago

I have all the components it needs, but "Headlights" is blue in my script.

script.Parent.Parent.Parent.Parent.Parent.Workspace.A3no1.Frame.GUILights.HLLL.Light.Enabled = true script.Parent.Parent.Parent.Parent.Parent.Workspace.A3no1.Frame.GUILights.HLRR.Light.Enabled = true print("clicked")

function onClicked() end

Headlights.MouseButton1Down:connect(function()

end)

0
Would you mind telling us what you're script is referencing? i.e. where the script is so we know what its parents are and where everything is in relation to the game? aquathorn321 858 — 9y

1 answer

Log in to vote
0
Answered by
Protune 15
9 years ago

~~~~~~~~~~~~~~~~~ Headlights.MouseButton1Down:connect(function() script.Parent.Parent.Parent.Parent.Parent.Workspace.A3no1.Frame.GUILights.HLLL.Light.Enabled = true script.Parent.Parent.Parent.Parent.Parent.Workspace.A3no1.Frame.GUILights.HLRR.Light.Enabled = true print("clicked") end)~~~~~~~~~~~~~~~~~

  • You never defined a function
  • You never defined Headlights

Please learn the basics before attempting this yourself

Ad

Answer this question