--Modified by Ricalou, 20/10/2013 17:10
-- NO TOUCHY TOUCHY!


local config = script.Parent.Configuration

script.Parent.Touched:connect(function(part)
	if part.Parent and Game:GetService('Players'):GetPlayerFromCharacter(part.Parent) then
		local player = Game:GetService('Players'):GetPlayerFromCharacter(part.Parent)
		if player:GetRankInGroup(config.GroupId.Value) >= config.RankId.Value then
			script.Parent.CanCollide = false
			wait(0.3)
			script.Parent.CanCollide = true
		end
	end
end)
