We use cookies on this site to enhance your user experience
Collapse Sidebar


GetSelectedRibbonTool return the currently selected Enum/RibbonTool. It returns an Enum that corresponds to a particular tool. This will return whether the tool is selected manually or programmatically via Plugin/SelectRibbonTool.


Return Type Summary

Code Samples


This code must be run from a plugin. This code selects the move tool, checks which tool is selected, then prints out to the console which tool is selected. SelectRibbonTool will not return the value until the next frame.

plugin:SelectRibbonTool(Enum.RibbonTool.Move, UDim2.new())
wait() -- wait for next frame
local selectedRibbonTool = plugin:GetSelectedRibbonTool()
print("The selected RibbonTool is", selectedRibbonTool)