|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 13 Dec 2015 11:48 AM |
| look on my other fourm cna i have some help with that? |
|
|
| Report Abuse |
|
|