Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Never gets to the OnServerEvent but it Fires the server?

Asked by 8 years ago
local buyFrom = game.Workspace:WaitForChild('BuyShop')


for i,v in pairs (script.Parent.Frame:GetChildren()) do
    v.BuyButton.MouseButton1Down:connect(function()
        game.Workspace.BuyShop:FireServer(tostring(v.Name))
        print('Isent')
    end)
end

-This is a local script

Answer this question