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

How would I make this FE Compatible?

Asked by 8 years ago
Spawn(function()
        while true do
            for i = 300, 1, -1 do
                if Timer then
                    Timer.Text = ("d:d"):format(math.floor(i/60), i - (math.floor(i/60) * 60))
                end
                wait(1)
            end
            if Money then
                local AddAmt = 100
                if Game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 171516442) or Game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 171517130) then
                    AddAmnt = 600
                end
                if Game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 171516583) or Game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 171517260) then
                    AddAmnt = 2000
                end
                Money.Value = Money.Value + AddAmt
            end
        end
    end)
end)

Answer this question