game.Players.PlayerAdded:connect(function(play)
while true do
if game.Workspace.Tree.BrickColor == BrickColor.new("Deep orange") then
game:GetService("MarketplaceService"):PromptPurchase(play,162256401)
wait(20)
end
wait(2)
end
end)
It's supposed to prompt purchase the player when the brick is colored to "Deep orange"
It works after like 20 seconds if the brick is colored deep orange before the server even starts, but it doesn't work if you join the server then change it to deep orange. Help? |