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

Will This Work?

Asked by 10 years ago

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)

0
Edit your post: Please use code formatting. Please explain why you doubt it will work BlueTaslem 18071 — 10y
0
No. It won't. fahmisack123 385 — 10y

Answer this question