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

How do I make it so someone who bought a game pass can walk thorugh a wall? [closed]

Asked by 8 years ago

I am wondering how to make a special "VIP" Door. I have seen in other games that people who bought the VIP pass can walk through a door, while others can't. Could you please let me know how to do this.

Thanks, se22an21 :D

Closed as Not Constructive by Uroxus, koolkid8099, and ChemicalHex

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Acheo 230 Moderation Voter
8 years ago

For this method, you could use CurrentCamera. With CurrentCamera, you can insert parts that only a specific client sees. Importantly, this method can only be used with a LocalScript.

Here's an example of a LocalScript that would only allow a certain player to see a newly-created part.

part = Instance.new("Part", game.Workspace.CurrentCamera)
  • CurrentCamera only affects the client who has the LocalScript.

Of course for this to work with the gamepass you'd have to replicate a part or create one for those who do not have the gamepass. Once you've done that, you simply place it into the client's CurrentCamera.

Take note that LocalScripts cannot access the information of MarketService so you will have to most likely clone a LocalScript or simply create some other approach.

0
I think you've over-complicated the question. From what he's asking I thought it was just a simple VIP door which there are hundreds of already on free models, not walls that only specific people can see? Uroxus 350 — 8y
0
I agree. He simply wants to know how would you have certain people be able to walk through a door while others can not. koolkid8099 705 — 8y
Ad