HOW TO MAKE A GAMEPASS ONLY DOOR | Roblox Studio Tutorial

Itz_FloppyFish
Itz_FloppyFish
22.9 هزار بار بازدید - 11 ماه پیش - In todays video I show
In todays video I show you how to make a gamepass only door in Roblox Studio, This is a great thing to have in your Roblox game as it gives gamepass owners another perk of having a special area or access to somewhere a normal player isnt allowed. I Hope you enjoyed the video, Have a lovely rest of your day! If you are a bit confused what to do, Feel free to create a ticket in my discord server and we can help you out!

Script: (Local Script in StarterPlayerScripts):

local GamepassID = 1234567890 -- Replace with your Gamepass ID
local GamepassDoor = game.Workspace:WaitForChild("GamepassDoor") -- Change GamepassDoor to whatever your part is called which will open

local function checkGamepass(Player)
   return game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Player.UserId, GamepassID)
end

local function openDoorForPlayer(player)
   if checkGamepass(player) then
       GamepassDoor.Transparency = 1 -- You can adjust the transparency here
       GamepassDoor.CanCollide = false
   end
end

while true do
   openDoorForPlayer(game.Players.LocalPlayer)
   wait(3) -- Wait for 3 seconds before checking again if the player has the gamepass.
end


-- Made with love by Floppy

NEW! Floppys Simulator Game:  https://www.roblox.com/games/13963457...

FloppyFish Merch Store: https://itz-floppyfish.creator-spring...

If you would like to support me even more, Super Thanks and becoming a Member is also another way to show your appreciation!

🌟 Floppys Discord Server: Discord: discord
🌟 Floppys Roblox Game : https://www.roblox.com/games/11301003...

Roblox Studio Tutorial
Roblox Studio
Studio Tutorials
11 ماه پیش در تاریخ 1402/06/25 منتشر شده است.
22,924 بـار بازدید شده
... بیشتر