Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local firstUi = nil
- local wins = {}
- local count = 0
- local circTime = 1
- local cooldown = false
- local enabled = false
- local mouse = game.Players.LocalPlayer:GetMouse()
- local uis = game:GetService("UserInputService")
- local tabs = {}
- local countTabs = 0
- local TweenService = game:GetService("TweenService")
- local tween
- local tweenInfo = TweenInfo.new(
- 0.5, -- Time
- Enum.EasingStyle.Linear, -- EasingStyle
- Enum.EasingDirection.Out, -- EasingDirection
- 0, -- RepeatCount (when less than zero the tween will loop indefinitely)
- false, -- Reverses (tween will reverse once reaching it's goal)
- 0 -- DelayTime
- )
- local Circle = Instance.new("ImageLabel")
- Circle.Name = "Circle"
- Circle.Parent = nil
- Circle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Circle.BackgroundTransparency = 1.000
- Circle.ZIndex = 10
- Circle.Image = "rbxassetid://266543268"
- Circle.ImageColor3 = Color3.fromRGB(255, 255, 255)
- Circle.ImageTransparency = 0.500
- function CircleClick(Button, X, Y)
- spawn(function()
- Button.ClipsDescendants = true
- local Circ = Circle:Clone()
- Circ.Parent = Button
- local NewX = X - Circ.AbsolutePosition.X
- local NewY = Y - Circ.AbsolutePosition.Y
- Circ.Position = UDim2.new(0, NewX, 0, NewY)
- local Size = 0
- if Button.AbsoluteSize.X > Button.AbsoluteSize.Y then
- Size = Button.AbsoluteSize.X * 1.5
- elseif Button.AbsoluteSize.X < Button.AbsoluteSize.Y then
- Size = Button.AbsoluteSize.Y * 1.5
- elseif Button.AbsoluteSize.X == Button.AbsoluteSize.Y then
- Size = Button.AbsoluteSize.X * 1.5
- end
- Circ:TweenSizeAndPosition(UDim2.new(0, Size, 0, Size), UDim2.new(0.5, -Size / 2, 0.5, -Size / 2), "Out", "Quad", circTime, false, nil)
- for i = 1, 10 do
- Circ.ImageTransparency = Circ.ImageTransparency + 0.1
- wait(circTime / 10)
- end
- Circ:Destroy()
- end)
- end
- function startUi(name)
- if game.CoreGui:FindFirstChild("UI") ~= nil then
- game.CoreGui:FindFirstChild("UI"):Destroy()
- end
- table.insert(wins, name)
- count = count + 1
- local UILib = Instance.new("ScreenGui")
- local Main = Instance.new("ImageLabel")
- local Container = Instance.new("ImageLabel")
- local Label = Instance.new("TextLabel")
- local Tabs = Instance.new("Frame")
- --local UIGridLayout = Instance.new("UIGridLayout")
- UILib.Name = "UI"
- UILib.Parent = game.CoreGui
- Main.Name = "Main"
- Main.Parent = UILib
- Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Main.BackgroundTransparency = 1.000
- Main.Position = UDim2.new(0.0600292832, 0, 0.145686001, 0)
- Main.Size = UDim2.new(0, 600, 0, 500)
- Main.Image = "rbxassetid://3570695787"
- Main.ImageColor3 = Color3.fromRGB(27, 32, 41)
- Main.ScaleType = Enum.ScaleType.Slice
- Main.SliceCenter = Rect.new(100, 100, 100, 100)
- Main.SliceScale = 0.120
- Container.Name = "Container"
- Container.Parent = Main
- Container.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Container.BackgroundTransparency = 1.000
- Container.Position = UDim2.new(0, 6, 0, 48)
- Container.Size = UDim2.new(1, -12, 1, -56)
- Container.Image = "rbxassetid://3570695787"
- Container.ImageColor3 = Color3.fromRGB(21, 25, 33)
- Container.ScaleType = Enum.ScaleType.Slice
- Container.SliceCenter = Rect.new(100, 100, 100, 100)
- Container.SliceScale = 0.120
- Label.Name = "Label"
- Label.Parent = Main
- Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Label.BackgroundTransparency = 1.000
- Label.Position = UDim2.new(0, 21, 0, 0)
- Label.Size = UDim2.new(0, 579, 0, 50)
- Label.ZIndex = 3
- Label.Font = Enum.Font.SourceSans
- Label.Text = name
- Label.TextColor3 = Color3.fromRGB(255, 255, 255)
- Label.TextSize = 25.000
- Label.TextXAlignment = Enum.TextXAlignment.Left
- Tabs.Name = "Tabs"
- Tabs.Parent = Main
- Tabs.BackgroundColor3 = Color3.fromRGB(27, 32, 41)
- Tabs.BackgroundTransparency = 1.000
- Tabs.BorderSizePixel = 0
- Tabs.Position = UDim2.new(0,0,0,-40)
- Tabs.Size = UDim2.new(1, 0, 0, 60)
- --[[UIGridLayout.Parent = Tabs
- UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout.CellPadding = UDim2.new(0, 10, 0, 5)
- UIGridLayout.CellSize = UDim2.new(0, 175, 1, 0)--]]
- -- toggle
- local Toggle = Instance.new("ImageButton")
- Toggle.Name = "Toggle"
- Toggle.Parent = Main
- Toggle.BackgroundTransparency = 1.000
- Toggle.Position = UDim2.new(1, -40, 0, 0)
- Toggle.Size = UDim2.new(0, 40, 0, 40)
- Toggle.ZIndex = 2
- Toggle.Image = "rbxassetid://3926305904"
- Toggle.ImageRectOffset = Vector2.new(404, 284)
- Toggle.ImageRectSize = Vector2.new(36, 36)
- -- Scripts:
- local function CINXDU_fake_script() -- Toggle.LocalScript
- local script = Instance.new('LocalScript', Toggle)
- _G.on = true
- _G.wait = false
- script.Parent.MouseButton1Click:Connect(function()
- if _G.on == true then
- if _G.wait == false then
- _G.on = false
- _G.wait = true
- for i,v in pairs(script.Parent.Parent.Container:GetChildren()) do
- v.Visible = false
- end
- script.Parent.Parent:TweenSize(UDim2.new(0,600,0,50), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 1, false)
- wait(1)
- tween = TweenService:Create(script.Parent, tweenInfo, {Rotation = 180})
- tween:Play()
- _G.wait = false
- end
- else
- if _G.wait == false then
- _G.on = true
- _G.wait = true
- script.Parent.Parent:TweenSize(UDim2.new(0,600,0,500), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false)
- wait(1)
- tween = TweenService:Create(script.Parent, tweenInfo, {Rotation = 0})
- tween:Play()
- _G.wait = false
- for i,v in pairs(script.Parent.Parent.Container:GetChildren()) do
- v.Visible = true
- end
- end
- end
- end)
- end
- coroutine.wrap(CINXDU_fake_script)()
- -- drag
- local function CKSQ_fake_script() -- Main.Drag
- local script = Instance.new('LocalScript', Main)
- local UIS = game:GetService("UserInputService")
- function dragify(Frame)
- dragToggle = nil
- local dragSpeed = 0
- dragInput = nil
- dragStart = nil
- local dragPos = nil
- function updateInput(input)
- local Delta = input.Position - dragStart
- local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
- game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
- end
- Frame.InputBegan:Connect(function(input)
- if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
- dragToggle = true
- dragStart = input.Position
- startPos = Frame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragToggle = false
- end
- end)
- end
- end)
- Frame.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- game:GetService("UserInputService").InputChanged:Connect(function(input)
- if input == dragInput and dragToggle then
- updateInput(input)
- end
- end)
- end
- dragify(script.Parent)
- end
- coroutine.wrap(CKSQ_fake_script)()
- end
- function addTab(name)
- if game.CoreGui:FindFirstChild("UI") then
- -- for container
- tabs[tostring(name)] = 1
- -- for actual tabs
- countTabs = countTabs + 31 + string.len(name) * 13 + 10
- if countTabs <= 600 then
- -- tab thing
- local Tab = Instance.new("ImageLabel")
- local Dot = Instance.new("ImageLabel")
- local TextLabel = Instance.new("TextLabel")
- Tab.Name = name
- Tab.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Tabs")
- Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Tab.BackgroundTransparency = 1.000
- Tab.Size = UDim2.new(0, 31 + string.len(name) * 13, 0, 90)
- Tab.Position = UDim2.new(0, countTabs - 31 - string.len(name) * 13 - 10, 0, 0)
- Tab.ZIndex = 0
- Tab.Image = "rbxassetid://3570695787"
- Tab.ImageColor3 = Color3.fromRGB(26, 33, 45)
- if firstUi ~= nil then
- Tab.ImageColor3 = Color3.fromRGB(27, 32, 41)
- end
- Tab.ScaleType = Enum.ScaleType.Slice
- Tab.SliceCenter = Rect.new(100, 100, 100, 100)
- Tab.SliceScale = 0.120
- Dot.Name = "Dot"
- Dot.Parent = Tab
- Dot.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Dot.BackgroundTransparency = 1.000
- Dot.Position = UDim2.new(0, 13, 0, 15)
- Dot.Size = UDim2.new(0, 8, 0, 8)
- Dot.ZIndex = 4
- Dot.Image = "rbxassetid://3570695787"
- Dot.ImageColor3 = Color3.fromRGB(255, 80, 60)
- if firstUi ~= nil then
- Dot.ImageColor3 = Color3.fromRGB(168, 66, 66)
- end
- Dot.ScaleType = Enum.ScaleType.Slice
- Dot.SliceCenter = Rect.new(100, 100, 100, 100)
- Dot.SliceScale = 0.120
- TextLabel.Parent = Tab
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0, 31, 0, 0)
- TextLabel.Size = UDim2.new(1, -31, 0, 39)
- TextLabel.ZIndex = 3
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = name
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- if firstUi ~= nil then
- TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- end
- TextLabel.TextSize = 25.000
- TextLabel.TextXAlignment = Enum.TextXAlignment.Left
- -- container
- local Tab = Instance.new("Frame")
- --local UIGridLayout2 = Instance.new("UIGridLayout")
- Tab.Name = name
- if firstUi == nil then
- Tab.Visible = true
- firstUi = TextLabel.Text
- else
- Tab.Visible = false
- end
- Tab.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container")
- Tab.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Tab.BackgroundTransparency = 1.000
- Tab.Position = UDim2.new(0, 10, 0, 10)
- Tab.Size = UDim2.new(1, -20, 1, -20)
- --[[UIGridLayout2.Parent = Tab
- UIGridLayout2.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout2.CellSize = UDim2.new(1, 0, 0, 40)--]]
- -- btn
- local Toggle = Instance.new("TextButton")
- Toggle.Name = "Toggle"
- Toggle.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Tabs"):FindFirstChild(name)
- Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Toggle.BackgroundTransparency = 12.000
- Toggle.Size = UDim2.new(1, 0, 0, 39)
- Toggle.Font = Enum.Font.SourceSans
- Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)
- Toggle.TextSize = 14.000
- Toggle.TextTransparency = 1.000
- function script() -- Toggle.LocalScript
- local script = Instance.new('LocalScript', Toggle)
- script.Parent.MouseButton1Click:Connect(function()
- if _G.on == true then
- if game.CoreGui:FindFirstChild("UI") ~= nil then
- for i,v in pairs(game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Tabs"):GetChildren()) do
- if v.ClassName ~= "UIGridLayout" then
- v.ImageColor3 = Color3.fromRGB(26, 33, 45)
- v.Dot.ImageColor3 = Color3.fromRGB(168, 66, 66)
- v.TextLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
- end
- end
- local yes = game.CoreGui["UI"]["Main"]["Tabs"]:FindFirstChild(script.Parent.Parent.Name)
- yes.ImageColor3 = Color3.fromRGB(27, 32, 41)
- yes.Dot.ImageColor3 = Color3.fromRGB(255, 80, 60)
- yes.TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- for i,v in pairs(game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):GetChildren()) do
- v.Visible = false
- end
- game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container")[script.Parent.Parent.Name].Visible = true
- end
- end
- end)
- end
- coroutine.wrap(script)()
- else
- notify("Max size or amount of tabs!")
- end
- end
- end
- function addBtn(name, tab, callback)
- name = name or "New Button"
- callback = callback or function() end
- if game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab) then
- local Button = Instance.new("ImageButton")
- local TextLabel = Instance.new("TextLabel")
- local type = Instance.new("StringValue")
- Button.Name = name
- Button.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
- Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Button.BackgroundTransparency = 1.000
- Button.Size = UDim2.new(1, 0, 0, 40)
- Button.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
- Button.ZIndex = 3
- Button.Image = "rbxassetid://2790382281"
- Button.ImageColor3 = Color3.fromRGB(27, 32, 41)
- Button.ScaleType = Enum.ScaleType.Slice
- Button.SliceCenter = Rect.new(4, 4, 252, 252)
- type.Name = "Type"
- type.Value = "Button"
- type.Parent = Button
- TextLabel.Parent = Button
- TextLabel.AnchorPoint = Vector2.new(0.5, 0.5)
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
- TextLabel.Size = UDim2.new(1, -5, 1, -5)
- TextLabel.ZIndex = 4
- TextLabel.Font = Enum.Font.GothamSemibold
- TextLabel.Text = name
- TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextSize = 25
- TextLabel.Name = "Label"
- Button.MouseButton1Click:Connect(function()
- pcall(callback)
- CircleClick(Button, mouse.X, mouse.Y)
- end)
- tabs[tostring(tab)] = tonumber(tabs[tostring(tab)]) + 1
- end
- end
- function addToggle(name, tab, callback)
- name = name or "New Toggle"
- callback = callback or function() end
- local switchactions = {}
- if game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab) then
- local Toggle = Instance.new("ImageButton")
- local Label = Instance.new("TextLabel")
- local checkframe = Instance.new("ImageLabel")
- local checkmark = Instance.new("ImageButton")
- local type = Instance.new("StringValue")
- Toggle.Name = name
- Toggle.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
- Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Toggle.BackgroundTransparency = 1.000
- Toggle.Size = UDim2.new(1, 0, 0, 40)
- Toggle.ZIndex = 3
- Toggle.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
- Toggle.Image = "rbxassetid://2790382281"
- Toggle.ImageColor3 = Color3.fromRGB(27, 32, 41)
- Toggle.ScaleType = Enum.ScaleType.Slice
- Toggle.SliceCenter = Rect.new(4, 4, 252, 252)
- type.Name = "Type"
- type.Value = "Toggle"
- type.Parent = Toggle
- Label.Name = "Label"
- Label.Parent = Toggle
- Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Label.BackgroundTransparency = 1.000
- Label.Size = UDim2.new(1.06602108, -40, 1, 0)
- Label.ZIndex = 4
- Label.Font = Enum.Font.GothamSemibold
- Label.Text = "This is a toggle"
- Label.TextColor3 = Color3.fromRGB(255, 255, 255)
- Label.TextSize = 25.000
- Label.TextWrapped = true
- checkframe.Name = "checkframe"
- checkframe.Parent = Toggle
- checkframe.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- checkframe.BackgroundTransparency = 1.000
- checkframe.Position = UDim2.new(1, -35, 0, 5)
- checkframe.Size = UDim2.new(0, 30, 0, 30)
- checkframe.ZIndex = 4
- checkframe.Image = "rbxassetid://3570695787"
- checkframe.ImageColor3 = Color3.fromRGB(21, 25, 33)
- checkframe.ScaleType = Enum.ScaleType.Slice
- checkframe.SliceCenter = Rect.new(100, 100, 100, 100)
- checkframe.SliceScale = 0.120
- checkmark.Name = "checkmark"
- checkmark.Parent = checkframe
- checkmark.BackgroundTransparency = 1.000
- checkmark.BorderSizePixel = 0
- checkmark.Size = UDim2.new(1, 0, 1, 0)
- checkmark.ZIndex = 5
- checkmark.Image = "rbxassetid://3926305904"
- checkmark.ImageRectOffset = Vector2.new(284, 4)
- checkmark.ImageRectSize = Vector2.new(24, 24)
- tabs[tostring(tab)] = tonumber(tabs[tostring(tab)]) + 1
- function Trigger ()
- if cooldown == false then
- enabled = not enabled
- if enabled == false then
- cooldown = true
- tween = TweenService:Create(checkmark, tweenInfo, {Rotation = 360})
- tween:Play()
- wait(0.25)
- checkmark.ImageRectOffset = Vector2.new(284,4)
- checkmark.ImageRectSize = Vector2.new(24,24)
- wait(0.4)
- cooldown = false
- else
- cooldown = true
- tween = TweenService:Create(checkmark, tweenInfo, {Rotation = 0})
- tween:Play()
- wait(0.25)
- checkmark.ImageRectOffset = Vector2.new(644,204)
- checkmark.ImageRectSize = Vector2.new(36,36)
- wait(0.4)
- cooldown = false
- end
- pcall(callback, enabled)
- end
- end
- checkmark.MouseButton1Click:connect(Trigger)
- function switchactions:Set (state)
- if cooldown == false then
- enabled = state
- if enabled == false then
- cooldown = true
- tween = TweenService:Create(checkmark, tweenInfo, {Rotation = 360})
- tween:Play()
- wait(0.25)
- checkmark.ImageRectOffset = Vector2.new(284,4)
- checkmark.ImageRectSize = Vector2.new(24,24)
- wait(0.4)
- cooldown = false
- else
- cooldown = true
- tween = TweenService:Create(checkmark, tweenInfo, {Rotation = 0})
- tween:Play()
- wait(0.25)
- checkmark.ImageRectOffset = Vector2.new(644,204)
- checkmark.ImageRectSize = Vector2.new(36,36)
- wait(0.4)
- cooldown = false
- end
- pcall(callback, enabled)
- end
- end
- return switchactions
- end
- end
- function addSlider(name, tab, min, max, callback)
- name = name or "New Slider"
- callback = callback or function() end
- if game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab) then
- local Slider = Instance.new("ImageButton")
- local label = Instance.new("TextLabel")
- local btn = Instance.new("TextButton")
- local slider = Instance.new("ImageLabel")
- local val = Instance.new("TextLabel")
- local type = Instance.new("StringValue")
- Slider.Name = name
- Slider.Parent = game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
- Slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Slider.BackgroundTransparency = 1.000
- Slider.Size = UDim2.new(1, 0, 0, 40)
- Slider.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
- Slider.ZIndex = 3
- Slider.Image = "rbxassetid://2790382281"
- Slider.ImageColor3 = Color3.fromRGB(27, 32, 41)
- Slider.ScaleType = Enum.ScaleType.Slice
- Slider.SliceCenter = Rect.new(4, 4, 252, 252)
- type.Name = "Type"
- type.Value = "Slider"
- type.Parent = Slider
- label.Name = "label"
- label.Parent = Slider
- label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundTransparency = 1.000
- label.Size = UDim2.new(0.5, 0, 1, 0)
- label.ZIndex = 4
- label.Font = Enum.Font.GothamSemibold
- label.Text = name
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.TextSize = 25.000
- label.TextWrapped = true
- btn.Name = "btn"
- btn.Parent = Slider
- btn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- btn.BackgroundTransparency = 1.000
- btn.Position = UDim2.new(0.439999998, 0, 0.375, 0)
- btn.Size = UDim2.new(0.5, 0, 0, 10)
- btn.ZIndex = 4
- btn.Font = Enum.Font.SourceSans
- btn.TextColor3 = Color3.fromRGB(0, 0, 0)
- btn.TextSize = 14.000
- btn.TextTransparency = 1.000
- slider.Name = "slider"
- slider.Parent = btn
- slider.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- slider.BackgroundTransparency = 1.000
- slider.Size = UDim2.new(0, 0, 0, 10)
- slider.ZIndex = 4
- slider.Image = "rbxassetid://3570695787"
- slider.ImageColor3 = Color3.fromRGB(255, 80, 60)
- slider.ScaleType = Enum.ScaleType.Slice
- slider.SliceCenter = Rect.new(100, 100, 100, 100)
- slider.SliceScale = 0.120
- val.Name = "value"
- val.Parent = Slider
- val.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- val.BackgroundTransparency = 1.000
- val.Position = UDim2.new(1, -60, 0, 0)
- val.Size = UDim2.new(0.1, 0, 1, 0)
- val.ZIndex = 4
- val.Font = Enum.Font.GothamSemibold
- val.Text = min .. "/" .. max
- val.TextColor3 = Color3.fromRGB(255, 255, 255)
- val.TextScaled = true
- --val.TextSize = 25.000
- val.TextWrapped = true
- btn.MouseButton1Down:Connect(function()
- Value = math.floor((((tonumber(max) - tonumber(min)) / 250) * slider.AbsoluteSize.X) + tonumber(min)) or 0
- pcall(function()
- callback(Value)
- end)
- slider.Size = UDim2.new(0, math.clamp(mouse.X - slider.AbsolutePosition.X, 0, 250), 0, 15)
- moveconnection = mouse.Move:Connect(function()
- val.Text = Value .. "/" .. max
- Value = math.floor((((tonumber(max) - tonumber(min)) / 250) * slider.AbsoluteSize.X) + tonumber(min))
- pcall(function()
- callback(Value)
- end)
- slider.Size = UDim2.new(0, math.clamp(mouse.X - slider.AbsolutePosition.X, 0, 250), 0, 15)
- end)
- releaseconnection = uis.InputEnded:Connect(function(Mouse)
- if Mouse.UserInputType == Enum.UserInputType.MouseButton1 then
- Value = math.floor((((tonumber(max) - tonumber(min)) / 250) * slider.AbsoluteSize.X) + tonumber(min))
- pcall(function()
- callback(Value)
- end)
- slider.Size = UDim2.new(0, math.clamp(mouse.X - slider.AbsolutePosition.X, 0, 250), 0, 15)
- moveconnection:Disconnect()
- releaseconnection:Disconnect()
- end
- end)
- end)
- tabs[tostring(tab)] = tonumber(tabs[tostring(tab)]) + 1
- end
- end
- function addLabel(name, tab)
- name = name or "New Label"
- if game.CoreGui:FindFirstChild("UI") and game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab) then
- local Label = Instance.new("ImageButton")
- local label = Instance.new("TextLabel")
- local type = Instance.new("StringValue")
- Label.Name = name
- Label.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
- Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Label.BackgroundTransparency = 1.000
- Label.Size = UDim2.new(1, 0, 0, 40)
- Label.ZIndex = 3
- Label.Image = "rbxassetid://2790382281"
- Label.ImageColor3 = Color3.fromRGB(27, 32, 41)
- Label.ScaleType = Enum.ScaleType.Slice
- Label.SliceCenter = Rect.new(4, 4, 252, 252)
- Label.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
- type.Name = "Type"
- type.Value = "Label"
- type.Parent = Label
- label.Name = "label"
- label.Parent = Label
- label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- label.BackgroundTransparency = 1.000
- label.Size = UDim2.new(1, 0, 0, 40)
- label.ZIndex = 4
- label.Font = Enum.Font.GothamSemibold
- label.Text = name
- label.TextColor3 = Color3.fromRGB(255, 255, 255)
- label.TextSize = 25.000
- label.TextWrapped = true
- tabs[tostring(tab)] = tonumber(tabs[tostring(tab)]) + 1
- end
- end
- function notify(text, image, waitTime)
- text = text or "New Notification"
- image = image or ""
- waitTime = waitTime or 2
- if game.CoreGui:FindFirstChild("UI") then
- local Notification = Instance.new("ImageLabel")
- local Border = Instance.new("ImageLabel")
- local Label = Instance.new("TextLabel")
- local Image = Instance.new("ImageLabel")
- Notification.Name = text
- Notification.Parent = game.CoreGui:FindFirstChild("UI")
- Notification.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Notification.BackgroundTransparency = 1.000
- Notification.BorderSizePixel = 0
- Notification.Position = UDim2.new(1, 10, 1, -80)
- Notification.Size = UDim2.new(0, 250, 0, 60)
- Notification.ZIndex = 2
- Notification.Image = "rbxassetid://3570695787"
- Notification.ImageColor3 = Color3.fromRGB(33, 39, 50)
- Notification.ScaleType = Enum.ScaleType.Slice
- Notification.SliceCenter = Rect.new(100, 100, 100, 100)
- Notification.SliceScale = 0.120
- Border.Name = "Border"
- Border.Parent = Notification
- Border.AnchorPoint = Vector2.new(0.5, 0.5)
- Border.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Border.BackgroundTransparency = 1.000
- Border.Position = UDim2.new(0.5, 0, 0.5, 0)
- Border.Size = UDim2.new(1, 8, 1, 8)
- Border.Image = "rbxassetid://3570695787"
- Border.ImageColor3 = Color3.fromRGB(21, 25, 33)
- Border.ScaleType = Enum.ScaleType.Slice
- Border.SliceCenter = Rect.new(100, 100, 100, 100)
- Border.SliceScale = 0.040
- Label.Name = "Label"
- Label.Parent = Notification
- Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Label.BackgroundTransparency = 1.000
- Label.Size = UDim2.new(0.944000006, -75, 1, 0)
- Label.ZIndex = 3
- Label.Font = Enum.Font.GothamSemibold
- Label.Text = text
- Label.TextColor3 = Color3.fromRGB(255, 255, 255)
- Label.TextScaled = true
- Label.TextSize = 25.000
- Label.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- Label.TextWrapped = true
- Label.TextXAlignment = Enum.TextXAlignment.Left
- Image.Name = "Image"
- Image.Parent = Notification
- Image.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Image.BackgroundTransparency = 1.000
- Image.Position = UDim2.new(1, -80, 0, 5)
- Image.Size = UDim2.new(0, 50, 0, 50)
- Image.ZIndex = 3
- Image.Image = image
- Notification:TweenPosition(UDim2.new(1, -225, 1, -80), Enum.EasingDirection.In, Enum.EasingStyle.Bounce, 1.5)
- wait(1.5)
- wait(tonumber(waitTime))
- Notification:TweenPosition(UDim2.new(1, 10, 1, -80), Enum.EasingDirection.Out, Enum.EasingStyle.Bounce, 1.5)
- wait(1.5)
- Notification:Destroy()
- end
- end
- function addSection(name, tab)
- name = name or "New Section"
- if game.CoreGui:FindFirstChild("UI") then
- local Section = Instance.new("ImageButton")
- local Text = Instance.new("TextLabel")
- local type = Instance.new()
- Section.Name = name
- Section.Parent = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab)
- Section.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Section.BackgroundTransparency = 1.000
- Section.ZIndex = 1
- Section.Position = UDim2.new(0,0,0,tonumber(tabs[tostring(tab)]) * 45 - 45)
- Section.Image = "rbxassetid://2790382281"
- Section.ImageColor3 = Color3.fromRGB(27, 32, 41)
- Section.ScaleType = Enum.ScaleType.Slice
- Section.SliceCenter = Rect.new(4, 4, 252, 252)
- Section.Size = UDim2.new(1,0,0,0)
- type.Name = "Type"
- type.Value = "Section"
- type.Parent = Section
- Text.Name = "Label"
- Text.Parent = Section
- Text.BackgroundTransparency = 1
- Text.ZIndex = 2
- Text.Position = UDim2.new(0,15,0,5)
- Text.Text = name
- Text.TextSize = 25
- Text.Font = Enum.Font.SourceSansBold
- Text.TextColor3 = Color3.new(255,255,255)
- Texst.Size = UDim2.new(1, -15,0,15)
- Text.TextXAlignment = "Left"
- end
- end
- function addToSection(tab, item, section)
- if item ~= nil and section ~= nil then
- if game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(section) ~= nil then
- game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(section).Size = game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(section).Size + UDim2.new(0,0,0,43)
- game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(item).BackgroundTransparency = 1
- game.CoreGui:FindFirstChild("UI"):FindFirstChild("Main"):FindFirstChild("Container"):FindFirstChild(tab):FindFirstChild(item).ImageTransparency = 1
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement