Продажа бустеров за робаксы в Roblox

Опубликовано: 16 Май 2026
на канале: Savchenap
312
19

Простой способ организовать продажу улучшений/бустеров для игрока за робаксы с использованием Screen GUI в Roblox Studio

-------- Продаем бустер --------------
local MPS = game:GetService("MarketplaceService")
local player = game.Players.LocalPlayer
local id = 1223944949 -- заменить ID объекта
script.Parent.MouseButton1Click:Connect(function()
MPS:PromptProductPurchase(player, id)
end)

----------Выдаем игроку суперпрыжок--------------------
local MPS = game:GetService("MarketplaceService")
MPS.ProcessReceipt = function(receiptInfo)
if receiptInfo.ProductId == 1223944949 then -- заменить ID объекта
local player = game.Players:GetPlayerByUserId(receiptInfo.PlayerId)

player.Character.Humanoid.UseJumpPower = true -- в этих строках можно давать игроку любые бонусы
player.Character.Humanoid.JumpPower = 250

return Enum.ProductPurchaseDecision.PurchaseGranted
end

end

----------- Включаем / прячем панель продажи ---------------
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Frame.Visible= not script.Parent.Parent.Frame.Visible
end)