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 » Scripters
Home Search
 

Re: Help me with the script of Keycard Door.

Previous Thread :: Next Thread 
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 04:59 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)

Which one should I change?
Report Abuse
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 05:12 AM
BUMP.
Report Abuse
Craftero is online. Craftero
Joined: 24 Jun 2011
Total Posts: 1451
28 Feb 2016 05:13 AM
I'm don't really understand the post.
Why would you want to change something?
Report Abuse
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 05:21 AM
Umm, I am asking which part of script I can change, so it apply to the card.

I am using Keycard Door made by Protune.
Report Abuse
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 05:26 AM
BUMP...
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
28 Feb 2016 05:27 AM
It sounds like it already does what you want it to.
You are saying "I have this keycard door and I need it to open with a keycard"
Report Abuse
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 05:30 AM
I have the keycard door and I have the keycard already, but I am planning to make a hotel. So I need to change different id for different rooms and different cards.
Report Abuse
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 05:31 AM
If you have skype tell me your ID so it's getting easier, thank you.
Report Abuse
AdvertisementBoy is not online. AdvertisementBoy
Joined: 13 Jan 2014
Total Posts: 63
28 Feb 2016 06:12 AM
BUMP, please tell me which part of script that if you change doesn't affect the whole script, I want to know the ID part of the script.
Report Abuse
Craftero is online. Craftero
Joined: 24 Jun 2011
Total Posts: 1451
28 Feb 2016 07:12 AM
I would suggest changing the CardNumber in the script and the CardNumber Value, found at Card.Parent.CardNumber.Value. Ensure each value is the same and I would imagine it will work, if done properly.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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