Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

----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

2 comments

1

Please post your code in a lua code block...this is not fun to read

1

^

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.