Skip to content

A dynamic UI Library for ROBLOX Experiences. Made in the style of the original Turtle Spy!

License

Notifications You must be signed in to change notification settings

MelonDeveloper/Turtle-Lib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Turtle-Lib

A dynamic UI Library for ROBLOX Experiences. Made in the style of the original Turtle Spy!

Image Of Turtle Lib

Made with ❤️ by Intrer#0421

Documentation:

Load library:

local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Turtle-Brand/Turtle-Lib/main/source.lua"))()

Add windows:

local window = library:Window("Window")

Destroy windows:

window:Destroy()

Add a button:

-- Name of button, callback
window:Button("Button name", function()
   print("pressed button")
end)

Add a toggle:

-- Name of the toggle, default state of the toggle, callback

window:Toggle("Example toggle", true, function(bool)
    print(bool) -- bool is true or false depending on the state of the toggle
end)

Add a color picker:

-- Name, default color (set to true to make the default rainbow), callback

window:ColorPicker("Color Picker", Color3.fromRGB(255, 255, 255), function(color)
   print(color)
end)

Add a slider:

-- Name of slider, minimum value, maximum value, default value, callback

window:Slider("Example Slider",0,100,20, function(value)
   print(value)
end)

Add a label:

-- Text, color: setting color to true will give it a rainbow effect!

window:Label("Credits to Intrer#0421", Color3.fromRGB(127, 143, 166))

Add an input box (aka textbox):

-- Name, callback

window:Box("Walkspeed", function(text, focuslost)
   if focuslost then
   print(text)
   end
end)
-- The callback will be called with two arguments, the text that the player inputted and whether the player has stopped writing

Add a dropdown:

-- Name, table with names of the button that you want, callback that will be called with the name of the button that was pressed

local dropdown = window:Dropdown("Example dropdown", {"Button 1", "Button 2", "Third button"}, function(name)
   print(name)
end)

Add buttons to the dropdown after the fact:

-- Name

dropdown:Button("New button")

Remove buttons from the dropdown after the fact, will warn you if the button doesn't exist:

-- Name

dropdown:Remove("Button")

Add a keybind for showing and hiding the UI:

-- Key

library:Keybind("P")

Destroy the UI:

library:Destroy()

About

A dynamic UI Library for ROBLOX Experiences. Made in the style of the original Turtle Spy!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%