local Click = script.Parent.Parent.Parent.Parent.Click
local ID = 170753509
script.Parent.MouseButton1Down:connect(function(Player)
Click:Play()
Game:GetService("MarketplaceService"):PromptPurchase(Player, ID)
end)
This is the error note,"Unable to cast value to Object". By the way, it's on line 5. The script is contained inside of a SurfaceGui ImageButton.

1 comment
Thanks!