Johnhacker999

Blox fruits cogin studios

Aug 27th, 2025
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.30 KB | None | 0 0
  1. --// Cogin Hub Blox Fruits //--
  2. -- Fullscreen GUI, draggable, with multiple script hubs
  3.  
  4. local player = game.Players.LocalPlayer
  5. local playerGui = player:WaitForChild("PlayerGui")
  6. local UserInputService = game:GetService("UserInputService")
  7.  
  8. -- ScreenGui
  9. local ScreenGui = Instance.new("ScreenGui")
  10. ScreenGui.Name = "CoginHubBloxFruits"
  11. ScreenGui.ResetOnSpawn = false
  12. ScreenGui.Parent = playerGui
  13.  
  14. -- Main Frame (Full Screen)
  15. local MainFrame = Instance.new("Frame")
  16. MainFrame.Size = UDim2.new(1, 0, 1, 0)
  17. MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  18. MainFrame.BorderSizePixel = 0
  19. MainFrame.Visible = true
  20. MainFrame.Parent = ScreenGui
  21.  
  22. local UICorner = Instance.new("UICorner")
  23. UICorner.CornerRadius = UDim.new(0, 8)
  24. UICorner.Parent = MainFrame
  25.  
  26. -- Title
  27. local Title = Instance.new("TextLabel")
  28. Title.Size = UDim2.new(1, 0, 0.05, 0)
  29. Title.Text = "⚔️ Cogin Hub - Blox Fruits ⚔️"
  30. Title.TextSize = 36
  31. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  32. Title.BackgroundTransparency = 1
  33. Title.Font = Enum.Font.SourceSansBold
  34. Title.Parent = MainFrame
  35.  
  36. -- Toggle Button (floating)
  37. local ToggleButton = Instance.new("TextButton")
  38. ToggleButton.Size = UDim2.new(0, 160, 0, 40)
  39. ToggleButton.Position = UDim2.new(0, 10, 0, 10)
  40. ToggleButton.Text = "Close Hub"
  41. ToggleButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  42. ToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  43. ToggleButton.Font = Enum.Font.SourceSansBold
  44. ToggleButton.TextSize = 20
  45. ToggleButton.Parent = ScreenGui
  46.  
  47. -- Scrollable container for script buttons
  48. local ButtonsContainer = Instance.new("ScrollingFrame")
  49. ButtonsContainer.Size = UDim2.new(1, 0, 0.9, 0)
  50. ButtonsContainer.Position = UDim2.new(0, 0, 0.08, 0)
  51. ButtonsContainer.BackgroundTransparency = 1
  52. ButtonsContainer.ScrollBarThickness = 6
  53. ButtonsContainer.CanvasSize = UDim2.new(0, 0, 0, 0)
  54. ButtonsContainer.Parent = MainFrame
  55.  
  56. local UIListLayout = Instance.new("UIListLayout")
  57. UIListLayout.FillDirection = Enum.FillDirection.Vertical
  58. UIListLayout.Padding = UDim.new(0.01, 0)
  59. UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  60. UIListLayout.Parent = ButtonsContainer
  61.  
  62. -- Script buttons list
  63. local buttons = {
  64.     {
  65.         name = "BlueX Hub",
  66.         callback = function()
  67.             loadstring(game:HttpGet("https://raw.githubusercontent.com/Dev-BlueX/BlueX-Hub/refs/heads/main/EN.lua"))()
  68.         end
  69.     },
  70.     {
  71.         name = "Ziner Hub",
  72.         callback = function()
  73.             loadstring(game:HttpGet("https://raw.githubusercontent.com/Tienvn123tkvn/Test/main/ZINERHUB.lua"))()
  74.         end
  75.     },
  76.     {
  77.         name = "Annie Hub",
  78.         callback = function()
  79.             loadstring(game:HttpGet("https://raw.githubusercontent.com/1st-Mars/Annie/main/1st.lua"))()
  80.         end
  81.     },
  82.     {
  83.         name = "Banana Hub",
  84.         callback = function()
  85.             loadstring(game:HttpGet("https://raw.githubusercontent.com/GoblinKun009/Script/refs/heads/main/ZynHub", true))()
  86.         end
  87.     },
  88.     {
  89.         name = "Kevin VScript",
  90.         callback = function()
  91.             loadstring(game:HttpGet("https://raw.githubusercontent.com/KevinGithubUsers/KevinGithubUsers/refs/heads/main/VScript(Blox%20Fruits).txt"))()
  92.         end
  93.     },
  94.     {
  95.         name = "NatHub",
  96.         callback = function()
  97.             loadstring(game:HttpGet("https://raw.githubusercontent.com/ArdyBotzz/NatHub/refs/heads/master/bf.lua"))()
  98.         end
  99.     },
  100.     {
  101.         name = "RO-Hub",
  102.         callback = function()
  103.             _G.settings = {autoLoadConfig = false, joinTeam = "Pirates"}
  104.             loadstring(game:HttpGet("https://raw.githubusercontent.com/RO-HUB-CODEX/RO-HUB/refs/heads/main/bloxfruits.lua"))()
  105.         end
  106.     },
  107.     {
  108.         name = "MaruHub (Marines)",
  109.         callback = function()
  110.             getgenv().Team = "Marines"
  111.             loadstring(game:HttpGet("https://raw.githubusercontent.com/LuaCrack/KimP/refs/heads/main/MaruHub"))()
  112.         end
  113.     },
  114.     {
  115.         name = "Hoang Loader (Pirates)",
  116.         callback = function()
  117.             getgenv().Team = "Pirates"
  118.             loadstring(game:HttpGet("https://raw.githubusercontent.com/HoangNguyenk8/Scripts/refs/heads/main/Loader.lua"))()
  119.         end
  120.     },
  121.     {
  122.         name = "Skibidi Loader",
  123.         callback = function()
  124.             loadstring(game:HttpGet("https://raw.githubusercontent.com/SkibidiSupremacy/Loader.xyz/main/Beta.Loader"))()
  125.         end
  126.     },
  127.     {
  128.         name = "Dominance Hub",
  129.         callback = function()
  130.             loadstring(game:HttpGet('https://raw.githubusercontent.com/Script-Blox/Script/main/Dominance'))()
  131.         end
  132.     },
  133.     {
  134.         name = "MTriet Hub",
  135.         callback = function()
  136.             loadstring(game:HttpGet("https://raw.githubusercontent.com/Minhtriettt/Free-Script/main/MTriet-Hub.lua"))()
  137.         end
  138.     },
  139.     {
  140.         name = "AhmadS Gamer Script",
  141.         callback = function()
  142.             loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/ahmadsgamer2/Script--Game/main/Script%20Game"))()
  143.         end
  144.     },
  145.     {
  146.         name = "Credits",
  147.         callback = function()
  148.             game:GetService("StarterGui"):SetCore("SendNotification", {
  149.                 Title = "Credits",
  150.                 Text = "Made by Cogin / Sources: cheater.fun",
  151.                 Duration = 5
  152.             })
  153.         end
  154.     },
  155. }
  156.  
  157. -- Generate buttons
  158. for _, item in ipairs(buttons) do
  159.     local btn = Instance.new("TextButton")
  160.     btn.Size = UDim2.new(1, -10, 0, 40)
  161.     btn.Text = item.name
  162.     btn.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
  163.     btn.TextColor3 = Color3.fromRGB(0, 0, 0)
  164.     btn.Font = Enum.Font.SourceSansBold
  165.     btn.TextSize = 20
  166.     btn.Parent = ButtonsContainer
  167.  
  168.     local UICornerBtn = Instance.new("UICorner")
  169.     UICornerBtn.CornerRadius = UDim.new(0.1, 0)
  170.     UICornerBtn.Parent = btn
  171.  
  172.     btn.MouseButton1Click:Connect(function()
  173.         pcall(item.callback)
  174.     end)
  175. end
  176.  
  177. -- Auto adjust scroll size
  178. UIListLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  179.     ButtonsContainer.CanvasSize = UDim2.new(0, 0, 0, UIListLayout.AbsoluteContentSize.Y + 10)
  180. end)
  181.  
  182. -- Toggle visibility
  183. local menuOpen = true
  184. ToggleButton.MouseButton1Click:Connect(function()
  185.     menuOpen = not menuOpen
  186.     MainFrame.Visible = menuOpen
  187.     ToggleButton.Text = menuOpen and "Close Hub" or "Open Hub"
  188. end)
  189.  
  190. -- Draggable MainFrame
  191. local dragging, dragInput, dragStart, startPos
  192. MainFrame.InputBegan:Connect(function(input)
  193.     if input.UserInputType == Enum.UserInputType.MouseButton1 then
  194.         dragging = true
  195.         dragStart = input.Position
  196.         startPos = MainFrame.Position
  197.  
  198.         input.Changed:Connect(function()
  199.             if input.UserInputState == Enum.UserInputState.End then
  200.                 dragging = false
  201.             end
  202.         end)
  203.     end
  204. end)
  205.  
  206. MainFrame.InputChanged:Connect(function(input)
  207.     if input.UserInputType == Enum.UserInputType.MouseMovement then
  208.         dragInput = input
  209.     end
  210. end)
  211.  
  212. UserInputService.InputChanged:Connect(function(input)
  213.     if input == dragInput and dragging then
  214.         local delta = input.Position - dragStart
  215.         MainFrame.Position = UDim2.new(
  216.             startPos.X.Scale,
  217.             startPos.X.Offset + delta.X,
  218.             startPos.Y.Scale,
  219.             startPos.Y.Offset + delta.Y
  220.         )
  221.     end
  222. end)
Advertisement
Add Comment
Please, Sign In to add comment