local VipButton = game.Workspace.Buy1.Pop:FindFirstChild("VipButton") VipButton.MouseButton1Click:connect(function() local player = game.Players.LocalPlayer game:GetService("MarketplaceService"):PromptGamePassPurchase(player,8975888) end)
Players.fshduia.Backpack.LocalScript:2: attempt to index nil with 'MouseButton1Click' Thats the error!
The problem here is might be: The script can't find VipButton, make sure you have the correct name, correct Parent and you might have to use :WaitForChild()
Ps: MouseButton1Click isn't a event of Click Detector (If it is a clickDetector), it is MouseClick
i think