How To Make a GAMEPASS ONLY DOOR | Roblox Studio Guide
HTML-код
- Опубликовано: 5 окт 2024
- Hello! In this video I show you how you can make a gamepass only door for your game. this door will only be able to be walked through if the players owns the gamepass.
danielfantastic Discord:
/ discord
SCRIPT:
local GamepassID = 0000000000 -- Change To Gamepass ID
local GamepassDoor = game.Workspace:WaitForChild("GamepassDoor")
local function checkGamepass(Player)
return game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, GamepassID)
end
local function openDoorForPlayer(player)
if checkGamepass(player) then
GamepassDoor.Transparency = 1
GamepassDoor.CanCollide = false
end
end
while true do
openDoorForPlayer(game.Players.LocalPlayer)
wait(3)
end
______________________________
Robux Giveaway for 100 subs??
Let Me Know In The Discord.
Thank You For Watching!
Like and Subscribe For More Videos Like This!
Idk if im only one but it doesnt work for some reason
It don’t work for me
dont work??
@@xplayzmoregames-qy1yw nerp
make sure you dont have the words SCRIPT: in your script
Thank you so much i try to find tutorials like this but they never worked but you saved me thank you so much
thank you so much
Danielfantastic(u are a fantastic youtuber) can u make a car gamepass?Like u buy a gamepass for 800 and after that u have access to the cars, no worries if u can’t do that vid
Thank you, and yes I can work on that!
tysm my man
THANK YOU SO MUCH
for ne it didnt work i did all the steps right it dosent work, can you please tell me why though?
thank you so much! it actually works, all the other videos didnt!
Tysmm! This helped me SOOOO MUCH and works. Plus its easy. I would definitely recommend this! (+1 subscriber and like)
yay now I can add a game pass only morph in my Roblox rp game
TYSM
Thank You It Works!
You're welcome!
@@danielfantasticstudio it didn’t work
@@Ameer-gaming236 yea it doesnt work for no reason
i put the gamepass id in the script template, so that roblox can identify that i made the gamepass that i bought meaning that i automatically have it in my iventory and the door should open even though it didn't work, why?
for some reason, when i put in the gamepass it didnt work
THANK YOU SO MUCH FOR GAMEPASS KEEP IT UP
ty so much
PLLSSS HELP ME I CANT MAKE IT WORK
Dude Thanks Alot!
danielfantastic, can you make a td game?
A tower defense game?
@@danielfantasticstudio i think so
yo bro, Im doing everything you've told other people to do if their door didn't work, and I wanted to know if I can share the game with you, because I have no idea what I'm doing wrong
not working for me either
Thanks bro it worked!!!
THANK YOU SOOO MUUUCHHH❤❤❤❤❤❤❤❤
UNDERRATED
brother, I wanted to ask, when a player has not bought a gamepass, if he comes to this door, will he have an offer to buy? I checked on my second account and it's not there. How can I fix this?
Wait It worked alot how will ppl buy it? Were is the buy button? Can u do it for other video?
tysm man!
Danielfantastic what do I do if it doesn't open even though I have the pass
did this over and over not working, maybe i have other scripts in game affecting it
yes i did have something interfering
i luvvvvv uuuuu it worked
no offense tho ur a good dev (better then me)
your channel is so underrated!!!
hey this doesnt work when i played the game the foor didint open
Copy the asset id from the url, and if that doesn’t work copy the asset id through the three little dots on the game.
@@danielfantasticstudio oh thanks it works now!
@@danielfantasticstudio i have been trying that to and i just dont know why it wont work
it didnt work for me :( idk why but thank you either way!
why it no work :(
Thx
Does not work
Didn’t work…
thanks
exactly
dosent work :(
ty!!!!!!!!!!
What is true do
when i add a second gamepass door it doesnt open
I dont know if i can help you because i cant script that well, but if your trying to make the door open if you have 2 gamepasses, then maybe in the ID you can say "(ID) or (ID)", and if you want both then "(ID) and (ID)" but as said before i cant script. however you can duplicate the wall and put it a bit behind the other wall and make it activate from 2 different gamepasses in the script, as for the or part, you can divide the wall and make 2 doors, with the different gamepass ID, if you need any help then let me know
It didn’t work
Same
You didn't do it correctly probably
@@Rares-001 i followed step to step of this video and didn't work for me too, it's not my fault, probably it's a bug
@@carlospecanha1826 it worked in my roblox studio version
@@carlospecanha1826 maybe your version wasn't the correct one and the scripts were outdated
omg
I would like more ; u pay the door to pass, the door opening cost itself and not a game pass permit just pass
have u a solution ?
THANK YOU SO MUCH