Hello! I have a small issue, basically a textbutton in a surfaceGUI gives no responce?
(Local script)
--\\Variables//--
local Services = require(game.ReplicatedStorage.Modules.Services)
local Player = game.Players.LocalPlayer
--\\Main-Code//--
script.Parent.MouseButton1Click:Connect(function()
print(Player)
Services.Services.MarketPlaceService:PromptProductPurchase(Player,script.Parent.Parent.Configuration.ProductId.Value)
end)
Place the surface gui inside a ScreenGui, then go to the properties of the SurfaceGui and make the Adornee the Part you are looking to put it on and do a print() to see if it works
Buttons only work on that service