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

How do you make a door that prompts the gamepass if you touch it? [closed]

Asked by
Laxona -2
7 years ago

So, for better sense, it's like doors at DD, it requires a gamepass to get into a specific area and when you're inside ere you are able to like go upstairs and whatnot. So if you touch the door and own the gamepass you can go right through, but if you don't and you touch the door it'll prompt up a purchase tab for you to buy it, and if you don't purchase it it'll just keep repeating it if you go to the door. If you know how to make a script or link a video to me, or basically just have a script I can borrow or model I'd appreciate it so much, thanks!

Closed as Not Constructive by creeperhunter76 and Goulstem

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
1
Answered by
Xternl 7
7 years ago
Edited 7 years ago

Once they touch the door, you can check to see if they own the pass using PlayerOwnsAsset from the MarketplaceService. If they don't own it prompt them with a purchase.

MarketplaceService

PlayerOwnsAsset

You can use this as a guide for the door.

Ad