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
 

How do i make it toggle?

Previous Thread :: Next Thread 
towerdefence661 is not online. towerdefence661
Joined: 15 Nov 2013
Total Posts: 280
13 Dec 2015 11:41 AM
How do I make it so this can have a toggling script in it so i can toggle it on and off (visible and not visible)


local Butt = game.Workspace.Fridge.SurfaceGui.TextButton
Butt.Visible = false
function onClicked(playerWhoClicked)
Butt.Visible = true
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)
Report Abuse
wonderful72pike is online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
13 Dec 2015 11:42 AM
local Butt = game.Workspace.Fridge.SurfaceGui.TextButton
Butt.Visible = false
function onClicked(playerWhoClicked)
Butt.Visible = not Butt.Visible
end
Report Abuse
TheDefence is not online. TheDefence
Joined: 07 Sep 2013
Total Posts: 47
13 Dec 2015 11:43 AM
Is it in a server script or local script?

I'm quite worried about why you're trying to toggle your butt in the first place.
Report Abuse
towerdefence661 is not online. towerdefence661
Joined: 15 Nov 2013
Total Posts: 280
13 Dec 2015 11:44 AM
Well its just in studio im not really going to have it for other people to play on it. only me.
Report Abuse
towerdefence661 is not online. towerdefence661
Joined: 15 Nov 2013
Total Posts: 280
13 Dec 2015 11:45 AM
wait i got it thanks the first guy who replied
you forgot to add the last part the bottom but i did
Report Abuse
wonderful72pike is online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
13 Dec 2015 11:46 AM
Whoops, sorry!

Np :)
Report Abuse
towerdefence661 is not online. towerdefence661
Joined: 15 Nov 2013
Total Posts: 280
13 Dec 2015 11:48 AM
look on my other fourm cna i have some help with that?
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