Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

GUI Active toggler with image button not working? It made me put a question mark ._.

Asked by 6 years ago

The parent is a image button, and everytime you press the image button it toggles a frame active or not active, I do not see anything wrong!

`script.Parent.MouseButton1Click:Connect(function() if(script.toggle.Value==false)then script.toggle.Value=true elseif(script.toggle.Value==true)then script.toggle.Value=false end if(script.toggle==true)then print("ACTIVE") script.Parent.Activated=true elseif(script.toggle==false)then script.Parent.Activated=false end end)

script.Parent.TouchTap:Connect(function() if(script.toggle.Value==false)then script.toggle.Value=true elseif(script.toggle.Value==true)then script.toggle.Value=false end if(script.toggle==true)then print("ACTIVE") script.Parent.Activated=true elseif(script.toggle==false)then script.Parent.Activated=false end end) `

0
Because it has to be a question. Also format your code. abnotaddable 920 — 6y

Answer this question