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)
COMMUNITY QUESTION
What is wrong with the script and how do I make it work? (By the way line 5-6 are on the same line)
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
It's not presented like that in the script.