local bloxyColaId = 372051683 -- Put the "ID" of you're "Item" that you want to sell.
local player = game.Players.LocalPlayer
function onClick()
Game:GetService("MarketplaceService"):PromptPurchase(player, bloxyColaId)
end
script.Parent.MouseButton1Click:connect(onClick)
end
while true do
wait(.1)
script.Parent.BorderColor3 = Color3.new(85, 0, 127)
wait(.1)
script.Parent.BorderColor3 = Color3.new(0, 85, 255)
wait(.1)
script.Parent.BorderColor3 = Color3.new(0, 170, 0)
wait(.1)
script.Parent.BorderColor3 = Color3.new(255, 255, 0)
wait(.1)
script.Parent.BorderColor3 = Color3.new(255, 85, 0)
wait(.1)
script.Parent.BorderColor3 = Color3.new(255, 0, 0)
end
Is thier anything wrong?

4 comments
Local why?
Ik there should not be a "end" on line 9,
Looks like this isn't the whole script... Because of line 9 there must be more on top. However, if this is the whole script. PreyStar's right.
Can you tell me the correct why of making this script work ;c