Hi, I've been trying to make it so when this Global function is true. You can walk through the gate block. It doesn't seem to work, though.
--OpenGate gate = workspace.gate if _G.Array == {1,2,10,12} then gate.CanCollide = false gate.Transparency = 1 end