プレミアムペイアウト

Robloxでは、プレミアムメンバーがあなたのゲームで過ごす時間に基づいてRobuxを稼ぐことができます。このシステムは、あなたのゲームがどれだけ大きいか小さいかに関係なく、あなたに報酬を与えます。これらのペイアウトの収益は、ゲームパスやゲーム内購入などの他の方法で稼いだものに加算されます。プレミアムメンバーがあなたのゲームで過ごす時間が長いほど、あなたが稼ぐRobuxの量も増えます。

メンバーシップの確認と購入のプロンプト

local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local part = script.Parent
local showModal = true

part.Touched:Connect(function(otherPart)
	local player = Players:GetPlayerFromCharacter(otherPart.Parent)
	if not player then return end
	if player.MembershipType == Enum.MembershipType.Premium then
		print(player.Name .. " is a Premium user.")
	else
		if not showModal then return end
		showModal = false
		MarketplaceService:PromptPremiumPurchase(player)
		
		task.delay(5, function()  
			showModal = true
		end)
	end
end)

このチュートリアルがお役に立ちましたら、私の仕事をサポートするためにコーヒーをおごっていただけると嬉しいです。

ご支援、誠にありがとうございます!

コーヒーをおごる