Why can't I press the Screen GUI to purchase items?
I'm working on my Studio, where I planned to make a button where you can purchase Player Points with the DevProduct while in-game.
However, the button is not working, yet I took a other look on the script, and I can't figure out the error.
My DevProduct Script:
1 | local productId = Enter ID here |
2 | local player = game.Players.LocalPlayer |
4 | script.Parent.MouseButton 1 Click:connect( function () |
5 | Game:GetService( "MarketplaceService" ):PromptProductPurchase(player, productId) |
And here's the ShowDesc Script:
01 | function OnMouseHover() |
02 | script.Parent.Desc.Visible = true |
05 | script.Parent.MouseEnter:connect(OnMouseHover) |
07 | function OnMouseNotHover() |
08 | script.Parent.Desc.Visible = false |
11 | script.Parent.MouseLeave:connect(OnMouseNotHover) |
Am I missing a script code somewhere in those 2 scripts?