HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Roblox Tutorial - How to make and use Gamepasses

452,756 views February 28, 2020 3:02

Watch on YouTube
ChannelEppobot

Description from the creator

In this video I cover how to make a gamepass for your game, how to make a screengui that allows you to buy it, and how to make content for the gamepass by checking if the players owns it.

Make sure to Like, Subscribe and turn Post Notifications ON 🔔 Thanks! 🦋
------------------------------------------------------------------------------------------------------------------------------
First Script:
script.Parent.MouseButton1Click:Connect(function()
game:GetService("MarketplaceService"):PromptGamePassPurchase(game.Players.LocalPlayer,8222423)
end)
------------------------------------------------------------------------------------------------------------------------------
Second Script:
local player = game.Players.LocalPlayer
local ownsGamepass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,8222423)

if ownsGamepass then
local sword = game:GetService("ReplicatedStorage"):WaitForChild("Sword"):Clone()
sword.Parent = player.Backpack
end
------------------------------------------------------------------------------------------------------------------------------

▸ Twitter: twitter.com/eppobotdev
▸ Roblox: roblox.com/users/26716940/profile

#RobloxStudio #Roblox #Tutorial #Gamepass

About this tutorial

Eppobot published this 3:02 video tutorial on February 28, 2020. It has been watched 452,756 times on YouTube.

Channel
Eppobot
Category
Gaming
Duration
3:02
Published
February 28, 2020
Views
452,756
Likes
11,030

Tags

Share

This tutorial in other languages