Hi Guys, so I was making something like a donation game for fun purposes. So I have a simple LocalScript which determines if a button inside SurfaceGui is pressed and it prompts a purchase for whatever we clicked. It works, but it works only for me, not for any other player.
local MPS = game:GetService("MarketplaceService")
local productsgui = workspace[script.Name].Products[script.Name].ScrollingFrame
local connections = {}
productsgui.ChildAdded:Connect(function(child)
if child:IsA("TextButton") then
child.MouseButton1Down:Connect(function()
print("Clicked")
game.ReplicatedStorage.Prompt:FireServer(child:GetAttribute("Id"))
end)
end
end)
I even tried prompting the purchase through this script, still nothing happened. Why is it just running for me and not for any other player playing the game ?
Thanks