Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer
for i,v in pairs(Guis) do
    v.mousebutton1Click:connect(function()
       print(v.Name)
    end)
end

1 comment

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.