of     1   

JuJuTia
#1103844Monday, May 26, 2008 1:08 AM GMT

Make a brick that doesn't let anything through on one side (bricks, players, zombies, ect...) but lets things through on the other side?
1waffle1
#1103888Monday, May 26, 2008 1:12 AM GMT

1 way door. A button door.
Arinth
Top 100 Poster
#1103950Monday, May 26, 2008 1:17 AM GMT

Yup theres one at my place, If you need an example.
FlashJoeW
Top 100 Poster
#1107474Monday, May 26, 2008 10:05 AM GMT

my 1 way door...
randomrobot
Top 100 Poster
#1107633Monday, May 26, 2008 11:07 AM GMT

You people are so simple, lol If you are making a house or something like that, add this script to the floor: function onTouch(hit) h = hit.Parent:findFirstChild("Humanoid") if h==nil then return "not a living object" else if h.Parent:findFirstChild("Went through door")==nil then v = Instance.new("IntValue") v.Name = "Went through door" v.Parent = h.Parent else return "already went through door" end end end script.Parent.Touched:connect(onTouch) This is the door script: door = script.Parent debounce = true function onTouch(hit) if debounce==true then debounce==false h = hit.Parent:findFirstChild("Humanoid") if h==nil then return "not a living object" else if h.Parent:findFirstChild("Went through door")==nil then door.CanCollide = false door.Transparency = 0.5 wait(4) door.CanCollide = true door.Transparency = 0 else return "already went through door" end end debounce = true end end
Dr01d3k4
#1107706Monday, May 26, 2008 11:23 AM GMT

Fixed :) function onTouched(hit) local h = hit.Parent:findFirstChild("Humanoid") if (h ~= nil) then if (h.Parent:findFirstChild("Went through door") ~= nil) then return end v = Instance.new("IntValue") v.Name = "Went through door" v.Parent = h.Parent end end script.Parent.Touched:connect(onTouch) This is the door script: door = script.Parent debounce = false function onTouched(hit) local h = hit.Parent:findFirstChild("Humanoid") if (h ~= nil) then if (h.Parent:findFirstChild("Went through door") ~= nil) then return end if (debounce == false) then debounce = true door.CanCollide = false door.Transparency = 0.5 wait(4) door.CanCollide = true door.Transparency = 0 debounce = false end end end script.Parent.Touched:connect(onTouched)
randomrobot
Top 100 Poster
#1107709Monday, May 26, 2008 11:24 AM GMT

I bet you didn't even test mine.
Dr01d3k4
#1107726Monday, May 26, 2008 11:27 AM GMT

I didn't and I noticed mistakes. If you use "return", you don't need "else" and I don't know if you can do this: return "not a living object"
randomrobot
Top 100 Poster
#1107734Monday, May 26, 2008 11:28 AM GMT

Whoops, I forgot the connection line. That was the problem.
randomrobot
Top 100 Poster
#1107735Monday, May 26, 2008 11:28 AM GMT

That was the ONLY problem.
randomrobot
Top 100 Poster
#1107748Monday, May 26, 2008 11:30 AM GMT

Fix: door script: door = script.Parent debounce = true function onTouch(hit) if debounce==true then debounce=false h = hit.Parent:findFirstChild("Humanoid") if h==nil then return "not a living object" else if h.Parent:findFirstChild("Went through door")==nil then door.CanCollide = false door.Transparency = 0.5 wait(1) door.CanCollide = true door.Transparency = 0 else return "already went through door" end end debounce = true end end script.Parent.Touched:connect(onTouch) floor script: function onTouch(hit) h = hit.Parent:findFirstChild("Humanoid") if h==nil then return "not a living object" else if h.Parent:findFirstChild("Went through door")==nil then v = Instance.new("IntValue") v.Name = "Went through door" v.Parent = h.Parent else return "already went through door" end end end script.Parent.Touched:connect(onTouch)
Dr01d3k4
#1107754Monday, May 26, 2008 11:31 AM GMT

If you use return, you don't use else. Another problem. E.G. function onTouched(hit) local h = hit.Parent:findFirstChild("Humanoid") if (h == nil) then return end h.Health = h.Health -100 end script.Parent.Touched:connect(onTouched)
randomrobot
Top 100 Poster
#1107758Monday, May 26, 2008 11:32 AM GMT

No, you're wrong. My fixed scripts work.
Dr01d3k4
#1107761Monday, May 26, 2008 11:33 AM GMT

So do mine.
randomrobot
Top 100 Poster
#1107771Monday, May 26, 2008 11:36 AM GMT

Mine look awesomer >:O lol, jk

    of     1