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
 

Card door help

Previous Thread :: Next Thread 
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
20 Apr 2014 04:09 PM
Ok, so I'm making a door that can accept different levels of cards, so Level 4 can open level 1,2,3,4 but Level one can only open level 1, ect.
So, it's not working. Here's the script if someone could point out the problem.

print("Door Script loaded")

permission = { "Level1", "Level2", "Level3", "Level4" }
nopermission = { "CardB", "CardA" }
Door = script.Parent.Parent.Door
Sensor = script.Parent

function checkOkToLetIn(name)
for i = 1,#permission do

if (string.upper(name) == string.upper(permission[i])) then return true end
end
return false
end
function notOkToLetIn(name)
for i = 1,#permission do

if (string.upper(name) == string.upper(nopermission[i])) then return true end
end
return false
end

function onTouched(hit)
print("Sensor Hit")
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
if (checkOkToLetIn(human.Parent.Name)) then
wait(0.1)
Door.Transparency = 1
Door.CanCollide = false
wait(3)
Door.CanCollide = true
Door.Transparency = 0
elseif (notOkToLetIn(human.Parent.Name)) then
wait(1)
end
end

end

connection = Sensor.Touched:connect(onTouched)
Report Abuse
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
20 Apr 2014 04:17 PM
Halp?
Report Abuse
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
20 Apr 2014 04:29 PM
Please halp.
Report Abuse
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
20 Apr 2014 05:14 PM
HALP
Report Abuse
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
20 Apr 2014 08:23 PM
I need help badly.
Report Abuse
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
21 Apr 2014 01:23 PM
Please help
Report Abuse
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
21 Apr 2014 03:38 PM
Help?
Report Abuse
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
21 Apr 2014 04:31 PM
Help me
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
21 Apr 2014 04:32 PM
OUTPUT.
YOU THINK WE FIGURE OUT YOUR PROBLEMS?
Report Abuse
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
21 Apr 2014 04:36 PM
Yeah, you guys help figure out my problems.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
21 Apr 2014 04:39 PM
No we dont. How about you go back to figuring out your scripts because we dont really care about your problems, we just enjoy helping others. If you dont cooperate, I suggest leaving.

http://www.roblox.com/link-to-place?id=123274290
Report Abuse
tommyfun is not online. tommyfun
Joined: 04 Jan 2011
Total Posts: 1404
21 Apr 2014 04:42 PM
Perhaps you look at the name of the forum. "Scripting Helpers" Also, what about that forum you posted, asking for help. I suppose you should also get out for asking how to fix it.
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