I got a problem where my MouseButton1Up Event is not firing. I tried anything and I am not sure why is it not firing.
My code in Local Script children of my Image Button:
local player1Frame = script.Parent.Parent.Player1Offer
local AcceptTrade = game:GetService("ReplicatedStorage").Functions.AcceptedTradeRequest
script.Parent.MouseButton1Up:Connect(function()
print("CLICKED NOOB!") -- debugging purposes
local givenPets = {}
for i, v in pairs(player1Frame.Offer:GetChildren()) do
if v:IsA("ImageLabel") then
table.insert(givenPets, v.Name)
end
end
table.foreach(givenPets, print) -- for debugging purposes
local result = AcceptTrade:InvokeServer(givenPets)
end)

4 comments
any error ?
put print on first line and tell me if it prints
is that the whole script?
nevermind, i figured out what's wrong with it ty for your time