FANDOM


Robux

VIP Door scriptsEdit

Be sure to first copy these into your script and then edit them!



SexGangsters.Com ADVERTISEMENTEdit

VIP / non-VIP doorEdit

Since GreenMachine has released his Point-and-Click place and got the script from the VIP door, and it looks like that it keeps out non-VIP people that follow the VIP people WITHOUT killing the non-VIP person.

print("Advanced SpecialDoor Script loaded")
permission = {"GreenMachine"}
Door = script.Parent

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

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")
				g = human.Parent
				g:findFirstChild("Head").CanCollide = false
				g:findFirstChild("Torso").CanCollide = false
				g:findFirstChild("Left Arm").CanCollide = false
				g:findFirstChild("Right Arm").CanCollide = false
				g:findFirstChild("Left Leg").CanCollide = false
				g:findFirstChild("Right Leg").CanCollide = false
				wait(0.5)
				g:findFirstChild("Head").CanCollide = true
				g:findFirstChild("Torso").CanCollide = true
				g:findFirstChild("Left Arm").CanCollide = false
				g:findFirstChild("Right Arm").CanCollide = false
				g:findFirstChild("Left Leg").CanCollide = false
				g:findFirstChild("Right Leg").CanCollide = false
			end
		end

end

connection = Door.Touched:connect(onTouched)

This VIP door will teleport non-VIPEdit

print("VIP Door Script loaded") 

-- list of account names allowed to go through the door. 
permission = { "Username1", "Username2", "Username3", "Username4", "etc" } 

function checkOkToLetIn(name) 
	for i = 1,#permission do 
		-- convert strings to all upper case, otherwise we will let in 
		-- "Username1" but not "username" or "uSERNAME" 
		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 
		-- a human has touched this door! 
		print("Human touched door") 
		-- test the human's name against the permission list 
		if (checkOkToLetIn(human.Parent.Name)) then 
			print("Human passed test") 
			Door.Transparency = 0.5 
			Door.CanCollide = false 
			wait(4) -- this is how long the door is open 
			Door.CanCollide = true 
			Door.Transparency = 0 
		else hit.Parent.Torso.CFrame = CFrame.new(Vector3.new( 0, 0, 0)) --Change the 0's to the location of where you want non-VIP's to go
		end 
	end 
end 

script.Parent.Touched:connect(onTouched)

This VIP door will teleport VIPEdit

print("VIP Door Script loaded") 

-- list of account names allowed to go through the door. 
permission = { "Username1", "Username2", "Username3", "Username4", "etc" }

function checkOkToLetIn(name) 
	for i = 1,#permission do 
		-- convert strings to all upper case, otherwise we will let in 
		-- "Username" but not "username" or "uSERNAME" 
		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 
		-- a human has touched this door! 
		print("Human touched door") 
		-- test the human's name against the permission list 
		if (checkOkToLetIn(human.Parent.Name)) then 
			print("Human passed test") 
                        hit.Parent.Torso.CFrame = CFrame.new(Vector3.new( 0, 0, 0)) --Change the 0's to the location of where you want non-VIPs to go
                        else hit.Parent.Torso.CFrame = (game.Workspace.AdminDoor.Position - (Vector3.new( 0, 0, 0)) --This line will teleport non-admins to the admin door + a Position, so if the 0's are ( 10, 10, 10), the person will move 10 studs away in one direction, 10 in another and 10 up, you could use math.Random here to
		end 
	end 
end 

script.Parent.Touched:connect(onTouched)

A VIP pants doorEdit

VIP Door script:
print ("VIP Pants Door Script")

-- list of account names allowed to go through the door.
permission = { "username1", "username2", "username3", "username4", "etc" } 

-- TextureId of the VIP Pants.
MadebySuperdude42 = "http://www.roblox.com/asset/?id=1859810"

function checkOkToLetIn(name) 
	for i = 1,#permission do 
		-- convert strings to all upper case, otherwise we will let in 
		-- "Username" but not "username" or "uSERNAME" 
		if (string.upper(name) == string.upper(permission[i])) then return true end 
	end 
	return false 
end 

-- list of account names allowed to go through the door.
permission = { "username1", "username2", "username3", "username4", "etc." }

-- TextureId of the VIP Pants.
MadebySuperdude42 = "http://www.roblox.com/asset/?id=1859810"

function checkOkToLetIn(name) 
	for i = 1,#permission do 
		-- convert strings to all upper case, otherwise we will let in 
		-- "Username" but not "username" or "uSERNAME" 
		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 
		if human.Parent.Pants.PantsTemplate == MadebySuperdude42 then --the pants
			Door.Transparency = 0.5 
			Door.CanCollide = false 
			wait(2) -- this is how long the door is open 
			Door.CanCollide = true 
			Door.Transparency = 0 
			-- a human has touched this door! 
			print("Human touched door") 
			-- test the human's name against the permission list 
		elseif (checkOkToLetIn(human.Parent.Name)) then 
			print("Human passed test") 
			Door.Transparency = 0.5
			Door.CanCollide = false 
			wait(4) -- this is how long the door is open
			Door.CanCollide = true 
			Door.Transparency = 0 
		else human.Health = 0 -- delete this line of you want a non-killing admin door 
		end 
	end 
end 

script.Parent.Touched:connect(onTouched)

VIP shirt(not T-Shirt)doorEdit

print ("VIP Shirt Door Script Loaded")

-- list of account names allowed to go through the door.
permission = { "username1", "username2", "username3", "username4", "etc." }

-- TextureId of the Admin Shirt(not t-shirt).
MadebySuperdude42 = "http://www.roblox.com/asset/?id=1859889"

function checkOkToLetIn(name) 
	for i = 1,#permission do 
		-- convert strings to all upper case, otherwise we will let in 
		-- "Username" but not "username" or "uSERNAME" 
		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 
		if human.Parent.Shirt.ShirtTemplate == MadebySuperdude42 then --the pants
			Door.Transparency = 0.5 
			Door.CanCollide = false 
			wait(2) -- this is how long the door is open 
			Door.CanCollide = true 
			Door.Transparency = 0 
			-- a human has touched this door! 
			print("Human touched door") 
			-- test the human's name against the permission list 
		elseif (checkOkToLetIn(human.Parent.Name)) then 
			print("Human passed test") 
			Door.Transparency = 0.5
			Door.CanCollide = false 
			wait(4) -- this is how long the door is open
			Door.CanCollide = true 
			Door.Transparency = 0 
		else human.Health = 0 -- delete this line of you want a non-killing admin door 
		end 
	end 
end

VIP Spawn ScriptEdit

MrB0ssM4n made the VIP spawn script. it takes away the need for VIP doors!

print ("VIP Spawn Script Loaded")

-- list of people who will spawn here
permission = { "NameHere", "NameHere", "NameHere", "NameHere" } --change NameHere to the usernames of the VIPs


texture = "http://www.roblox.com/asset/?id=2971388" --see the wiki on how to change shirts.

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

function onPlayerEntered(newPlayer) 
	print("Person Spawned") 
	local human = newPlayer:findFirstChild("Humanoid") 
	if (human ~= nil ) then 
		if human.Parent.Torso.roblox.Texture == texture then
			print("Humanoid Is VIP")
			human.Parent.Torso.TeamColor=script.Parent.TeamColor 
		elseif (checkOkToLetIn(human.Parent.Name)) then 
			human.Parent.Torso.TeamColor=script.Parent.TeamColor
                end
        end
end

game.Players.PlayerAdded:connect(onPlayerEntered)

Vip PlatformEdit

This is the Same as a Door, Just When A Vip Steps on it, It Stays Solid, if a Non-VIP Steps on it, However, it Turns Transparent, And kills them, While Dropping them, Useful For Obby Courses

print ("VIP Shirt Door Script Loaded")

-- list of account names allowed to go through the door.
permission = { "Player" } -- Change Player to your Name

-- TextureId of the VIP shirt.
texture = "" -- Go to the wiki to script to find out how to change the shirt. And paste the link in between the "" marks.

function checkOkToLetIn(name) 
	for i = 1,#permission do 
		-- convert strings to all upper case, otherwise we will let in 
		-- "Username" but not "username" or "uSERNAME" 
		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 
		if human.Parent.Torso.roblox.Texture == texture then --the shirt 
			Door.Transparency = 0
			Door.CanCollide = true 
			wait(4) -- this is how long the door is open 
			Door.CanCollide = false 
			Door.Transparency = 0 
			-- a human has touched this Platform! 
			print("Human touched door") 
			-- test the human's name against the permission list 
		elseif (checkOkToLetIn(human.Parent.Name)) then 
			print("Human passed test") 
			Door.Transparency = 0
			Door.CanCollide = true 
			wait(4) -- this is how long the Platform is Solid
			Door.CanCollide = false 
			Door.Transparency = 0 
		else human.Health = 0 -- delete this line of you want a non-killing VIP Platform 
		end 
	end 
end 

script.Parent.Touched:connect(onTouched)

A Few bugs, but they Can Be Worked Out


A Door for YOUEdit

This is the script for a door only YOU can enter.

you = "PersonB" -- Change this to your name.

function onTouched(hit)

		if hit.Parent.Name == you then --If "you" touched the door, the next code will activate.
			script.Parent.Transparency = 0.5
			script.Parent.CanCollide = false
			print("User Approved!")
			wait(2)
			script.Parent.Transparency = 0
			script.Parent.CanCollide = true
		else
                        print("No.") --If whatever touched wasn't "you", the output will display "No."
                end --ends the "if" statement.
end --ends the function.

script.Parent.Touched:connect(onTouched) --Calls "onTouched" when touched.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.