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):
1 | local button = -- ur button path: for example game.Workspace.StarterGui.button |
then we add the function
1 | local button = -- ur button path |
2 |
3 | button.MouseButton 1 Click:connect( function () |
4 | -- your code goes here |
5 | 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?