Created
March 3, 2023 13:44
-
-
Save axtrct/4e601d772b93099ffe099c9141a91245 to your computer and use it in GitHub Desktop.
effect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
effect = {} | |
function effect:hover(ui : GuiBase, event: () -> nil, revert : () -> nil) : nil | |
ui.MouseEnter:Connect(function() | |
event() | |
end) | |
ui.MouseLeave:Connect(function() | |
revert() | |
end) | |
end | |
function effect:active(ui : GuiBase, event: () -> nil) : nil | |
ui.MouseButton1Click:Connect(function() | |
event() | |
end) | |
end | |
return effect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment