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)

2 comments

0

Edit your post: Please use code formatting. Please explain why you doubt it will work

0

No. It won't.