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

What is my GUI script missing?

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)

1 comment

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?

1 answer

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

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