Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

This script is working until I want it to repeat until the person buys it?

Asked by 8 years ago

The repeat breaks the script. Anyone knows why?

game.Players.PlayerAdded:connect(function(player)
repeat
if game:GetService("MarketplaceService"):PlayerOwnsAsset(player, 463912717)then
local  h = game.ServerStorage.ScreenGui:Clone()
h.Parent = player.PlayerGui
until game:GetService("MarketplaceService"):PlayerOwnsAsset(player, 463912717)

end
end)
0
Try putting the first 'end' before the 'until' statement? honeygold13843 136 — 8y

Answer this question