generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

How do i make a best friends only door?

Previous Thread :: Next Thread 
Harkoden is not online. Harkoden
Joined: 04 Oct 2010
Total Posts: 2680
06 Feb 2012 01:06 AM
I've edited scripts but nothing works, please help!
(what does nil mean)
Report Abuse
BlockInTheHizzle is not online. BlockInTheHizzle
Joined: 25 Aug 2009
Total Posts: 15109
06 Feb 2012 01:07 AM
Here is the script:
(nil means false)



print("VIP Door Script loaded")

-- list of account names allowed to go through the door.
permission = {"Player1", "Player2", "Player3"}--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,
-- "conrad105," and, "builderman," but not, "blast1."
-- Why? Because, "blast1," 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)
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
06 Feb 2012 06:47 AM
Make a gui that asks what your real name is.
Report Abuse
noobkid is not online. noobkid
Joined: 17 Sep 2007
Total Posts: 649
06 Feb 2012 08:42 AM
@Radioaktiivinen,
I think he's not talking about RL best friends :P
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
06 Feb 2012 09:56 AM
YES HE IS GOAWAI
Report Abuse
Tenal is not online. Tenal
Joined: 15 May 2011
Total Posts: 18684
06 Feb 2012 11:11 AM
[ Content Deleted ]
Report Abuse
1Ra is not online. 1Ra
Joined: 02 May 2010
Total Posts: 2400
06 Feb 2012 12:17 PM
Build a door, and stand next to it only letting your best friends in.
I believe a door is:

|wood|Wood|Empty|
|Wood|Wood|Empty| -> |Door|
|Wood|Wood|Empty|
Report Abuse
blargety is not online. blargety
Joined: 03 Feb 2011
Total Posts: 266
06 Feb 2012 04:07 PM
1Ra, Isn't that for MC? This is for scripting not really MC or a model.
Report Abuse
trappingnoobs is not online. trappingnoobs
Joined: 05 Oct 2008
Total Posts: 19100
06 Feb 2012 04:13 PM
@blarg

No, it works on this too
Report Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 6594
06 Feb 2012 05:40 PM
Stand by the door with a gun, and shoot whoever is not your best friend.

"It looks nice, but I sense a disturbing lack of Rainbow Dash and Fluttershy."
Report Abuse
NVI is not online. NVI
Joined: 11 Jan 2009
Total Posts: 4744
07 Feb 2012 04:02 PM
You obviously just have to tell the door, "only let my best friends in," then rub it with animal fat and... never mind, we won't go into it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image