Talk:How do I make VIP doors?

Did you use proper quotation marks? ~Twila27

Doesnt deserve a response, just delete it.

---PCwiener 18:56, 9 September 2007 (CDT)

Contents

Hi, I like to fix peoples users and places and MORE!

Talk to me here, or at my user. User:Jasonfraley02

I just updated this entire page. Now instead of directing you to find one in the Toolbox (which is now Insert) it instructs you how to create a blank script yourself, and provides the necessary scripts for a regular admin door and a shirt admin door. Although I have to admit, I haven't actually tested that shirt script. I don't see why it wouldn't work though. ~~ Ganondude 21:53, 14 December 2007 (CST)

How do you make team doors?

If you don't know what I mean, they are doors only a certain team can go through, or is there even such a thing?

Very Helpful

This page was very helpful. I've used it twice. Atokad321 17:45, 13 August 2008 (CDT)

I can't get through!

It seems that when I try to change who has access and test it with my own name, it never works. Do you have to activate it in some way, or am I making errors when I change the script? Please P.M. me in the game, not wiki.

JoeQuabla, Roblox GAME Home http://www.roblox.com/User.aspx?ID=398227

Testing

The VIP Door script

print("VIP Door Script loaded") 

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

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."
                -- Why? Because, "Username," is how it is spelled in the permissions.
		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.7 
			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 VIP door 
		end 
	end 
end 

script.Parent.Touched:connect(onTouched)

works in online mode if you set the permission to your appropriate username. MINDRAKER 19:21, 16 August 2008 (CDT)

The VIP Shirt door script

print ("VIP Shirt Door Script Loaded")

-- list of account names allowed to go through the door.
permission = { "YourNameHere" } -- This is how many people can still get through, so u don't have to change shirts. You can also have another friend here.

-- TextureId of the VIP shirt.
texture = "http://www.roblox.com/asset/?version=1&id=1194117" -- Go to the wiki below this 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.7 
			Door.CanCollide = false 
			wait(4) -- 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.7
			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 VIP door 
		end 
	end 
end 

script.Parent.Touched:connect(onTouched)
works, but I found a delay between the time the server let me in with my T-shirt and the time I changed the script. Once it worked in online mode, it worked in solo mode. The hardest part was finding the "TextureID" of the T-shirt. MINDRAKER 05:39, 17 August 2008 (CDT)

Merged 2 threads.

Phew, it's pretty long, but at the same time, it really doesn't deserve to be split. Emess talk 05:49, 24 December 2010 (UTC)

That's it.

This article is terrible, and needs fixing badly. I think I'm gonna spend my time on rewriting all the scripts and merging several scripts together. Emess talk 22:54, 8 January 2011 (UTC)