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 » Scripting Helpers
Home Search
 

Re: How do we make VIP Doors. Helps

Previous Thread :: Next Thread 
matthew5000 is not online. matthew5000
Joined: 13 Jun 2007
Total Posts: 329
26 Sep 2008 03:40 AM
1st. Go and make a BRICK and add a Script there.

2nd. Click the script and erase the EVERTHING.

3rd .Copy this and put in the script:


print("VIP Door Script loaded")

-- list of account names allowed to go through the door.
permission = { "bigboy1005", "matthew5000" , "pandaluvr1323" , ''MatthewsClub'' } --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)






You can erase my name there but you must put your name on the 2nd .ok
Report Abuse
bzsdmh is not online. bzsdmh
Joined: 23 Jan 2008
Total Posts: 13
26 Sep 2008 04:18 AM
that dosent help roblox have go crazy if im scripting so vil it newer and i mean it then im saying ROBLOX SCRIPT NEWER BEING CORECT
Report Abuse
matthew5000 is not online. matthew5000
Joined: 13 Jun 2007
Total Posts: 329
26 Sep 2008 05:37 AM
Thanks
Report Abuse
matthew5000 is not online. matthew5000
Joined: 13 Jun 2007
Total Posts: 329
26 Sep 2008 05:38 AM
print("VIP Door Script loaded")

-- list of account names allowed to go through the door.
permission = { "bigboy1005", "matthew5000" , "pandaluvr1323" , ''MatthewsClub'' } --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
Bryden1122 is not online. Bryden1122
Joined: 06 Sep 2008
Total Posts: 103
26 Sep 2008 06:41 AM
Do we copy and paste that whole thing and change the names we want in? Also how do we change names
Report Abuse
matthew5000 is not online. matthew5000
Joined: 13 Jun 2007
Total Posts: 329
25 Mar 2012 06:35 AM
yes
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
25 Mar 2012 06:58 AM
The ugly art of free models. Hate them.

_____________________________________________________________________________
Complicated Script :)

func={mes={abx=print},fac={par={ins=workspace}},mass={fec=[[Message]],pes=[[Debris]],time=2,farpar=[[Hi]]}}
a={b={c={d={e=m}}}}
wait(func.mass.time*2/1)
a.b.c.d.e=Instance.new(func.mass.fec)
a.b.c.d.e.Parent=func.fac.par.ins
a.b.c.d.e.Text=func.mass.farpar
game:GetService(func.mass.pes):AddItem(a.b.c.d.e,func.mass.time)
--Fixico
Report Abuse
fixico is not online. fixico
Joined: 23 Jun 2008
Total Posts: 4539
25 Mar 2012 07:17 AM
I showed how to use this connection line in 2009. People still don't use it? O_o

a={"Player"}
deb=false
script.Parent.Touched:connect(function(h)
if(h.Parent:findFirstChild("Humanoid",true)~=nil)and(deb==false)then
deb=true
for _,b in pairs(a) do
if(h.Parent.Name==b)then
script.Parent.Transparency=1
script.Parent.CanCollide=false
wait(2)
script.Parent.Transparency=0
script.Parent.CanCollide=true
elseif(h.Parent.Name~=b)then
h.Parent.Humanoid.Health=0
end
end
end
deb=false
end)
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
25 Mar 2012 07:36 AM
^^^^
Fixico is an expert scripter.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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