Premium Payouts

Roblox allows you to earn Robux based on how much time Premium members spend in your game. This system rewards you regardless of how big or small your game is, and the earnings from these payouts are on top of what you make from other methods like Game Passes or in-game purchases. The more time Premium members spend in your game, the more Robux you earn.

Check membership and prompt purchase

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)

If you found this tutorial helpful and would like to support my work, please consider buying me a coffee.

Thank you very much for your support!

Buy me a coffee