How to make a Roblox Premium Prompt pop up When you touch a Part in Roblox Studio | Tutorial

Описание к видео How to make a Roblox Premium Prompt pop up When you touch a Part in Roblox Studio | Tutorial

In today's video, I will be demonstrating How to make a Roblox Premium Prompt pop up When you touch a Part in Roblox Studio

~Scripts~
local MarketplaceService = game:GetService("MarketplaceService")

script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then -- If the part detects a humanoid then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
MarketplaceService:PromptPremiumPurchase(plr)
end
end)

My Roblox user, 0winto100win
don't forget to check it out!
appreciate it

Комментарии

Информация по комментариям в разработке