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
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)
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.
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?