|
| 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
|
  |
| 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 |
|
|
| |
|
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 |
|
|
| |
|
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 |
|
|
| |
|
hyrumcoop
|
  |
| Joined: 21 Mar 2009 |
| Total Posts: 618 |
|
| |
|
| |
|
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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 14 Oct 2010 |
| Total Posts: 4969 |
|
|
| 23 Feb 2012 01:47 PM |
| All coding is case sensitive. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|