This utility allows you to create loading spinners in the developer console with a custom icon and color.
Prerequisite You should have a executor that supports accessing CoreGui.
API
Simple Usage
the custom_console_progressbar
takes in the following arguments:
The message that is going to be printed (concatinated with the progress bar)
Examples
progressbar_message_arg.lua
Advanced Usage
HOWEVER , it is possible to use a table as args and get more control.
You can use a table with the following fields:
The message that is going to be printed (concatinated with the progress bar)
The image that is going to be displayed as the icon. Defaults to ""
The color of the message, Defaults to Color3.fromRGB(255, 255, 255)
The maximum length of the progress bar, Defaults to 10
Examples
progressbar_table_args.lua
Progressbar Manipulation
the custom_console_progressbar
function returns a table with the following fields:
message.update_message_with_progress
The message that is going to be updated (concatinated with the progress bar)
The behaviour of this function defaults to not incrementing the progress bar when this function is called. If you want to increment the progress bar, you can pass in the new index of the progress.
The new index of the progress bar
The new message that is going to be printed (without the progress bar)
a rbxassetid:// image that will be displayed as the icon. Defaults to ""
The color of the message, Defaults to Color3.fromRGB(255, 255, 255)
Examples
simple.lua
advanced_console_options.lua
updating_progress_message.lua
local console = loadstring ( game: HttpGet ( "https://raw.githubusercontent.com/notpoiu/Scripts/main/utils/console/main.lua" ) ) ( )
local message = console. custom_console_progressbar ( "[MSHUB]: Authenticating..." )
for i = 1 , 10 do
message. update_progress ( i)
task. wait ( .05 )
end
message. update_message ( "[MSHUB]: Authenticated!" , "rbxasset://textures/AudioDiscovery/done.png" , Color3. fromRGB ( 51 , 255 , 85 ) )