HOW TO MAKE A GAMEPASS PROMPT WHEN A PART IS TOUCHED | Roblox Studio Tutorial

preview_player
Показать описание
In todays short video I show you how to make a gamepass prompt when a part is touched in Roblox Studio. 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 message me on Discord and Ill help you out!

Script:

local GamepassID = 1234567890-- Change this ID to your gamepass ID
local MarketplaceService = game:GetService("MarketplaceService")

script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then -- If the part detects a humanoid then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
MarketplaceService:PromptGamePassPurchase(plr,GamepassID)
end
end)

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

Roblox Studio Tutorial
Roblox Studio
Studio Tutorials
Рекомендации по теме
Комментарии
Автор

In todays video I show you how to make a gamepass prompt when a part is touched in Roblox Studio. 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 message me on Discord and Ill help you out!



Script:

local GamepassID = 1234567890-- Change this ID to your gamepass ID
local MarketplaceService =


if then -- If the part detects a humanoid then
local plr =
MarketplaceService:PromptGamePassPurchase(plr, GamepassID)
end
end)

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

Itz_FloppyFish
Автор

Bro ive been looking for how to do this thank you

Mumcare
Автор

Yo dude Your the best man this really helped

RobloxYouTuber
Автор

ty bro ur vids are so helpful they’ve helped me in so many games and projects when i was stuck! Tysm bro keep it up ❤

JGG
Автор

how do i do this but a ugc item pops up when you touch it

bruhnoey
Автор

can you help me to add when we buy gamepass then we get the item

st_shineyt
Автор

do you know if theres a way to get rid of the "error you already own this item" bc everytime i go through the door it pops up

avoidcupiid
Автор

how do you make gamepasses on a kindle

JAPF_ROBLOX
Автор

I don’t think your remember me Swiffy but a long time ago I said while your where streaming my pc won’t work and it won’t let me open Roblox studios sadly it still doesn’t work but good job on your tutorials❤

Lebxc
Автор

I cant see the script on the right can you make the screen bigger so i can see the whole screen:)

ThatOneDude
Автор

Hey i have 1 question do we need to put the - -

Officialsharkyinblue
Автор

I don’t get this could you simplify this little bit?

Jdn
Автор

can you do it with just like clothing?

floshy
Автор

Does this work with developer products too?

vicusic
Автор

dude you need to click ctrl s to save it not close the thing

MelissaChamberlain-utvr
Автор

it doesnt work it says something failed

SendGamingYT
Автор

it just says error buying, how do i fix

Rynko
Автор

thank yuo but im not see all the script

mouniradib