local MPS = game:GetService("MarketplaceService")
local player = game.Players.LocalPlayer
local CoinsAmount = script.Parent.CoinsImage.TextLabel
local MoneyAmount = script.Parent.CashImage.TextLabel
local AddCoins = script.Parent.CoinsImage.AddCoins
player:WaitForChild("Coins"):GetPropertyChangedSignal("Value"):Connect(function()
CoinsAmount.Text = player.Coins.Value
end)
CoinsAmount.Text = player.Coins.Value
player:WaitForChild("Money"):GetPropertyChangedSignal("Value"):Connect(function()
MoneyAmount.Text = player.Money.Value
end)
MoneyAmount.Text = player.Money.Value
AddCoins.MouseButton1Click:Connect(function()
MPS:PromptProductPurchase(player, 1341739140)
end)