I would like a door that looks if you have one of the 3 options. If you have the gamepass, or if you are a high rank in the group, or if you are on the exception list, it won't respawn you. I would like that script because I tried to make one but I failed each times. I do not want the door to kill, I just want it to respawn the player.
So if you do own the gamepass, it let pass you.
If you are a high rank in the group, it let pass you.
If you are on the Exception List, it let pass you.
-><- If none of the options above are true, you get RESPAWNED You need to get at least one option right to pass.
Exceptions = {}
ItemId = 0
Door = script.Parent
A = false
Open = true
function CheckExceptions(name)
for i = 1,#Exceptions do
if (string.upper(name) == string.upper(Exceptions[i])) then return true end
end return false end
function Touched(Part)
local Human = Part.Parent:findFirstChild("Humanoid")
if A then return end
A = true
if Part.Parent then
p=game.Players:getPlayerFromCharacter(Part.Parent)
if p then
if p:GetRankInGroup(0000000) >= 200 and p:GetRankInGroup(0000000) <= 255 or (CheckExceptions(Human.Parent.Name))then
else
Open = false
wait(0.1)
end
end
end
end
A = false
function Touched(Part)
local human = Part.Parent:findFirstChild("Humanoid")
if A then return end
A = true
if Part.Parent then
p=game.Players:getPlayerFromCharacter(Part.Parent)
if p then
if game:getService"BadgeService":UserHasBadge(p.userId,ItemId)then
else
wait(0.1)
end
end
end
end
A = false
if Open == false then
Part.Parent:breakJoints()
Open = true
end
Door.Touched:connect(Touched)

5 comments
Answered please upvote it for me :)
That's not what I asked.. There is nothing about a Group value or an Exception list..
Well still its not a request site :)
Here are my tests if you want... I am not requesting just want something that works actually.
But the thing is that this script kill and I want the player to get respawned.