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: scanning door script

Previous Thread :: Next Thread 
helpsyouattime is not online. helpsyouattime
Joined: 24 Jun 2011
Total Posts: 345
22 Feb 2012 08:17 PM
can anyone tell me the scan door script please,somehow i can not make the script right or idk what i'm doing wrong
Report Abuse
hyrumcoop is not online. hyrumcoop
Joined: 21 Mar 2009
Total Posts: 618
22 Feb 2012 08:44 PM
Ok. I will help you. Write a script, then post it here. I will help you figure out what's wrong.
Report Abuse
helpsyouattime is not online. helpsyouattime
Joined: 24 Jun 2011
Total Posts: 345
22 Feb 2012 08:49 PM
ok
Report Abuse
hyrumcoop is not online. hyrumcoop
Joined: 21 Mar 2009
Total Posts: 618
22 Feb 2012 08:53 PM
Are you going to write one, or post one you've written?
Report Abuse
helpsyouattime is not online. helpsyouattime
Joined: 24 Jun 2011
Total Posts: 345
22 Feb 2012 08:55 PM
ill do it in a bit
Report Abuse
hyrumcoop is not online. hyrumcoop
Joined: 21 Mar 2009
Total Posts: 618
22 Feb 2012 08:55 PM
Well, I'll only be on a little longer tonight, so try to make it fast....
Report Abuse
helpsyouattime is not online. helpsyouattime
Joined: 24 Jun 2011
Total Posts: 345
22 Feb 2012 08:56 PM
ill have it on tomorow
Report Abuse
hyrumcoop is not online. hyrumcoop
Joined: 21 Mar 2009
Total Posts: 618
22 Feb 2012 09:01 PM
In the morning?
Report Abuse
helpsyouattime is not online. helpsyouattime
Joined: 24 Jun 2011
Total Posts: 345
22 Feb 2012 09:01 PM
ya
Report Abuse
hyrumcoop is not online. hyrumcoop
Joined: 21 Mar 2009
Total Posts: 618
22 Feb 2012 09:02 PM
Nvm. I have subscribed to this, so I can make sure no matter what i am able to help you :)
Report Abuse
helpsyouattime is not online. helpsyouattime
Joined: 24 Jun 2011
Total Posts: 345
22 Feb 2012 09:03 PM
thankyou
Report Abuse
helpsyouattime is not online. helpsyouattime
Joined: 24 Jun 2011
Total Posts: 345
23 Feb 2012 12:30 PM
permission = {"helpsyouattime"} -- just copy and paste the ???'s as many names as needed
p = script.Parent
pp = p.Parent
Door = pp.Door
S = pp.Botton.Scanner
L = pp.Botton.Light
debounce = false

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 onTouched(part)
N = part.Parent.Name
local h = part.Parent:findFirstChild("Humanoid")
if h ~= nil and debounce == false then
debounce = true
h.Parent.Torso.Anchored = true
m = Instance.new("Message")
m.Parent = game.Players:findFirstChild(N)
m.Text = "Door Scanner Activated"
wait(1)
m.Text = "Now Scanning. " ..N.. " ..."
S.Transparency = 0.5
wait(1)
if (checkOkToLetIn(h.Parent.Name)) then
m.Text = "Scanning complete...."
S.Transparency = 1
L.BrickColor = BrickColor.new(37)
h.Parent.Torso.Anchored = false
wait(3)
m.Text = "Welcome!"
S.Transparency = 1
Door.CanCollide = false
Door.Transparency = 0.5
wait(4)
Door.CanCollide = true
Door.Transparency = 0
L.BrickColor = BrickColor.new(1)
debounce = false
m:remove()
else m.Text = "Die intruder hahaha!"
S.Transparency = 1
L.BrickColor = BrickColor.new(21)
wait(3)
h.Parent.Torso.Anchored = false
h.Health = 0
m:remove()
wait(1)
L.BrickColor = BrickColor.new(1)
debounce = false
end
end
end

connection = p.Touched:connect(onTouched)
Report Abuse
TheSoMekTime is not online. TheSoMekTime
Joined: 14 Mar 2009
Total Posts: 191
23 Feb 2012 01:46 PM
I actually don't think you are doing anything wrong, except the fact you didn't capitalize some of the important things, ROBLOX is Case-Sensitive when it comes to LUA, for all those p.Parent etc. Maybe you should try capitalizing them.

I'm not sure that is the case.
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
23 Feb 2012 01:47 PM
All coding is case sensitive.
Report Abuse
TheSoMekTime is not online. TheSoMekTime
Joined: 14 Mar 2009
Total Posts: 191
23 Feb 2012 02:05 PM
Yeah, all the coding is Case-Sensitive, therefore I think the problem is your cases.

Silly mistakes.
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