0% found this document useful (0 votes)
20 views

message (2)

jj

Uploaded by

bentnick9
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

message (2)

jj

Uploaded by

bentnick9
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 15

local lib = {}

function lib:CreateWindow(title)
local UI = Instance.new("ScreenGui")
local Main = Instance.new("Frame")
local UIGradient = Instance.new("UIGradient")
local UICorner = Instance.new("UICorner")
local TopBar = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local UIGradient_2 = Instance.new("UIGradient")
local Line = Instance.new("Frame")
local Navigation = Instance.new("ScrollingFrame")
local UIListLayout = Instance.new("UIListLayout")
local UIPadding = Instance.new("UIPadding")
local Line_2 = Instance.new("Frame")
local Content = Instance.new("Frame")
local Card = Instance.new("ImageButton")
local UIAspectRatioConstraint_2 = Instance.new("UIAspectRatioConstraint")
local UICorner_14 = Instance.new("UICorner")

UI.Name = "UI"
UI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") or
game:GetService("Players")
UI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
UI.DisplayOrder = 99
UI.ResetOnSpawn = false

Main.Name = "Main"
Main.Parent = UI
Main.BackgroundColor3 = Color3.fromRGB(179, 179, 179)
Main.BorderColor3 = Color3.fromRGB(0, 0, 0)
Main.BorderSizePixel = 0
Main.Position = UDim2.new(0.338338643, 0, 0.164794013, 0)
Main.Size = UDim2.new(0, 519, 0, 310)

UIGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00,
Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(80, 0,
1))}
UIGradient.Offset = Vector2.new(0, 0.899999976)
UIGradient.Rotation = -180
UIGradient.Parent = Main

UICorner.CornerRadius = UDim.new(0, 10)


UICorner.Parent = Main

TopBar.Name = "TopBar"
TopBar.Parent = Main
TopBar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TopBar.BackgroundTransparency = 1.000
TopBar.BorderColor3 = Color3.fromRGB(0, 0, 0)
TopBar.BorderSizePixel = 0
TopBar.Size = UDim2.new(0, 519, 0, 49)

Title.Name = "Title"
Title.Parent = TopBar
Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1.000
Title.BorderColor3 = Color3.fromRGB(0, 0, 0)
Title.BorderSizePixel = 0
Title.Position = UDim2.new(0.0462427735, 0, 0, 0)
Title.Size = UDim2.new(0, 200, 0, 50)
Title.Font = Enum.Font.Unknown
Title.Text = title
Title.TextColor3 = Color3.fromRGB(240, 0, 0)
Title.TextSize = 19.000
Title.TextXAlignment = Enum.TextXAlignment.Left

UIGradient_2.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00,
Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(0,
0, 0))}
UIGradient_2.Rotation = 72
UIGradient_2.Parent = Title

Line.Name = "Line"
Line.Parent = Main
Line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Line.BackgroundTransparency = 0.500
Line.BorderColor3 = Color3.fromRGB(0, 0, 0)
Line.BorderSizePixel = 0
Line.Position = UDim2.new(0, 0, 0.160958916, 0)
Line.Size = UDim2.new(0, 519, 0, 1)

Navigation.Name = "Navigation"
Navigation.Parent = Main
Navigation.Active = true
Navigation.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Navigation.BackgroundTransparency = 1.000
Navigation.BorderColor3 = Color3.fromRGB(0, 0, 0)
Navigation.BorderSizePixel = 0
Navigation.Position = UDim2.new(0, 0, 0.161290318, 0)
Navigation.Size = UDim2.new(0, 124, 0, 260)
Navigation.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
Navigation.CanvasSize = UDim2.new(0, 0, 10, 0)
Navigation.ScrollBarThickness = 0

UIListLayout.Parent = Navigation
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 2)

UIPadding.Parent = Navigation
UIPadding.PaddingTop = UDim.new(0, 8)

Line_2.Name = "Line"
Line_2.Parent = Main
Line_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Line_2.BackgroundTransparency = 0.500
Line_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
Line_2.BorderSizePixel = 0
Line_2.Position = UDim2.new(0.238921002, 0, 0.161290318, 0)
Line_2.Size = UDim2.new(0, 1, 0, 260)

Content.Name = "Content"
Content.Parent = Main
Content.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Content.BackgroundTransparency = 1.000
Content.BorderColor3 = Color3.fromRGB(0, 0, 0)
Content.BorderSizePixel = 0
Content.Position = UDim2.new(0.240847781, 0, 0.161290318, 0)
Content.Size = UDim2.new(0, 394, 0, 260)

Card.Name = "Card"
Card.Parent = UI
Card.BackgroundColor3 = Color3.fromRGB(8, 8, 8)
Card.BorderColor3 = Color3.fromRGB(0, 0, 0)
Card.BorderSizePixel = 0
Card.Position = UDim2.new(0.270875752, 0, 0.164794013, 0)
Card.Size = UDim2.new(0, 48, 0, 51)
Card.AutoButtonColor = false
Card.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
Card.ImageTransparency = 1.000

UIAspectRatioConstraint_2.Parent = Card

UICorner_14.CornerRadius = UDim.new(0, 4)
UICorner_14.Parent = Card

-- Scripts:

local function ODZS_script() -- Main.dragWindow


local script = Instance.new('LocalScript', Main)

local TweenService = game:GetService("TweenService")


local UserInputService = game:GetService("UserInputService")

local gui = script.Parent

local dragging
local dragInput
local dragStart
local startPos

local tweenInfo = TweenInfo.new(0.16, Enum.EasingStyle.Linear,


Enum.EasingDirection.Out)

local function update(input)


local delta = input.Position - dragStart
local targetPos = UDim2.new(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)

local tween = TweenService:Create(gui, tweenInfo, {Position =


targetPos})
tween:Play()
end

gui.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or
input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = gui.Position

input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End
then
dragging = false
end
end)
end
end)

gui.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)

UserInputService.InputChanged:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)

local function toggleGuiVisibility(input)


if input.UserInputType == Enum.UserInputType.Keyboard and
input.KeyCode == Enum.KeyCode.LeftControl then
gui.Visible = not gui.Visible
end
end

UserInputService.InputBegan:Connect(function(input, gameProcessed)
if not gameProcessed then
toggleGuiVisibility(input)
end
end)

end
coroutine.wrap(ODZS_script)()
local function CGITHTX_script()
local script = Instance.new('LocalScript', Card)

local TweenService = game:GetService("TweenService")


local UserInputService = game:GetService("UserInputService")

local gui = script.Parent

local dragging
local dragInput
local dragStart
local startPos

local tweenInfo = TweenInfo.new(0.16, Enum.EasingStyle.Linear,


Enum.EasingDirection.Out)

local function update(input)


local delta = input.Position - dragStart
local targetPos = UDim2.new(
startPos.X.Scale,
startPos.X.Offset + delta.X,
startPos.Y.Scale,
startPos.Y.Offset + delta.Y
)

local tween = TweenService:Create(gui, tweenInfo, {Position =


targetPos})
tween:Play()
end

gui.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 or
input.UserInputType == Enum.UserInputType.Touch then
dragging = true
dragStart = input.Position
startPos = gui.Position

input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End
then
dragging = false
end
end)
end
end)

gui.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement or
input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)

UserInputService.InputChanged:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)
end
coroutine.wrap(CGITHTX_script)()
local function OIVTR_script()
local script = Instance.new('LocalScript', UI)

local screenGui = script.Parent


local button = screenGui:WaitForChild("Card")
local main = screenGui:WaitForChild("Main")

local function toggleVisibility()


if main.Visible then
main.Visible = false
else
main.Visible = true
end
end
button.MouseButton1Click:Connect(toggleVisibility)
end
coroutine.wrap(OIVTR_script)()

local SelectedTab = nil

function lib:CreateTab(title)
local Tab = Instance.new("TextButton")
local UICorner_3 = Instance.new("UICorner")
local ActiveLine_2 = Instance.new("Frame")
local Items = Instance.new("ScrollingFrame")
local UIListLayout_2 = Instance.new("UIListLayout")
local UIPadding_2 = Instance.new("UIPadding")

Tab.Name = title
Tab.Parent = Navigation
Tab.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Tab.BackgroundTransparency = 1
Tab.BorderColor3 = Color3.fromRGB(0, 0, 0)
Tab.BorderSizePixel = 0
Tab.Position = UDim2.new(0.0564516112, 0, 0, 0)
Tab.Size = UDim2.new(0, 110, 0, 34)
Tab.AutoButtonColor = false
Tab.Font = Enum.Font.Unknown
Tab.Text = title
Tab.TextColor3 = Color3.fromRGB(255, 255, 255)
Tab.TextSize = 13
Tab.TextTransparency = 0.8

UICorner_3.CornerRadius = UDim.new(0, 4)
UICorner_3.Parent = Tab

ActiveLine_2.Name = "ActiveLine"
ActiveLine_2.Parent = Tab
ActiveLine_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ActiveLine_2.BackgroundTransparency = 1
ActiveLine_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
ActiveLine_2.BorderSizePixel = 0
ActiveLine_2.Position = UDim2.new(0, 0, 0.176470593, 0)
ActiveLine_2.Size = UDim2.new(0, 2, 0, 22)

Items.Name = title
Items.Parent = Content
Items.Active = true
Items.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Items.BackgroundTransparency = 1
Items.BorderColor3 = Color3.fromRGB(0, 0, 0)
Items.BorderSizePixel = 0
Items.Size = UDim2.new(0, 394, 0, 260)
Items.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
Items.CanvasSize = UDim2.new(0, 0, 15, 0)
Items.ScrollBarThickness = 0
Items.Visible = false

UIListLayout_2.Parent = Items
UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout_2.Padding = UDim.new(0, 4)

UIPadding_2.Parent = Items
UIPadding_2.PaddingTop = UDim.new(0, 6)

local TweenService = game:GetService("TweenService")

Tab.MouseButton1Click:Connect(function()
if SelectedTab then
TweenService:Create(SelectedTab, TweenInfo.new(0.2), {
TextTransparency = 0.8,
BackgroundTransparency = 1
}):Play()
TweenService:Create(SelectedTab.ActiveLine,
TweenInfo.new(0.2), {
BackgroundTransparency = 1
}):Play()
end

SelectedTab = Tab
TweenService:Create(Tab, TweenInfo.new(0.2), {
TextTransparency = 0,
BackgroundTransparency = 0.65
}):Play()
TweenService:Create(ActiveLine_2, TweenInfo.new(0.2), {
BackgroundTransparency = 0
}):Play()

for _, item in ipairs(Content:GetChildren()) do


if item.Name == title then
item.Visible = true
else
item.Visible = false
end
end
end)

if not SelectedTab then


SelectedTab = Tab
TweenService:Create(Tab, TweenInfo.new(0.2), {
TextTransparency = 0,
BackgroundTransparency = 0.65
}):Play()
TweenService:Create(ActiveLine_2, TweenInfo.new(0.2), {
BackgroundTransparency = 0
}):Play()

Items.Visible = true
else
Tab.TextTransparency = 0.8
ActiveLine_2.BackgroundTransparency = 1
Items.Visible = false
end

return Tab, Items


end

function lib:CreateButton(title, TabParent, callback)


local Button = Instance.new("TextButton")
local UICorner_4 = Instance.new("UICorner")
local Mouseicon = Instance.new("ImageLabel")
local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")

Button.Name = "Button"
Button.Parent = TabParent
Button.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Button.BackgroundTransparency = 0.500
Button.BorderColor3 = Color3.fromRGB(0, 0, 0)
Button.BorderSizePixel = 0
Button.Position = UDim2.new(0.0571065992, 0, 0, 0)
Button.Size = UDim2.new(0, 380, 0, 34)
Button.AutoButtonColor = false
Button.Font = Enum.Font.Unknown
Button.Text = title
Button.TextColor3 = Color3.fromRGB(255, 255, 255)
Button.TextSize = 13.000

UICorner_4.CornerRadius = UDim.new(0, 4)
UICorner_4.Parent = Button

Mouseicon.Name = "Mouseicon"
Mouseicon.Parent = Button
Mouseicon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Mouseicon.BackgroundTransparency = 1.000
Mouseicon.BorderColor3 = Color3.fromRGB(0, 0, 0)
Mouseicon.BorderSizePixel = 0
Mouseicon.Position = UDim2.new(0.91315788, 0, 0.117647059, 0)
Mouseicon.Size = UDim2.new(0, 26, 0, 30)
Mouseicon.Image = "rbxassetid://10734898355"

UIAspectRatioConstraint.Parent = Mouseicon

Button.MouseButton1Click:Connect(function()
callback()
end)
end

local TweenService = game:GetService("TweenService")

function lib:CreateToggle(title, TabParent, callback)


local Toggle = Instance.new("ImageButton")
local UICorner_7 = Instance.new("UICorner")
local Checkbox_2 = Instance.new("Frame")
local Checkmark_2 = Instance.new("ImageLabel")
local UICorner_8 = Instance.new("UICorner")
local Title_3 = Instance.new("TextLabel")
local isToggled = false -- Variable to track the toggle state

Toggle.Name = "Toggle"
Toggle.Parent = TabParent
Toggle.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Toggle.BackgroundTransparency = 0.500
Toggle.BorderColor3 = Color3.fromRGB(0, 0, 0)
Toggle.BorderSizePixel = 0
Toggle.Position = UDim2.new(0.017766498, 0, 0.149606302, 0)
Toggle.Size = UDim2.new(0, 380, 0, 34)
Toggle.AutoButtonColor = false

UICorner_7.CornerRadius = UDim.new(0, 4)
UICorner_7.Parent = Toggle

Checkbox_2.Name = "Checkbox"
Checkbox_2.Parent = Toggle
Checkbox_2.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
Checkbox_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
Checkbox_2.BorderSizePixel = 0
Checkbox_2.Position = UDim2.new(0.907894731, 0, 0.154411763, 0)
Checkbox_2.Size = UDim2.new(0, 28, 0, 23)
Checkmark_2.Name = "Checkmark"
Checkmark_2.Parent = Checkbox_2
Checkmark_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Checkmark_2.BackgroundTransparency = 1.000
Checkmark_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
Checkmark_2.BorderSizePixel = 0
Checkmark_2.Position = UDim2.new(0.142857149, 0, 0, 0)
Checkmark_2.Size = UDim2.new(0, 21, 0, 23)
Checkmark_2.Image = "rbxassetid://10709790644"
Checkmark_2.ImageTransparency = 1.000

UICorner_8.CornerRadius = UDim.new(0, 4)
UICorner_8.Parent = Checkbox_2

Title_3.Name = "Title"
Title_3.Parent = Toggle
Title_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_3.BackgroundTransparency = 1.000
Title_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
Title_3.BorderSizePixel = 0
Title_3.Position = UDim2.new(0.0236842111, 0, 0, 0)
Title_3.Size = UDim2.new(0, 106, 0, 34)
Title_3.Font = Enum.Font.Unknown
Title_3.Text = title
Title_3.TextColor3 = Color3.fromRGB(255, 255, 255)
Title_3.TextSize = 10.000
Title_3.TextTransparency = 0.800
Title_3.TextXAlignment = Enum.TextXAlignment.Left

local function updateTransparency()


local tweenInfo = TweenInfo.new(0.1, Enum.EasingStyle.Quad,
Enum.EasingDirection.Out) -- Tween settings

if isToggled then
local textTween = TweenService:Create(Title_3, tweenInfo,
{TextTransparency = 0})
local checkmarkTween = TweenService:Create(Checkmark_2,
tweenInfo, {ImageTransparency = 0})
textTween:Play()
checkmarkTween:Play()
else
local textTween = TweenService:Create(Title_3, tweenInfo,
{TextTransparency = 0.8})
local checkmarkTween = TweenService:Create(Checkmark_2,
tweenInfo, {ImageTransparency = 1})
textTween:Play()
checkmarkTween:Play()
end
end

Toggle.MouseButton1Click:Connect(function()
isToggled = not isToggled
updateTransparency()

if callback then
callback(isToggled)
end
end)
updateTransparency()
end

function lib:CreateSlider(title, TabParent, min, max, callback)


local Slider = Instance.new("ImageButton")
local UICorner_9 = Instance.new("UICorner")
local SliderBack = Instance.new("Frame")
local Draggable = Instance.new("Frame")
local Title_4 = Instance.new("TextLabel")
local Value = Instance.new("TextLabel")
local UIS = game:GetService("UserInputService")

Slider.Name = "Slider"
Slider.Parent = TabParent
Slider.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Slider.BackgroundTransparency = 0.500
Slider.BorderColor3 = Color3.fromRGB(0, 0, 0)
Slider.BorderSizePixel = 0
Slider.Position = UDim2.new(0.0355329961, 0, 0.433070868, 0)
Slider.Size = UDim2.new(0, 380, 0, 39)
Slider.AutoButtonColor = false

UICorner_9.CornerRadius = UDim.new(0, 4)
UICorner_9.Parent = Slider

SliderBack.Name = "SliderBack"
SliderBack.Parent = Slider
SliderBack.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
SliderBack.BorderColor3 = Color3.fromRGB(0, 0, 0)
SliderBack.BorderSizePixel = 0
SliderBack.Position = UDim2.new(0.0236842111, 0, 0.691999972, 0)
SliderBack.Size = UDim2.new(0, 364, 0, 2)

Draggable.Name = "Draggable"
Draggable.Parent = SliderBack
Draggable.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
Draggable.BorderColor3 = Color3.fromRGB(0, 0, 0)
Draggable.BorderSizePixel = 0
Draggable.Size = UDim2.new(0, 247, 0, 2)

Title_4.Name = "Title"
Title_4.Parent = Slider
Title_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_4.BackgroundTransparency = 1.000
Title_4.BorderColor3 = Color3.fromRGB(0, 0, 0)
Title_4.BorderSizePixel = 0
Title_4.Position = UDim2.new(0.0236842111, 0, 0, 0)
Title_4.Size = UDim2.new(0, 106, 0, 26)
Title_4.Font = Enum.Font.Unknown
Title_4.Text = title
Title_4.TextColor3 = Color3.fromRGB(255, 255, 255)
Title_4.TextSize = 10.000
Title_4.TextTransparency = 0.800
Title_4.TextXAlignment = Enum.TextXAlignment.Left

Value.Name = "Value"
Value.Parent = Slider
Value.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Value.BackgroundTransparency = 1.000
Value.BorderColor3 = Color3.fromRGB(0, 0, 0)
Value.BorderSizePixel = 0
Value.Position = UDim2.new(0.702631593, 0, 0.051282052, 0)
Value.Size = UDim2.new(0, 106, 0, 26)
Value.Font = Enum.Font.Unknown
Value.Text = "0.1"
Value.TextColor3 = Color3.fromRGB(255, 255, 255)
Value.TextSize = 10.000
Value.TextTransparency = 0.800
Value.TextXAlignment = Enum.TextXAlignment.Right

local currentValue = min


local isDragging = false
local touchID = nil

local function UpdateSliderPosition()


local percentage = math.clamp((currentValue - min) / (max - min),
0, 1)
Value.Text = string.format("%.1f", currentValue)
Draggable.Size = UDim2.new(percentage, 0, 1, 0)
callback(currentValue)
end

local function StartDragging(input)


isDragging = true
game:GetService("TweenService"):Create(Title_4,
TweenInfo.new(0.1), {TextTransparency = 0}):Play()
game:GetService("TweenService"):Create(Value, TweenInfo.new(0.1),
{TextTransparency = 0}):Play()
if input.UserInputType == Enum.UserInputType.Touch then
touchID = input.UserInputIndex
end
end

local function UpdateDragging(input)


local inputPosition
if input.UserInputType == Enum.UserInputType.MouseMovement then
inputPosition = input.Position.X
elseif input.UserInputType == Enum.UserInputType.Touch then
inputPosition = input.Position.X
end

if isDragging then
local sliderX = SliderBack.AbsolutePosition.X
local sliderWidth = SliderBack.AbsoluteSize.X
local newPercentage = math.clamp((inputPosition -
sliderX) / sliderWidth, 0, 1)
currentValue = min + (newPercentage * (max - min))
currentValue = math.round(currentValue * 10) / 10
UpdateSliderPosition()
end
end

local function StopDragging(input)


if input.UserInputType == Enum.UserInputType.MouseButton1 or
input.UserInputType == Enum.UserInputType.Touch then
isDragging = false
touchID = nil
game:GetService("TweenService"):Create(Title_4,
TweenInfo.new(0.1), {TextTransparency = 0.8}):Play()
game:GetService("TweenService"):Create(Value,
TweenInfo.new(0.1), {TextTransparency = 0.8}):Play()
end
end

Slider.MouseButton1Down:Connect(StartDragging)
UIS.InputChanged:Connect(UpdateDragging)
UIS.InputEnded:Connect(StopDragging)

UpdateSliderPosition()
end

function lib:CreateInput(title, TabParent, TextHolder, callback)


local Input = Instance.new("ImageButton")
local UICorner_10 = Instance.new("UICorner")
local Box = Instance.new("Frame")
local UICorner_11 = Instance.new("UICorner")
local TextBox = Instance.new("TextBox")
local Title_5 = Instance.new("TextLabel")

Input.Name = "Input"
Input.Parent = TabParent
Input.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Input.BackgroundTransparency = 0.500
Input.BorderColor3 = Color3.fromRGB(0, 0, 0)
Input.BorderSizePixel = 0
Input.Position = UDim2.new(0.017766498, 0, 0.149606302, 0)
Input.Size = UDim2.new(0, 380, 0, 34)
Input.AutoButtonColor = false

UICorner_10.CornerRadius = UDim.new(0, 4)
UICorner_10.Parent = Input

Box.Name = "Box"
Box.Parent = Input
Box.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
Box.BorderColor3 = Color3.fromRGB(0, 0, 0)
Box.BorderSizePixel = 0
Box.Position = UDim2.new(0.673684239, 0, 0.154411763, 0)
Box.Size = UDim2.new(0, 116, 0, 23)

UICorner_11.CornerRadius = UDim.new(0, 4)
UICorner_11.Parent = Box

TextBox.Parent = Box
TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextBox.BackgroundTransparency = 1.000
TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
TextBox.BorderSizePixel = 0
TextBox.Size = UDim2.new(0, 114, 0, 23)
TextBox.Font = Enum.Font.SourceSans
TextBox.PlaceholderText = TextHolder
TextBox.Text = ""
TextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
TextBox.TextSize = 17.000
TextBox.TextTransparency = 0.800
Title_5.Name = "Title"
Title_5.Parent = Input
Title_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_5.BackgroundTransparency = 1.000
Title_5.BorderColor3 = Color3.fromRGB(0, 0, 0)
Title_5.BorderSizePixel = 0
Title_5.Position = UDim2.new(0.0236842111, 0, 0, 0)
Title_5.Size = UDim2.new(0, 106, 0, 34)
Title_5.Font = Enum.Font.SourceSans
Title_5.Text = title
Title_5.TextColor3 = Color3.fromRGB(255, 255, 255)
Title_5.TextSize = 17.000
Title_5.TextXAlignment = Enum.TextXAlignment.Left

TextBox.FocusLost:Connect(function(enterPressed)
if enterPressed and callback then
callback(TextBox.Text)
end
end)
end

function lib:CreateDropdown(title, TabParent, options, callback)


-- Create the main dropdown button
local Dropdown = Instance.new("ImageButton")
local UICorner_12 = Instance.new("UICorner")
local Box_2 = Instance.new("Frame")
local UICorner_13 = Instance.new("UICorner")
local SelectedText = Instance.new("TextLabel")
local Title_6 = Instance.new("TextLabel")

-- Setting up the Dropdown button


Dropdown.Name = "Dropdown"
Dropdown.Parent = TabParent
Dropdown.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Dropdown.BackgroundTransparency = 0.500
Dropdown.BorderColor3 = Color3.fromRGB(0, 0, 0)
Dropdown.BorderSizePixel = 0
Dropdown.Position = UDim2.new(0.017766498, 0, 0.149606302, 0)
Dropdown.Size = UDim2.new(0, 380, 0, 34)
Dropdown.AutoButtonColor = false

-- Adding corner radius


UICorner_12.CornerRadius = UDim.new(0, 4)
UICorner_12.Parent = Dropdown

-- Creating the Box for SelectedText


Box_2.Name = "Box"
Box_2.Parent = Dropdown
Box_2.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
Box_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
Box_2.BorderSizePixel = 0
Box_2.Position = UDim2.new(0.673684239, 0, 0.154411763, 0)
Box_2.Size = UDim2.new(0, 116, 0, 23)

-- Corner radius for the box


UICorner_13.CornerRadius = UDim.new(0, 4)
UICorner_13.Parent = Box_2

-- Setting up the SelectedText label


SelectedText.Name = "SelectedText"
SelectedText.Parent = Box_2
SelectedText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
SelectedText.BackgroundTransparency = 1.000
SelectedText.BorderColor3 = Color3.fromRGB(0, 0, 0)
SelectedText.BorderSizePixel = 0
SelectedText.Size = UDim2.new(0, 113, 0, 23)
SelectedText.Font = Enum.Font.Unknown
SelectedText.Text = options[1] -- Set the first option as default
SelectedText.TextColor3 = Color3.fromRGB(255, 255, 255)
SelectedText.TextSize = 10.000

-- Title for the dropdown


Title_6.Name = "Title"
Title_6.Parent = Dropdown
Title_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Title_6.BackgroundTransparency = 1.000
Title_6.BorderColor3 = Color3.fromRGB(0, 0, 0)
Title_6.BorderSizePixel = 0
Title_6.Position = UDim2.new(0.0236842111, 0, 0, 0)
Title_6.Size = UDim2.new(0, 106, 0, 34)
Title_6.Font = Enum.Font.Unknown
Title_6.Text = title
Title_6.TextColor3 = Color3.fromRGB(255, 255, 255)
Title_6.TextSize = 10.000
Title_6.TextXAlignment = Enum.TextXAlignment.Left

Dropdown.MouseButton1Click:Connect(function()
local currentIndex = table.find(options, SelectedText.Text) or 0
local nextIndex = (currentIndex % #options) + 1
SelectedText.Text = options[nextIndex]

if callback then
callback(SelectedText.Text)
end
end)
end

return lib
end

lib:CreateWindow("Linis Hub")

local tab1, tab1 = lib:CreateTab("Catching")


local tab2, tab2 = lib:CreateTab("Player")
local tab3, tab3 = lib:CreateTab("Physics")
local tab4, tab4 = lib:CreateTab("Automatics")
local tab5, tab5 = lib:CreateTab("QB")
local tab6, tab6 = lib:CreateTab("Credits")

lib:CreateButton("UI Maker: JustVPN", tab6, function()


print("Button clicked!")
end)

lib:CreateButton("Coder-Owner: Comez", tab6, function()


print("Button clicked!")
end)
lib:CreateButton("Co-Founder: !mod", tab6, function()
print("Button clicked!")
end)

lib:CreateToggle("Magnets", tab1, function(state)


local v0=game:GetService("Players").LocalPlayer;local
v1=game:GetService("RunService").Stepped;local
v2=game:GetService("UserInputService");local v3=game:GetService("GuiService");local
v4=23;local v5=nil;local v6=false;v5=v5 and (v5 + v4) ;local v7=math.huge;local
v8=workspace;local v9=firetouchinterest;local v10=game.FindFirstChild;local
v11=game.FindFirstChildOfClass;local v12=task;local v13=v1.Connect;local
v14=v1.Wait;local v15=keypress;local v16=keyrelease;local
v17=v2.GetFocusedTextBox;local v18=pairs;local v19={"CatchRight","CatchLeft"};local
function v20(v22,v23)local v24,v25=v7,nil;for v32,v33 in v18(v19) do local
v34=v10(v23,v33);local v35=(v34 and (v34.Position-v22.Position).Magnitude) or
v7 ;if (v35<v24) then v24=v35;v25=v34;end end return v24,v25;end local function
v21(v26,v27,v28)local v29=0;v28=v28 or v7 ;local v30=v11(v26,v27);while not v30
and (v29<v28) do v29=v29 + v12.wait() ;v30=v11(v26,v27);if v30 then return v30;end
end return v30;end
v13(v3.MenuOpened,function()v6=true;end);v13(v3.MenuClosed,function()v6=false;end);
v13(v8.ChildAdded,function(v31)if ((v31.Name=="Football") and
v21(v31,"TouchTransmitter",3)) then local v36=v0.Character;while (v31.Parent==v8)
and v36 do local v37,v38=v20(v31,v36);if v38 then if (v5 and (v37<=v5) and not
(v17(v2) or v6)) then v15(67);v16(67);end if (v37<=v4) then
v9(v38,v31,1);v9(v38,v31,0);end end v14(v1);end end end);
end)

lib:CreateSlider("Magnets Silder", tab1, 0, 35, function(value)


print("Current Value: " .. value)
end)

lib:CreateInput("Rate the Script", tab1, "Type here...", function(inputText)


print("User entered:", inputText)
end)

local options = {"Legit", "League", "Blatant", "Custom"}


lib:CreateDropdown("Magnet Mode", tab1, options, function(selectedOption)
print("You selected: " .. selectedOption)
end)

You might also like