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

1 comment

0

I don't think you can compare an array to an array. You would have to loop through the contents of the array and see if they match.