Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function CreateBinosHubUI()
- local Players = game:GetService("Players")
- local LocalPlayer = Players.LocalPlayer
- local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
- -- Ana GUI
- local Gui = Instance.new("ScreenGui")
- Gui.Name = "BinosHubCustomUI"
- Gui.ResetOnSpawn = false
- Gui.Parent = PlayerGui
- -- Pencere
- local Window = Instance.new("Frame")
- Window.Size = UDim2.new(0, 450, 0, 450)
- Window.Position = UDim2.new(0.5, -225, 0.5, -225)
- Window.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- Window.BorderSizePixel = 0
- Window.Parent = Gui
- -- Başlık
- local Title = Instance.new("TextLabel")
- Title.Size = UDim2.new(1, 0, 0, 30)
- Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- Title.Text = "🧠 BinosHub v5 - Forest (Custom UI)"
- Title.TextColor3 = Color3.new(1,1,1)
- Title.Font = Enum.Font.SourceSansBold
- Title.TextSize = 20
- Title.Parent = Window
- -- Sekme Çubuğu
- local TabsFrame = Instance.new("Frame")
- TabsFrame.Size = UDim2.new(1, 0, 0, 30)
- TabsFrame.Position = UDim2.new(0,0,0,30)
- TabsFrame.BackgroundTransparency = 1
- TabsFrame.Parent = Window
- -- İçerik Alanı
- local ContentFrame = Instance.new("Frame")
- ContentFrame.Size = UDim2.new(1, 0, 1, -60)
- ContentFrame.Position = UDim2.new(0, 0, 0, 60)
- ContentFrame.BackgroundColor3 = Color3.fromRGB(40,40,40)
- ContentFrame.Parent = Window
- -- Sekme Yönetimi
- local Tabs = {}
- local CurrentTab
- local function CreateTab(name)
- local tabButton = Instance.new("TextButton")
- tabButton.Size = UDim2.new(0, 100, 1, 0)
- tabButton.BackgroundColor3 = Color3.fromRGB(50,50,50)
- tabButton.TextColor3 = Color3.new(1,1,1)
- tabButton.Font = Enum.Font.SourceSans
- tabButton.TextSize = 18
- tabButton.Text = name
- tabButton.Parent = TabsFrame
- local tabContent = Instance.new("Frame")
- tabContent.Size = UDim2.new(1,0,1,0)
- tabContent.BackgroundTransparency = 1
- tabContent.Visible = false
- tabContent.Parent = ContentFrame
- tabButton.MouseButton1Click:Connect(function()
- if CurrentTab then
- CurrentTab.Visible = false
- end
- tabContent.Visible = true
- CurrentTab = tabContent
- end)
- if not CurrentTab then
- CurrentTab = tabContent
- tabContent.Visible = true
- end
- Tabs[name] = tabContent
- return tabContent
- end
- -- Basit Buton Oluşturucu
- local function CreateButton(parent, name, callback)
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(0, 200, 0, 35)
- button.Position = UDim2.new(0, 10, 0, (#parent:GetChildren()-1) * 40 + 10)
- button.BackgroundColor3 = Color3.fromRGB(70,70,70)
- button.TextColor3 = Color3.new(1,1,1)
- button.Font = Enum.Font.SourceSans
- button.TextSize = 18
- button.Text = name
- button.Parent = parent
- button.MouseButton1Click:Connect(function()
- pcall(callback)
- end)
- return button
- end
- -- Toggle Oluşturucu
- local function CreateToggle(parent, name, default, callback)
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 200, 0, 35)
- frame.Position = UDim2.new(0, 10, 0, (#parent:GetChildren()-1) * 40 + 10)
- frame.BackgroundTransparency = 1
- frame.Parent = parent
- local label = Instance.new("TextLabel")
- label.Size = UDim2.new(0.7, 0, 1, 0)
- label.BackgroundTransparency = 1
- label.Text = name
- label.TextColor3 = Color3.new(1,1,1)
- label.Font = Enum.Font.SourceSans
- label.TextSize = 18
- label.TextXAlignment = Enum.TextXAlignment.Left
- label.Parent = frame
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(0.3, -10, 1, -10)
- button.Position = UDim2.new(0.7, 10, 0, 5)
- button.BackgroundColor3 = default and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
- button.Text = default and "ON" or "OFF"
- button.TextColor3 = Color3.new(1,1,1)
- button.Font = Enum.Font.SourceSansBold
- button.TextSize = 18
- button.Parent = frame
- local toggled = default
- button.MouseButton1Click:Connect(function()
- toggled = not toggled
- button.BackgroundColor3 = toggled and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
- button.Text = toggled and "ON" or "OFF"
- pcall(function()
- callback(toggled)
- end)
- end)
- return frame
- end
- -- Bildirim fonksiyonu
- local function Notify(text, duration)
- duration = duration or 3
- local notif = Instance.new("Frame")
- notif.Size = UDim2.new(0, 300, 0, 50)
- notif.Position = UDim2.new(0.5, -150, 0, 50)
- notif.BackgroundColor3 = Color3.fromRGB(30,30,30)
- notif.BorderSizePixel = 0
- notif.Parent = Gui
- local label = Instance.new("TextLabel")
- label.Size = UDim2.new(1,0,1,0)
- label.BackgroundTransparency = 1
- label.TextColor3 = Color3.new(1,1,1)
- label.Font = Enum.Font.SourceSansBold
- label.TextSize = 20
- label.Text = text
- label.Parent = notif
- task.delay(duration, function()
- notif:Destroy()
- end)
- end
- return {
- CreateTab = CreateTab,
- CreateButton = CreateButton,
- CreateToggle = CreateToggle,
- Notify = Notify,
- Gui = Gui,
- Window = Window,
- Tabs = Tabs,
- }
- end
- return CreateBinosHubUI
Advertisement
Add Comment
Please, Sign In to add comment