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

Is there a way to get the name of a gui with for loop?

Asked by 10 years ago

I was just wondering if there was some kind of way to get the name a gui that was clicked?

i have done this ,but i have not found a way to get the gui that was clicked.

for i,v in pairs(Guis) do
    v.mousebutton1Click:connect(function()
        -- print the name of the gui that was clicked
    end)
end

1 answer

Log in to vote
0
Answered by 10 years ago
for i,v in pairs(Guis) do
    v.mousebutton1Click:connect(function()
       print(v.Name)
    end)
end
0
Well i don't even remember my problem anymore,this answer the question i asked so good job.XD I already knew that though. raspyjessie 117 — 10y
Ad

Answer this question