Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can make it so only one player can walk through a brick[NOT POSSIBLE YET, SOLVED]?

Asked by 9 years ago

How can you make it so only one player or certain group of players can walk through a brick. I do not wish to accomplish this with killing, teleporting, or setting the cancollide so that two players could go in at once. I've seen it done more and more and I'm dying to know. Don't give me code, just tell me how its done, like what I should look into to figure it out.

1
Eventually, ROBLOX plans to release collision filters (which is actually currently in development). Collision filters will make it so that you can specifically define objects which can pass through each other and many other uses of the like. For the moment, I'm not sure how to accomplish what you describe in a decent manner. Sorry. Programmix 285 — 9y
1
You could use local parts. drslicendice 27 — 9y

1 answer

Log in to vote
3
Answered by 9 years ago

Turn on FilteringEnabled and make a LocalScript that sets the door's CanCollide to false if the player is that one player or in that group of players.

0
The issue with that is that the character on the client and the server will get desynchronized, which can easily cause problems. Programmix 285 — 9y
0
I'll try it and see if it works dragonkeeper467 453 — 9y
0
It worked fine for me, I don't understand what problems could occur Programmix, could you explain please, just the most common problems would be fine dragonkeeper467 453 — 9y
Ad

Answer this question