|
| 03 Jul 2017 01:29 AM |
so i want it to wait so the gui doesn't keep flashing so you enter the box the gui appears you leave the box and the gui disappears
gui = script.Parent.shopFrame part = game.Workspace.guiactive
function onTouch() if gui.Visible == false then gui.Visible = true else gui.Visible = false end end
part.Touched:connect(onTouch)
lads R$0 |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2017 01:32 AM |
function onTouch() wait(w) gui.Visible = not gui.Visible end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
TheKgroup
|
  |
| Joined: 28 Aug 2008 |
| Total Posts: 362 |
|
|
| 03 Jul 2017 11:50 AM |
You can't. You have it set to check if its false. And if it is, it'll turn it true. And if it isn't false. Then it will set itself to false. You basically have it infinitely looping. Waits will only delay the time between flashes
ngroup stole my cookie |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2017 12:46 PM |
oh so how do i stop it flashing
lads R$597 |
|
|
| Report Abuse |
|
|