#button checking
13 messages · Page 1 of 1 (latest)
Button.MouseButton1Click event
Button.MouseButton1Click:Connect(function()
RemoteEvent:Fire(Button.Name)
end)
well there are multiple buttons so it has to check which button was clicked so that can happen
.
With button is the button you want
Like
local Button = pathtobutton
Button.MouseButton1Click:...
you can use for to loop thru stuff
"i" would be the index/number of the object, "v" would be the object
In luau you don't need pairs / ipairs