C00lkidd27

Untitled

Jul 19th, 2025
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.74 KB | None | 0 0
  1. local function CreateBinosHubUI()
  2. local Players = game:GetService("Players")
  3. local LocalPlayer = Players.LocalPlayer
  4. local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
  5.  
  6. -- Ana GUI
  7. local Gui = Instance.new("ScreenGui")
  8. Gui.Name = "BinosHubCustomUI"
  9. Gui.ResetOnSpawn = false
  10. Gui.Parent = PlayerGui
  11.  
  12. -- Pencere
  13. local Window = Instance.new("Frame")
  14. Window.Size = UDim2.new(0, 450, 0, 450)
  15. Window.Position = UDim2.new(0.5, -225, 0.5, -225)
  16. Window.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  17. Window.BorderSizePixel = 0
  18. Window.Parent = Gui
  19.  
  20. -- Başlık
  21. local Title = Instance.new("TextLabel")
  22. Title.Size = UDim2.new(1, 0, 0, 30)
  23. Title.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  24. Title.Text = "🧠 BinosHub v5 - Forest (Custom UI)"
  25. Title.TextColor3 = Color3.new(1,1,1)
  26. Title.Font = Enum.Font.SourceSansBold
  27. Title.TextSize = 20
  28. Title.Parent = Window
  29.  
  30. -- Sekme Çubuğu
  31. local TabsFrame = Instance.new("Frame")
  32. TabsFrame.Size = UDim2.new(1, 0, 0, 30)
  33. TabsFrame.Position = UDim2.new(0,0,0,30)
  34. TabsFrame.BackgroundTransparency = 1
  35. TabsFrame.Parent = Window
  36.  
  37. -- İçerik Alanı
  38. local ContentFrame = Instance.new("Frame")
  39. ContentFrame.Size = UDim2.new(1, 0, 1, -60)
  40. ContentFrame.Position = UDim2.new(0, 0, 0, 60)
  41. ContentFrame.BackgroundColor3 = Color3.fromRGB(40,40,40)
  42. ContentFrame.Parent = Window
  43.  
  44. -- Sekme Yönetimi
  45. local Tabs = {}
  46. local CurrentTab
  47.  
  48. local function CreateTab(name)
  49. local tabButton = Instance.new("TextButton")
  50. tabButton.Size = UDim2.new(0, 100, 1, 0)
  51. tabButton.BackgroundColor3 = Color3.fromRGB(50,50,50)
  52. tabButton.TextColor3 = Color3.new(1,1,1)
  53. tabButton.Font = Enum.Font.SourceSans
  54. tabButton.TextSize = 18
  55. tabButton.Text = name
  56. tabButton.Parent = TabsFrame
  57.  
  58. local tabContent = Instance.new("Frame")
  59. tabContent.Size = UDim2.new(1,0,1,0)
  60. tabContent.BackgroundTransparency = 1
  61. tabContent.Visible = false
  62. tabContent.Parent = ContentFrame
  63.  
  64. tabButton.MouseButton1Click:Connect(function()
  65. if CurrentTab then
  66. CurrentTab.Visible = false
  67. end
  68. tabContent.Visible = true
  69. CurrentTab = tabContent
  70. end)
  71.  
  72. if not CurrentTab then
  73. CurrentTab = tabContent
  74. tabContent.Visible = true
  75. end
  76.  
  77. Tabs[name] = tabContent
  78. return tabContent
  79. end
  80.  
  81. -- Basit Buton Oluşturucu
  82. local function CreateButton(parent, name, callback)
  83. local button = Instance.new("TextButton")
  84. button.Size = UDim2.new(0, 200, 0, 35)
  85. button.Position = UDim2.new(0, 10, 0, (#parent:GetChildren()-1) * 40 + 10)
  86. button.BackgroundColor3 = Color3.fromRGB(70,70,70)
  87. button.TextColor3 = Color3.new(1,1,1)
  88. button.Font = Enum.Font.SourceSans
  89. button.TextSize = 18
  90. button.Text = name
  91. button.Parent = parent
  92.  
  93. button.MouseButton1Click:Connect(function()
  94. pcall(callback)
  95. end)
  96. return button
  97. end
  98.  
  99. -- Toggle Oluşturucu
  100. local function CreateToggle(parent, name, default, callback)
  101. local frame = Instance.new("Frame")
  102. frame.Size = UDim2.new(0, 200, 0, 35)
  103. frame.Position = UDim2.new(0, 10, 0, (#parent:GetChildren()-1) * 40 + 10)
  104. frame.BackgroundTransparency = 1
  105. frame.Parent = parent
  106.  
  107. local label = Instance.new("TextLabel")
  108. label.Size = UDim2.new(0.7, 0, 1, 0)
  109. label.BackgroundTransparency = 1
  110. label.Text = name
  111. label.TextColor3 = Color3.new(1,1,1)
  112. label.Font = Enum.Font.SourceSans
  113. label.TextSize = 18
  114. label.TextXAlignment = Enum.TextXAlignment.Left
  115. label.Parent = frame
  116.  
  117. local button = Instance.new("TextButton")
  118. button.Size = UDim2.new(0.3, -10, 1, -10)
  119. button.Position = UDim2.new(0.7, 10, 0, 5)
  120. button.BackgroundColor3 = default and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
  121. button.Text = default and "ON" or "OFF"
  122. button.TextColor3 = Color3.new(1,1,1)
  123. button.Font = Enum.Font.SourceSansBold
  124. button.TextSize = 18
  125. button.Parent = frame
  126.  
  127. local toggled = default
  128.  
  129. button.MouseButton1Click:Connect(function()
  130. toggled = not toggled
  131. button.BackgroundColor3 = toggled and Color3.fromRGB(0,170,0) or Color3.fromRGB(170,0,0)
  132. button.Text = toggled and "ON" or "OFF"
  133. pcall(function()
  134. callback(toggled)
  135. end)
  136. end)
  137.  
  138. return frame
  139. end
  140.  
  141. -- Bildirim fonksiyonu
  142. local function Notify(text, duration)
  143. duration = duration or 3
  144. local notif = Instance.new("Frame")
  145. notif.Size = UDim2.new(0, 300, 0, 50)
  146. notif.Position = UDim2.new(0.5, -150, 0, 50)
  147. notif.BackgroundColor3 = Color3.fromRGB(30,30,30)
  148. notif.BorderSizePixel = 0
  149. notif.Parent = Gui
  150.  
  151. local label = Instance.new("TextLabel")
  152. label.Size = UDim2.new(1,0,1,0)
  153. label.BackgroundTransparency = 1
  154. label.TextColor3 = Color3.new(1,1,1)
  155. label.Font = Enum.Font.SourceSansBold
  156. label.TextSize = 20
  157. label.Text = text
  158. label.Parent = notif
  159.  
  160. task.delay(duration, function()
  161. notif:Destroy()
  162. end)
  163. end
  164.  
  165. return {
  166. CreateTab = CreateTab,
  167. CreateButton = CreateButton,
  168. CreateToggle = CreateToggle,
  169. Notify = Notify,
  170. Gui = Gui,
  171. Window = Window,
  172. Tabs = Tabs,
  173. }
  174. end
  175.  
  176. return CreateBinosHubUI
Tags: ui
Advertisement
Add Comment
Please, Sign In to add comment