Roblox Tutorial - How to make and use Gamepasses

Eppobot
Eppobot
424.9 هزار بار بازدید - 5 سال پیش - In this video I cover
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: eppobotdev
▸ Roblox: https://www.roblox.com/users/26716940...

#RobloxStudio #Roblox #Tutorial #Gamepass
5 سال پیش در تاریخ 1398/12/07 منتشر شده است.
424,951 بـار بازدید شده
... بیشتر