Will this work if I put this in a localscript and in starterpack?
local buyButton = game.Workspace.BuyButton.SurfaceGui.TextButton local damageButton = game.Workspace.DamageButton.SurfaceGui.TextButton local productId = 19181612
buyButton.MouseButton1Click:connect(function() game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, productId) end)
player = game.Players:GetPlayerFromCharacter() points = player.leaderstats.Points points.Value = points.Value + 50
damageButton.MouseButton1Click:connect(function() game.Players.LocalPlayer.Character.Humanoid.Health = 30 end)