generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: where do you put the wait in here

Previous Thread :: Next Thread 
OrdinaryBearpanda4 is not online. OrdinaryBearpanda4
Joined: 08 Aug 2016
Total Posts: 11900
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
tentergram is not online. tentergram
Joined: 13 Apr 2013
Total Posts: 2446
03 Jul 2017 01:32 AM

function onTouch()
wait(w)
gui.Visible = not gui.Visible
end
Report Abuse
OrdinaryBearpanda4 is not online. OrdinaryBearpanda4
Joined: 08 Aug 2016
Total Posts: 11900
03 Jul 2017 11:19 AM
b1


lads R$0
Report Abuse
OrdinaryBearpanda4 is not online. OrdinaryBearpanda4
Joined: 08 Aug 2016
Total Posts: 11900
03 Jul 2017 11:46 AM
bump


lads R$1,497
Report Abuse
TheKgroup is online. 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
OrdinaryBearpanda4 is not online. OrdinaryBearpanda4
Joined: 08 Aug 2016
Total Posts: 11900
03 Jul 2017 12:46 PM
oh so how do i stop it flashing


lads R$597
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image