Hello! So I have this brick. I want 4 people to be able to go through it, then it's CanCollide becomes false, so nobody else can get through. It doesn't appear to be doing anything... I went through it like 20 times.
for i = 1, 4 do function onTouched(hit) script.Parent.Transparency = .5 wait(.3) script.Parent.Transparency = 0 end end script.Parent.CanColloid = false if (script.Parent ~= nil) and (script.Parent.className == "Part") then --Work if in a block connection = script.Parent.Touched:connect(onTouched) end