|
| 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
|
  |
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 25 Mar 2012 07:36 AM |
^^^^ Fixico is an expert scripter. |
|
|
| Report Abuse |
|
|