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?
game.Workspace.pgoeclickdetect.OnServerEvent:Connect(function() pe = false privacyone = game.Workspace.privacyglassone print("pe info stored") if privacyone.Transparency == 0.55 then pe = true elseif privacyone.Transparency == 0 then pe = false end if pe == false then privacyone.Transparency = 0.55 print("Pe false") elseif pe == true then privacyone.Transparency = 0 print("Pe true") end end)