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

MouseButton1Up/Click Event is not firing?

Asked by 3 years ago
Edited 3 years ago

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)
0
any error ? Blackbooks 138 — 3y
0
put print on first line and tell me if it prints VerdommeMan 1479 — 3y
0
is that the whole script? PoWerofThEePg 43 — 3y
0
nevermind, i figured out what's wrong with it ty for your time Feelings_La 399 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

It happened to me once, try to use mousebutton1down dunno if it will work

Ad

Answer this question