|
| 20 Oct 2015 02:00 PM |
Does anyone know why this script
script.Parent.MouseButton1Down:connect(function() if script.Parent.Value.Value == 0 then script.Parent.Value.Value = "1" end if script.Parent.Value.Value == 1 then script.Parent.Value.Value = "0" end end)
doesn't work together with this
if script.Parent.Parent.Value.Value == 0 then script.Parent.Parent.BackgroundTransparency = "0" print '0!' end if script.Parent.Parent.Value.Value == 1 then script.Parent.Parent.BackgroundTransparency = "1" print '1!' end |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2015 02:41 PM |
do we get an output?
Don't look at me like that. |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Oct 2015 03:04 PM |
| Why are you using strings? |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Oct 2015 03:14 PM |
script.Parent.MouseButton1Down:connect(function() if script.Parent.Value.Value == 0 then script.Parent.Value.Value = 1 end if script.Parent.Value.Value == 1 then script.Parent.Value.Value = 0 end end)
--
if script.Parent.Parent.Value.Value == 0 then script.Parent.Parent.BackgroundTransparency = 0 print '0!' end if script.Parent.Parent.Value.Value == 1 then script.Parent.Parent.BackgroundTransparency = 1 print '1!' end |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2015 03:22 PM |
| Not working, beware this is a surface gui |
|
|
| Report Abuse |
|
|
|
| 20 Oct 2015 03:24 PM |
The GUI needs to be in the player to have working events.
Place the SurfaceGui in PlayerGui and set its Adornee to the part it should be on. |
|
|
| Report Abuse |
|
|
| |
|
| |
|