New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 4 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 4 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 107 — 4y
Ad

Answer this question