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)
It happened to me once, try to use mousebutton1down dunno if it will work