local group = 8189274
local rank = 2

script.Parent.Touched:connect(function(hit)
	if (hit and hit.Parent and game.Players:FindFirstChild(hit.Parent.Name)) then
		if (game.Players[hit.Parent.Name]:IsInGroup(group and
game.Players[hit.Parent.Name]:GetRankInGroup(group) <= rank)then
			script.Parent.CanCollide = true
		else
			script.Parent.CanCollide = false
			wait(1)
			script.Parent.CanCollide = true
		end
	end
end)

1 comment

0

It's not presented like that in the script.