Город МОСКОВСКИЙ
00:03:02

Roblox Tutorial - How to make and use Gamepasses

Аватар
Геймеры и Монстры
Просмотры:
21
Дата загрузки:
29.10.2023 19:08
Длительность:
00:03:02
Категория:
Видеоигры

Описание

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: https://twitter.com/eppobotdev
▸ Roblox: https://www.roblox.com/users/26716940/profile

#RobloxStudio #Roblox #Tutorial #Gamepass

Рекомендуемые видео