It is the same function, but it is more effort do to it with a remote event. The topic creator must print the players value and let us know.
I know but changing UI visibility is better on client imo.
He just wants a quickie. He doesn’t want to create 5,000 RemoteEvent’s, when he could just simply change the Panel Close Script to a Server Script.
If you did not understand “He”, then “He” is the Topic Creator.
local Player = game.Players.LocalPlayer
for _,DevProduct in pairs (script.Parent.Panel.ProductsContainer:GetChildren()) do
if DevProduct:IsA("ImageButton") then
DevProduct.MouseButton1Down:Connect(function()
game:GetService("MarketplaceService"):PromptProductPurchase(Player, tonumber(DevProduct.Name))
end)
end
end
I only said to change the Close Button Script to a Server Script. Not any other scripts.
Change the Buy script back to a LocalScript.
Yes that’s exactly what I meant.
Ok. will this panel be visible to only one player?
script.Parent.Frame.Frame.TextButton.MouseButton1Click:Connect(function()
script.Parent.Panel.Visible = true
end)
script.Parent.Panel.Tabs.Close.CloseButton.MouseButton1Click:Connect(function()
script.Parent.Panel.Visible = false
end)
script.Parent.Panel.Tabs.Gamepasses.MouseButton1Click:Connect(function()
script.Parent.Panel.PassesContainer.Visible = true
script.Parent.Panel.ProductsContainer.Visible = false
end)
script.Parent.Panel.Tabs.Currency.MouseButton1Click:Connect(function()
script.Parent.Panel.PassesContainer.Visible = false
script.Parent.Panel.ProductsContainer.Visible = true
end)
Yes. It will. ****************
Sorry for late response. (DevForum for my area went down)
If there is any disfunction with anything in your panel then tell me.