|
| 19 Oct 2013 11:31 PM |
door = script.Parent
function onTouch(hit) if hit.Parent == nil then return end local h = hit.Parent:FindFirstChild("Humanoid") if h ~= nil then hit.Parent.Torso.Velocity=door.CFrame.lookVector * 100 -- Push the Player back end end door.Touched:connect(onTouch)
It does a good job but if you keep on going to it, you get in :/ Any help? |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2013 11:33 PM |
Is this a one way door?
If not, set the door's cancollide to true. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2013 11:34 PM |
| Yes, it is a one way door. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|