mrfergie
|
  |
| Joined: 25 Mar 2010 |
| Total Posts: 522 |
|
|
| 22 Oct 2015 08:40 PM |
local function Flood(pattern) lb.FloodLights.Pattern.Value = patern end newgui.EM.FloodLights.Front.MouseButton1Down:connect(EM("Front"))
It's hard to test because I have a really long script that's not finished. The only part Im not sure about is connect(EM("Front")). pls thanks! |
|
|
| Report Abuse |
|
|
mrfergie
|
  |
| Joined: 25 Mar 2010 |
| Total Posts: 522 |
|
|
| 22 Oct 2015 08:41 PM |
Oops, correction:
newgui.EM.FloodLights.Front.MouseButton1Down:connect(Flood("Front")) |
|
|
| Report Abuse |
|
|
| |
|
mrfergie
|
  |
| Joined: 25 Mar 2010 |
| Total Posts: 522 |
|
| |
|
mrfergie
|
  |
| Joined: 25 Mar 2010 |
| Total Posts: 522 |
|
|
| 22 Oct 2015 08:52 PM |
| Trying to run the function when a button is clicked but also assign a string to the pattern variable in the function |
|
|
| Report Abuse |
|
|