|
| 04 Oct 2011 06:38 PM |
db = false owner = script.Parent.Parent.OwnerName door = script.Parent door.Touched:connect(function(hit) h = hit.Parent:FindFirstChild("Humanoid") p = game.Players:FindFirstChild(hit.Parent.Name) if h and p == owner.Value and db == false then door.CanCollide = false db = true wait(1) db = false else print("DB!!!!") hit.Parent:BreakJoints() end end)
It wont work even though the OwnerName is Player. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 04 Oct 2011 07:16 PM |
| UMG Can I please get some help? |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2011 07:21 PM |
Next time post the output, please.
db = false owner = script.Parent.Parent.OwnerName door = script.Parent door.Touched:connect(function(hit) if hit.Parent.Name == owner.Value and not db then door.CanCollide = false db = true wait(1) db = false door.CanCollide = true else print("DB!!!!") hit.Parent:BreakJoints() end end)
-[::ƧѡÎḾḠΰῩ::]- -[::Maker of stuff and breaker of combos::]-
|
|
|
| Report Abuse |
|
|
mazmatu
|
  |
| Joined: 05 Sep 2011 |
| Total Posts: 2 |
|
| |
|
| |
|
| |
|