Advertisement
overgrinds

OVPZZZ

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