Talk:How do I make VIP doors?

From Legacy Roblox Wiki
Revision as of 00:21, 17 August 2008 by >Mindraker (Testing)
Jump to navigationJump to search

Did you use proper quotation marks? ~Twila27

Doesnt deserve a response, just delete it.

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

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)