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: Whats wrong with this script?

Previous Thread :: Next Thread 
EnzoDaVinci is not online. EnzoDaVinci
Joined: 14 Apr 2011
Total Posts: 3730
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 is not online. 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
dslink2009 is not online. dslink2009
Joined: 05 Jul 2010
Total Posts: 1108
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
dslink2009 is not online. dslink2009
Joined: 05 Jul 2010
Total Posts: 1108
21 Aug 2011 06:47 PM
Darn, i'm late.
Report Abuse
EnzoDaVinci is not online. EnzoDaVinci
Joined: 14 Apr 2011
Total Posts: 3730
21 Aug 2011 06:47 PM
Thanks.
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