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
4 days 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.

Hi.

Looks like you're using an ad blocker.

That's fine...

No, it really is.

Just, I mean, we put a lot of work into this site, you know?

It would be really really appreciated if you would turn off your ad blocker for our website...

We tried really hard to make our ads as unobtrusive as possible.

If you really hate ads, would you consider a $2 donation via Patreon?

Here's the link.

We love you. We hope you love us too.

.

..

...

Now back to your regularly scheduled Scripting Helpers....

...

..

.

1 answer

Log in to vote
1
Answered by
Xternl 5
4 days ago
Edited 4 days 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
Ad