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 » Roblox » All Things ROBLOX
Home Search
 

Re: Help me on Keycard Door script.

Previous Thread :: Next Thread 
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 04:52 AM
Hello guys, I am building new hotel and I found a Keycard Door but I don't know how to change the script, please help me on this, thank you.

local deb = false
local continue = false
local CardNumber = {0, 1, 2}

function Swipe1(Card)
Card.Transparency = 1
Card.SurfaceGui.Enabled = false
local a = script.Parent.RFID1.Key:Clone()
a.Parent = script.Parent.RFID1
a.SurfaceGui.Enabled = true
a.Transparency = 0
for i=1,25 do
wait(0.005)
a.CFrame = a.CFrame * CFrame.new(0.04,0,0)
end
a:Destroy()
Card.Transparency = 0
Card.SurfaceGui.Enabled = true
end

function unlock1(Card)
if Card == nil then return end
if Card.Parent == nil then return end
if Active then return end
Active = true
if Card.Parent:FindFirstChild("CardNumber") ~= nil then
Swipe1(Card)
for id=1, #CardNumber do
if Card.Parent.CardNumber.Value == CardNumber[id] then
Accepted = true
end
wait()
end
if Accepted then
script.Parent.RFID1.LED.BrickColor = BrickColor.new("Lime green")
script.Parent.allowed.Value = true
wait(2)
script.Parent.RFID1.LED.BrickColor = BrickColor.new("Bright orange")
script.Parent.allowed.Value = false
end
if not Accepted then
script.Parent.RFID1.LED.BrickColor = BrickColor.new("Really red")
wait(2)
script.Parent.RFID1.LED.BrickColor = BrickColor.new("Bright orange")
end
Accepted = false
end
Active = false
end

script.Parent.RFID1.Union.Touched:connect(unlock1)

What should I change?
Report Abuse
pk_fire is not online. pk_fire
Joined: 03 Sep 2011
Total Posts: 684
28 Feb 2016 04:52 AM
http://forum.roblox.com/Forum/ShowForum.aspx?ForumID=33



http://www.roblox.com/SSB4-Bayonetta-item?id=359806919 Fly me to the moon!
Report Abuse
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 04:54 AM
Man seriously, BUMP!
Report Abuse
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 04:56 AM
BUMP again, BUMP 4 LYFE!
Report Abuse
DreamHeaven is not online. DreamHeaven
Joined: 05 Jul 2014
Total Posts: 96669
28 Feb 2016 04:58 AM
wrong forum go here: http://forum.roblox.com/Forum/ShowForum.aspx?ForumID=33


Report Abuse
iWxlfy is not online. iWxlfy
Joined: 02 Dec 2014
Total Posts: 1530
28 Feb 2016 05:10 AM
What's the point of making a hotel anyway?

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • 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