Advertisement
overgrinds

OVP123123

Nov 17th, 2024 (edited)
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.40 KB | None | 0 0
  1. local Library = {}
  2.  
  3. --// Game Load
  4. local gameLoaded = false
  5. if not game:IsLoaded() then
  6.     game.Loaded:Wait()
  7. end
  8. gameLoaded = true
  9.  
  10. --// Variables
  11.  
  12. local RunService = game:GetService("RunService")
  13. local TweenService = game:GetService("TweenService")
  14. local UserInputService = game:GetService("UserInputService")
  15. local Players = game:GetService("Players")
  16. local LocalPlayer = Players.LocalPlayer
  17. local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
  18. local CoreGui = game:GetService("CoreGui")
  19. local TweenStyle = TweenInfo.new(0.1, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  20.  
  21. local Font = "ArimoBold"
  22. local MainColor3 = Color3.fromRGB(30, 30, 36)
  23. local WhiteColor3 = Color3.fromRGB(255, 255, 255)
  24.  
  25. -- Initialization
  26. for i,v in pairs(CoreGui:GetChildren()) do
  27.     if v.Name == "OVPGui" then
  28.         v:Destroy()
  29.     end
  30. end
  31.  
  32. --// Library
  33.  
  34. local OVPGui = Instance.new("ScreenGui")
  35. OVPGui.Name = "OVPGui"
  36. OVPGui.Parent = CoreGui
  37.  
  38. local OVPWindow = Instance.new("Frame")
  39. OVPWindow.Name = "Window"
  40. OVPWindow.Parent = OVPGui
  41. OVPWindow.Size = UDim2.new(1,0,1,0)
  42. OVPWindow.Position = UDim2.new(0,8,0,4)
  43. OVPWindow.BackgroundTransparency = 1
  44.  
  45. local ContainerUIListLayout = Instance.new("UIListLayout")
  46. ContainerUIListLayout.Parent = OVPWindow
  47. ContainerUIListLayout.Padding = UDim.new(0,10)
  48. ContainerUIListLayout.FillDirection = Enum.FillDirection.Horizontal
  49.  
  50. function Library.Container(Title)
  51.  
  52.     local OVPContainer = Instance.new("Frame")
  53.     OVPContainer.Name = Title
  54.     OVPContainer.Parent = OVPWindow
  55.     OVPContainer.Size = UDim2.new(0, 200, 0, 40)
  56.     OVPContainer.Position = UDim2.new(0, 8, 0, 4)
  57.     OVPContainer.BackgroundColor3 = MainColor3
  58.     OVPContainer.BorderColor3 = WhiteColor3
  59.     OVPContainer.BorderSizePixel = 0
  60.  
  61.     local RoundedCorner = Instance.new("UICorner")
  62.     RoundedCorner.CornerRadius = UDim.new(0, 8)
  63.     RoundedCorner.Parent = OVPContainer
  64.  
  65.     local OVPHeader = Instance.new("TextLabel")
  66.     OVPHeader.Parent = OVPContainer
  67.     OVPHeader.Name = "Header"
  68.     OVPHeader.Text = Header
  69.     OVPHeader.Font = Font
  70.     OVPHeader.TextSize = 18
  71.     OVPHeader.TextColor3 = WhiteColor3
  72.     OVPHeader.Size = UDim2.new(0, 170, 0, 40)
  73.     OVPHeader.Position = UDim2.new(0, 10, 0, 0)
  74.     OVPHeader.TextXAlignment = Enum.TextXAlignment.Left
  75.     OVPHeader.BorderSizePixel = 0
  76.     OVPHeader.BackgroundTransparency = 1
  77.  
  78.     local LockButton = Instance.new("ImageButton")
  79.     LockButton.Parent = OVPContainer
  80.     LockButton.Size = UDim2.new(0,20,0,20)
  81.     LockButton.Position = UDim2.new(1,-25,0,10)
  82.     LockButton.Image = "https://www.roblox.com/Thumbs/Asset.ashx?width=420&height=420&assetId=4731371541"
  83.     LockButton.BackgroundTransparency = 1
  84.     LockButton.Rotation = 180
  85.     local LockButtonToggled = false
  86.     LockButton.MouseButton1Click:Connect(function()
  87.         LockButtonToggled = not LockButtonToggled
  88.         if LockButtonToggled then
  89.             LockButton.Rotation = 90
  90.         else
  91.             LockButton.Rotation = 180
  92.         end
  93.     end)
  94.  
  95.     local ScrollingFrame = Instance.new("ScrollingFrame")
  96.     ScrollingFrame.Parent = OVPContainer
  97.     ScrollingFrame.Size = UDim2.new(1,-10,0,0)
  98.     ScrollingFrame.Position = UDim2.new(0,5,0,40)
  99.     ScrollingFrame.ScrollBarThickness = 0
  100.     ScrollingFrame.BorderSizePixel = 1
  101.     ScrollingFrame.BackgroundColor3 = WhiteColor3
  102.     ScrollingFrame.BackgroundTransparency = 1
  103.  
  104.     local UIListLayout = Instance.new("UIListLayout")
  105.     UIListLayout.Parent = ScrollingFrame
  106.     UIListLayout.Padding = UDim.new(0,5)
  107.     UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  108.  
  109.     function onMouseEnter()
  110.         TweenOVPContainer = TweenService:Create(OVPContainer, TweenStyle, {Size = UDim2.new(0, 200, 0.5, 0)})
  111.         TweenScrollingFrame = TweenService:Create(ScrollingFrame, TweenStyle, {Size = UDim2.new(1, -10, 1, -45)})
  112.         TweenOVPContainer:Play()
  113.         TweenScrollingFrame:Play()
  114.     end
  115.     function onMouseLeave()
  116.         if not LockButtonToggled then
  117.             TweenOVPContainer = TweenService:Create(OVPContainer, TweenStyle, {Size = UDim2.new(0, 200, 0, 40)})
  118.             TweenScrollingFrame = TweenService:Create(ScrollingFrame, TweenStyle, {Size = UDim2.new(1, -10, 0, 0)})
  119.             TweenOVPContainer:Play()
  120.             TweenScrollingFrame:Play()
  121.         end
  122.     end
  123.  
  124.     OVPContainer.MouseEnter:Connect(onMouseEnter)
  125.     OVPContainer.MouseLeave:Connect(onMouseLeave)
  126. end
  127.  
  128. return Library
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement