Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local dali = {}
- dali.gs = {}
- dali.theme = { -- light
- main_container = Color3.fromRGB(249, 249, 255),
- separator_color = Color3.fromRGB(223, 219, 228),
- text_color = Color3.fromRGB(96, 96, 96),
- category_button_background = Color3.fromRGB(223, 219, 228),
- category_button_border = Color3.fromRGB(200, 196, 204),
- checkbox_checked = Color3.fromRGB(114, 214, 112),
- checkbox_outer = Color3.fromRGB(198, 189, 202),
- checkbox_inner = Color3.fromRGB(249, 239, 255),
- slider_color = Color3.fromRGB(114, 214, 112),
- slider_color_sliding = Color3.fromRGB(114, 214, 112),
- slider_background = Color3.fromRGB(198, 188, 202),
- slider_text = Color3.fromRGB(112, 112, 112),
- textbox_background = Color3.fromRGB(198, 189, 202),
- textbox_background_hover = Color3.fromRGB(215, 206, 227),
- textbox_text = Color3.fromRGB(112, 112, 112),
- textbox_text_hover = Color3.fromRGB(50, 50, 50),
- textbox_placeholder = Color3.fromRGB(178, 178, 178),
- dropdown_background = Color3.fromRGB(198, 189, 202),
- dropdown_text = Color3.fromRGB(112, 112, 112),
- dropdown_text_hover = Color3.fromRGB(50, 50, 50),
- dropdown_scrollbar_color = Color3.fromRGB(198, 189, 202),
- button_background = Color3.fromRGB(198, 189, 202),
- button_background_hover = Color3.fromRGB(215, 206, 227),
- button_background_down = Color3.fromRGB(178, 169, 182),
- }
- setmetatable(dali.gs, {
- __index = function(_, service)
- return game:GetService(service)
- end,
- __newindex = function(t, i)
- t[i] = nil
- return
- end
- })
- local mouse = dali.gs["Players"].LocalPlayer:GetMouse()
- function dali:Create(class, properties)
- local object = Instance.new(class)
- for prop, val in next, properties do
- if object[prop] and prop ~= "Parent" then
- object[prop] = val
- end
- end
- return object
- end
- function dali.new()
- local daliObject = {}
- local instance = daliObject
- local self = dali
- local tweenservice = game:GetService("TweenService")
- local frame = instance.container
- frame.AnchorPoint = Vector2.new(0.5, 0.5)
- frame.Position = UDim2.new(0, 70, 0, 70)
- frame.BorderSizePixel = 0
- frame.Size = UDim2.new(0, 100, 0, 100)
- frame.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
- local tweeninfo1 = TweenInfo.new(1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
- local tween1 = tweenservice:Create(frame, tweeninfo1, {Position = UDim2.new(0.5, 0, 0.5, 0)})
- local tweeninfo2 = TweenInfo.new(1.5, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut)
- local tween2 = tweenservice:Create(frame, tweeninfo2, {Rotation = 180})
- tween1.Completed:Connect(function()
- tween2:Play()
- end)
- wait(2)
- tween1:Play()
- wait(2.5)
- frame:TweenSize(UDim2.new(0, 731,0, 379), "Out", "Sine", 0.3, true)
- if not dali.gs["RunService"]:IsStudio() and self.gs["CoreGui"]:FindFirstChild("daliUI") then
- warn("dali:", "screengui already exist in coregui!")
- return
- end
- local toggled = true
- local typing = false
- local firstcat = false
- local daliData
- daliData = {
- UpConnection = nil,
- ToggleKey = Enum.KeyCode.Home,
- }
- instance.ChangeToggleKey = function(NewKey)
- daliData.ToggleKey = NewKey
- instance.tip.Text = "Press '".. string.sub(tostring(NewKey), 14) .."' to close the GUI."
- if daliData.UpConnection then
- daliData.UpConnection:Disconnect()
- end
- daliData.UpConnection = dali.gs["UserInputService"].InputEnded:Connect(function(Input)
- if Input.KeyCode == daliData.ToggleKey and not typing then
- toggled = not toggled
- if toggled then
- instance.container:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "Out", "Quad", 0.1, true)
- else
- instance.container:TweenPosition(UDim2.new(0.5, 0, 1.5, 0), "Out", "Quad", 0.1, true)
- end
- end
- end)
- end
- instance.userinterface = self:Create("ScreenGui", {
- Name = "uiLib",
- ZIndexBehavior = Enum.ZIndexBehavior.Global,
- ResetOnSpawn = false,
- })
- instance.container = self:Create("Frame", {
- Draggable = true,
- Active = true,
- Name = "mainFrame",
- AnchorPoint = Vector2.new(0.5, 0.5),
- BackgroundTransparency = 0,
- BackgroundColor3 = Color3.fromRGB(26, 26, 26),
- BorderSizePixel = 1,
- Position = UDim2.new(0.5, 0, 0.5, 0),
- Size = UDim2.new(0, 731,0, 379),
- ZIndex = 2
- })
- instance.menubutton = self:Create("TextButton", {
- Name = "MenuButton",
- BackgroundColor3 = Color3.fromRGB(26, 26, 26),
- BackgroundTransparency = 0,
- BorderColor3 = Color3.new(67, 67, 67),
- BorderSizePixel = 0,
- AutoButtonColor = false,
- ZIndex = 2,
- })
- instance.menu = self:Create("Frame", {
- Name = "Menu",
- BackgroundColor3 = Color3.fromRGB(27, 27, 27),
- BackgroundTransparency = 0,
- BorderColor3 = Color3.new(67, 67, 67),
- BorderSizePixel = 0,
- Size = UDim2.new(0, 120, 1, -30),
- Position = UDim2.new(0, 0, 0, 30),
- ZIndex = 2,
- })
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement