Hey! this is my last video of the year and i am thankful for the early support, and i swear 2025 will be my rise(Hopefully) anyway have an amazing time and 2025!
script 1
local MarketPlaceService = game:GetService("MarketplaceService")
local ProductID = 1234567890 -- Change to your Developer Product ID
script.Parent.MouseButton1Click:Connect(function()
MarketPlaceService:PromptProductPurchase(game.Players.LocalPlayer, ProductID)
end)
script 2
local ProductID = 1234567890 -- Change this ID to your DeveloperProduct ID.
local MarketplaceService = game:GetService("MarketplaceService")
local function handlePurchase(info)
local ReceivedProductID = info.ProductId
local Player = game.Players:GetPlayerByUserId(info.PlayerId)
if ReceivedProductID == ProductID then
for _, player in ipairs(game.Players:GetPlayers()) do
if player ~= Player then
player:Kick("Oops, You were kicked by") -- Change Oops to whatever text you want the player who has been kicked to see
end
end
end
end
MarketplaceService.ProcessReceipt = handlePurchase
Timelines :
intro 00:00
tutorial 00:07
testing 00:59
outro 01:09
tags :
#robloxstudio #tutorial #roblox