|
| 21 Aug 2011 06:36 PM |
VIP door:
Door = script.Parent
script.Parent.Touched:connect(function(part)
local h = part.Parent:findFirstChild("Humanoid") if h ~= nil then local n = part.Parent.Name if n == ("EnzoDaVinci", "megamaxxor", "Iownyou4682", "Ristone3", "superpoop7", "superflash6969" ) then
Door.Transparency = 0.5 Door.CanCollide = false end end end)
Output says: '')' expected near ',' in line 8.' |
|
|
| Report Abuse |
|
|
kingimpy
|
  |
| Joined: 22 May 2008 |
| Total Posts: 1842 |
|
|
| 21 Aug 2011 06:45 PM |
Door = script.Parent
script.Parent.Touched:connect(function(part) Names = {"EnzoDaVinci", "megamaxxor", "Iownyou4682", "Ristone3", "superpoop7", "superflash6969"} local h = part.Parent:findFirstChild("Humanoid") if h then local n = part.Parent for Imp = 1, #Names do if Names[Imp].Name == part.Parent.Name then Door.Transparency = 0.5 Door.CanCollide = false end end end end)
--KingImpy |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2011 06:45 PM |
Door = script.Parent derp = {"EnzoDaVinci", "megamaxxor", "Iownyou4682", "Ristone3", "superpoop7", "superflash6969"}
script.Parent.Touched:connect(function(part)
local h = part.Parent:findFirstChild("Humanoid") if h ~= nil then local n = part.Parent.Name for i = 1, #derp do if n == derp[i] then Door.Transparency = 0.5 Door.CanCollide = false end end end end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|