|
| 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 |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 28 Feb 2016 05:31 AM |
| If you have skype tell me your ID so it's getting easier, thank you. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|