of     1   

IamTheBigSalami
#46534421Monday, May 02, 2011 10:16 AM GMT

you = "Bikerking200" function onTouched(hit) if hit.Parent.Name == you then script.Parent.Transparency = 0.5 script.Parent.CanCollide = false print("User Approved!") wait(2) script.Parent.Transparency = 0 script.Parent.CanCollide = true else print("No.") end end script.Parent.Touched:connect(onTouched) It wont let me in.
allofthese
#46534495Monday, May 02, 2011 10:20 AM GMT

? local you = "Bikerking200" local db function onTouched(hit) if db then return end if hit.Parent.Name:lower() == you:lower() then db = true script.Parent.Transparency = .5 script.Parent.CanCollide = false print("User Approved!") wait(2) script.Parent.Transparency = 0 script.Parent.CanCollide = true db = false else print("No.") end end script.Parent.Touched:connect(onTouched)
Disti15
#46534498Monday, May 02, 2011 10:20 AM GMT

change you "Bikerking200" with you = "bikerking200" --Notice the caps
Robert00001
#46536303Monday, May 02, 2011 11:43 AM GMT

bikerking, The b in you name is lowercase. local you = "bikerking200" local db = false function onTouched(hit) if db then print("Debounce was true") return end if hit.Parent.Name == you then db = true script.Parent.Transparency = 0.5 script.Parent.CanCollide = false print("User Approved!") wait(2) script.Parent.Transparency = 0 script.Parent.CanCollide = true db = false else print("No.") end end script.Parent.Touched:connect(onTouched)
IamTheBigSalami
#46537769Monday, May 02, 2011 12:50 PM GMT

Allofthese`s script worked sorry i forgot to post that.
eldranoe
#56778869Saturday, October 22, 2011 12:47 PM GMT

I can't do it either!
IamTheBigSalami
#56778892Saturday, October 22, 2011 12:47 PM GMT

Why did you bump my 5 month old thread?
fremontboy
#56779013Saturday, October 22, 2011 12:52 PM GMT

[ Content Deleted ]
IamTheBigSalami
#56779035Saturday, October 22, 2011 12:53 PM GMT

Lol this was when I was a noob at scripting in RBX.Lua.
NBCKing
#56781390Saturday, October 22, 2011 1:58 PM GMT

In your name, you used caps, as you don't have caps in your name. Yes, it makes a difference.
IamTheBigSalami
#56781879Saturday, October 22, 2011 2:09 PM GMT

Omg let this thread Die this thread was from 5 months ago!.=
mathgeek008
#138870204Tuesday, July 01, 2014 4:37 PM GMT

script.Parent.Touched:connect(function(hit) local name=hit.Parent.Name if name=='insert name here' then script.Parent.Transparency=0.5 script.Parent.CanCollide=false else local h=hit.Parent:findFirstChild("Humanoid") if h~=nil then h.Health=0 end end end) I posted this 3 years after it was posted. Sorry for being a rebel.
Stefan631
#138870413Tuesday, July 01, 2014 4:39 PM GMT

I'm sorry, you just killed me.

    of     1