I scripted the lights so that can flash endlessly but I don't know how to script them in to make them work with a button, and I already made the GUI button, please help.
Before you read this, im not sure if this will work cuz im new too :/
Ok so, i think ur asking for the function required, so yeah, here it is:
first we create a variable for ur text button (just because variables are cool):
local button = -- ur button path: for example game.Workspace.StarterGui.button
then we add the function
local button = -- ur button path button.MouseButton1Click:connect(function() -- your code goes here end
i hope it helped :D
again, im new at scripting
Closed as Too Broad by ee0w and Azarth
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?