message (2)
message (2)
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
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 dragging
local dragInput
local dragStart
local startPos
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)
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 dragging
local dragInput
local dragStart
local startPos
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)
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)
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()
Items.Visible = true
else
Tab.TextTransparency = 0.8
ActiveLine_2.BackgroundTransparency = 1
Items.Visible = false
end
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
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
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
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
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
Slider.MouseButton1Down:Connect(StartDragging)
UIS.InputChanged:Connect(UpdateDragging)
UIS.InputEnded:Connect(StopDragging)
UpdateSliderPosition()
end
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
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")