Roblox Vip Door!

Опубликовано: 01 Август 2026
на канале: an on
461
4

Ok, here's the script you need to put into it.

--Friends only Door

print("VIP Door Script loaded")

-- list of account names allowed to go through the door.
permission = {"Player"}--Put your friends name's here. You can add more.

function checkOkToLetIn(name)
for i = 1,#permission do
if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end

local Door = script.Parent

function onTouched(hit)
print("Door Hit")
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
print("Human touched door")
if (checkOkToLetIn(human.Parent.Name)) then
print("Human passed test")
Door.Transparency = 0
wait (0.1)
Door.Transparency = 0.1
wait (0.1)
Door.Transparency = 0.2
wait (0.1)
Door.Transparency = 0.3
wait (0.1)
Door.Transparency = 0.4
wait (0.1)
Door.Transparency = 0.5
wait (0.1)
Door.Transparency = 0.6
wait (0.1)
Door.Transparency = 0.7
wait (0.1)
Door.CanCollide = false
wait(4)
Door.CanCollide = true
Door.Transparency = 0.7
wait (0.1)
Door.Transparency = 0.6
wait (0.1)
Door.Transparency = 0.5
wait (0.1)
Door.Transparency = 0.4
wait (0.1)
Door.Transparency = 0.3
wait (0.1)
Door.Transparency = 0.2
wait (0.1)
Door.Transparency = 0.1
wait (0.1)
Door.Transparency = 0
else human.Health= 0
end
end
end

script.Parent.Touched:connect(onTouched)

leave alone everything, except what I tell you to put in.