[Error fixing] Code for privacy glass not working?
Hello everyone! Im trying to make a privacy glass code that when clicked it will change the transparancy. But it doesn't seem to be working! What can i do?
01 | game.Workspace.pgoeclickdetect.OnServerEvent:Connect( function () |
04 | privacyone = game.Workspace.privacyglassone |
06 | print ( "pe info stored" ) |
08 | if privacyone.Transparency = = 0.55 then |
12 | elseif privacyone.Transparency = = 0 then |
18 | privacyone.Transparency = 0.55 |
21 | elseif pe = = true then |
22 | privacyone.Transparency = 0 |