Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Library = {}
- --// Game Load
- local gameLoaded = false
- if not game:IsLoaded() then
- game.Loaded:Wait()
- end
- gameLoaded = true
- --// Variables
- local GuiName = "OVPGui2"
- local RunService = game:GetService("RunService")
- local TweenService = game:GetService("TweenService")
- local UserInputService = game:GetService("UserInputService")
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
- local CoreGui = game:GetService("CoreGui")
- local TweenStyle = TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
- local Font = "ArimoBold"
- local MainColor3 = Color3.fromRGB(30, 30, 36)
- local WhiteColor3 = Color3.fromRGB(255, 255, 255)
- -- Initialization
- for i,v in pairs(CoreGui:GetChildren()) do
- if v.Name == GuiName then
- v:Destroy()
- end
- end
- --// Library
- local OVPGui = Instance.new("ScreenGui")
- OVPGui.Name = GuiName
- OVPGui.Parent = CoreGui
- local OVPWindow = Instance.new("Frame")
- OVPWindow.Name = "Window"
- OVPWindow.Parent = OVPGui
- OVPWindow.Size = UDim2.new(1,0,1,0)
- OVPWindow.Position = UDim2.new(0,8,0,4)
- OVPWindow.BackgroundTransparency = 1
- local ResetButton = Instance.new("ImageButton")
- ResetButton.Parent = OVPGui
- ResetButton.Size = UDim2.new(0,30,0,30)
- ResetButton.Position = UDim2.new(0.5,-15,0,-20)
- ResetButton.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4778802974"
- ResetButton.BackgroundTransparency = 0
- ResetButton.BackgroundColor3 = MainColor3
- ResetButton.Rotation = 0
- ResetButton.MouseButton1Click:Connect(function()
- OVPWindow.Position = UDim2.new(0,8,0,4)
- end)
- local RoundedCorner = Instance.new("UICorner")
- RoundedCorner.CornerRadius = UDim.new(0, 8)
- RoundedCorner.Parent = ResetButton
- local ContainerUIListLayout = Instance.new("UIListLayout")
- ContainerUIListLayout.Parent = OVPWindow
- ContainerUIListLayout.Padding = UDim.new(0,10)
- ContainerUIListLayout.FillDirection = Enum.FillDirection.Horizontal
- function Library:CreateContainer(Header)
- local OVPContainer = Instance.new("Frame")
- OVPContainer.Name = Header
- OVPContainer.Parent = OVPWindow
- OVPContainer.Size = UDim2.new(0, 200, 0, 40)
- OVPContainer.Position = UDim2.new(0, 8, 0, 4)
- OVPContainer.BackgroundColor3 = MainColor3
- OVPContainer.BorderColor3 = WhiteColor3
- OVPContainer.BorderSizePixel = 0
- local RoundedCorner = Instance.new("UICorner")
- RoundedCorner.CornerRadius = UDim.new(0, 8)
- RoundedCorner.Parent = OVPContainer
- local OVPHeader = Instance.new("TextLabel")
- OVPHeader.Parent = OVPContainer
- OVPHeader.Name = "Header"
- OVPHeader.Text = Header
- OVPHeader.Font = Font
- OVPHeader.TextSize = 18
- OVPHeader.TextColor3 = WhiteColor3
- OVPHeader.Size = UDim2.new(0, 170, 0, 40)
- OVPHeader.Position = UDim2.new(0, 10, 0, 0)
- OVPHeader.TextXAlignment = Enum.TextXAlignment.Left
- OVPHeader.BorderSizePixel = 0
- OVPHeader.BackgroundTransparency = 1
- local LockButton = Instance.new("ImageButton")
- LockButton.Parent = OVPContainer
- LockButton.Size = UDim2.new(0,20,0,20)
- LockButton.Position = UDim2.new(1,-25,0,10)
- LockButton.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541"
- LockButton.BackgroundTransparency = 1
- LockButton.Rotation = 180
- local LockButtonToggled = false
- LockButton.MouseButton1Click:Connect(function()
- LockButtonToggled = not LockButtonToggled
- if LockButtonToggled then
- LockButton.Rotation = 90
- else
- LockButton.Rotation = 180
- end
- end)
- local ScrollingFrame= Instance.new("ScrollingFrame")
- ScrollingFrame.Parent = OVPContainer
- ScrollingFrame.Size = UDim2.new(1,-10,0,0)
- ScrollingFrame.Position = UDim2.new(0,5,0,40)
- ScrollingFrame.ScrollBarThickness = 0
- ScrollingFrame.BorderSizePixel = 1
- ScrollingFrame.BackgroundColor3 = WhiteColor3
- ScrollingFrame.BackgroundTransparency = 1
- local UIListLayout = Instance.new("UIListLayout")
- UIListLayout.Parent = ScrollingFrame
- UIListLayout.Padding = UDim.new(0,5)
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- function onMouseEnter()
- TweenOVPContainer = TweenService:Create(OVPContainer, TweenStyle, {Size = UDim2.new(0, 200, 0.5, 0)})
- TweenScrollingFrame = TweenService:Create(ScrollingFrame, TweenStyle, {Size = UDim2.new(1, -10, 1, -45)})
- TweenOVPContainer:Play()
- TweenScrollingFrame:Play()
- end
- function onMouseLeave()
- if not LockButtonToggled then
- TweenOVPContainer = TweenService:Create(OVPContainer, TweenStyle, {Size = UDim2.new(0, 200, 0, 40)})
- TweenScrollingFrame = TweenService:Create(ScrollingFrame, TweenStyle, {Size = UDim2.new(1, -10, 0, 0)})
- TweenOVPContainer:Play()
- TweenScrollingFrame:Play()
- end
- end
- OVPContainer.MouseEnter:Connect(onMouseEnter)
- OVPContainer.MouseLeave:Connect(onMouseLeave)
- end
- print("PasteBin 1")
- return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement