manguy12
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 3402 |
|
|
| 21 Jul 2011 06:34 PM |
I know this exists, I've had it before.
I need a model of a brick that only the person who has the name in the script can go through, but other players can't. Like, it's always "Can't Colide" but it's always "Can Colide" for other players. No, not a VIP door. Just a brick where I can go inside, then other players or objects try to get me, they can't they'll just go against it. While I'll be inside of it. I'll be able to still move though inside of it. So, can anyone give me the model or better yet, the script? |
|
|
| Report Abuse |
|
|
| |
|
ccnesbitt
|
  |
| Joined: 24 Jul 2008 |
| Total Posts: 1450 |
|
| |
|
|
| 21 Jul 2011 06:37 PM |
local user = "Player" -- change this to the name of the person the personal door belongs to
local door = script.Parent local doorTransparency = door.Transparency
function onTouched(hit) local character = hit.Parent
if character:FindFirstChild("Humanoid") then if string.lower(character.Name) == string.lower(user) then door.CanCollide = false door.Transparency = 0.4
wait(4) -- You can change the number to the amount of seconds you want the door to be open door.CanCollide = true door.Transparency = doorTransparency else character:BreakJoints() -- remove this line if you want a non-killing door end end end
script.Parent.Touched:connect(onTouched)
The door does not kill. |
|
|
| Report Abuse |
|
|
| |
|
manguy12
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 3402 |
|
|
| 21 Jul 2011 06:44 PM |
| UnicornSlay, that door closes, I want one that stays open forever but only the owner can go inside it, to other people it's solid. |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2011 06:46 PM |
That what this does.
I've used it. |
|
|
| Report Abuse |
|
|
manguy12
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 3402 |
|
|
| 21 Jul 2011 06:51 PM |
| UnicornSlayR it doesn't stay open all the time for the owner. It just closes on everything after 4 seconds, I want one that ONLY the owner can go through. It never opens, and it never closes. It's always open and the owner can go through it and stand in it while other people can't get into it. |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2011 06:52 PM |
| I've never seen that. That's the closest you got broski. |
|
|
| Report Abuse |
|
|
manguy12
|
  |
| Joined: 10 Nov 2008 |
| Total Posts: 3402 |
|
|
| 21 Jul 2011 06:55 PM |
| I've seen it, a girl had it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jul 2011 11:18 AM |
@manguy You mean a door that doesn't let people through but only you? I have no clue how that would work |
|
|
| Report Abuse |
|
|