here is my script How would I make it so only a certain rank and up can go through?
local groups = {3309505}
local kills = true
function isInGroups(player)
for _,v in pairs(groups) do
if player:IsInGroup(v) then
return true
end
end
return false
end
local enabled = true
script.Parent.Touched:connect(function(hit)
if not enabled then return end
if not hit.Parent then return end
enabled = false
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
if isInGroups(player) then
script.Parent.CanCollide = false
wait(3)
script.Parent.CanCollide = true
else
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end
end
enabled = true
end)

1 comment
http://wiki.roblox.com/index.php?title=Collision_Filtering_Team_Doors