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

How Do i Fix This? [ScreenGui.Frame.TextButton.LocalScript:5: function arguments expected near]

Asked by 5 years ago

----Button local btn = script.Parent local MPS = game:GetService("MarketplaceService") local pld = 679264154 local player = game:GetService("Players").LocalPlayer btn:MouseButton1Down:Connect(function() MPS:PromptProductPurchase(player, pld) end) ----SeverScriptService local MPS = game:GetService("MarketplaceService") MPS.ProcessReceipt = function(receiptInfo) if receiptInfo == 679264154 then local player = game.Players:GetPlayersByUserId(receiptInfo.PlayerId) player:LoadCharacter() return Enum.ProductPurchaseDecision.PurchaseGranted end end ------------------------------------------------------------------------------------------------------------------------My Button Scrpt Doesn't Work I Want To Make Respawn Product

----My Product Number 679264154

1
Please post your code in a lua code block...this is not fun to read ForeverBrown 356 — 5y
1
^ mc3334 649 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

When you do btn:MouseButton1Down:Connect() mousebutton1down is an event, not a function so it should be btn.MouseButton1Down:Connect() This is on line 5

Ad

Answer this question