Advertisement
Guest User

BEAR (ALPHA) SCRIPT HUB - Star Hack Hub | Roblox

a guest
Aug 6th, 2024
2,018
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.59 KB | None | 0 0
  1. -- Script made by: Star_Hack // Follow on YouTube: StarHackScripts//
  2.  
  3. -- Variables globales para el efecto ESP
  4. local espCheeseAltar = {}
  5. local espCheeseAltar2 = {}
  6. local espCheese2 = {}
  7. local espCheese1 = {}
  8. local espWires = {}
  9. local espColorCodePuzzle = {}
  10. local espColorCodes = {}
  11.  
  12. -- Variables para el estado de activación del ESP
  13. local espStates = {
  14. CheeseAltar = false,
  15. CheeseAltar2 = false,
  16. Cheese2 = false,
  17. Cheese1 = false,
  18. WirePuzzle = false,
  19. ColorCodePuzzle = false,
  20. ColorCodes = false
  21. }
  22.  
  23. -- Función para actualizar el color de fondo de los botones
  24. local function updateButtonBackground(button, isActive)
  25. button.BackgroundColor3 = isActive and Color3.fromRGB(0, 200, 0) or Color3.fromRGB(255, 255, 255)
  26. end
  27.  
  28. -- Función para crear y añadir un BillboardGui con texto sobre un objeto
  29. local function createBillboardGui(parent, text, color)
  30. local billboardGui = Instance.new("BillboardGui")
  31. billboardGui.Adornee = parent
  32. billboardGui.Size = UDim2.new(0, 100, 0, 50)
  33. billboardGui.StudsOffset = Vector3.new(0, 2, 0)
  34. billboardGui.AlwaysOnTop = true
  35.  
  36. local textLabel = Instance.new("TextLabel")
  37. textLabel.Parent = billboardGui
  38. textLabel.Size = UDim2.new(1, 0, 1, 0)
  39. textLabel.BackgroundTransparency = 1
  40. textLabel.Text = text
  41. textLabel.TextColor3 = color
  42. textLabel.TextScaled = true
  43.  
  44. billboardGui.Parent = parent
  45. return billboardGui
  46. end
  47.  
  48. -- Función para activar o desactivar el ESP para un conjunto de objetos
  49. local function toggleESP(espTable, folder, objectName, color, text, displayText, activate)
  50. if activate then
  51. for _, object in pairs(folder:GetDescendants()) do
  52. if object.Name == objectName then
  53. if object:IsA("BasePart") then
  54. local espBox = Instance.new("BoxHandleAdornment")
  55. espBox.Size = object.Size
  56. espBox.Transparency = 0.5
  57. espBox.Color3 = color
  58. espBox.AlwaysOnTop = true
  59. espBox.ZIndex = 0
  60. espBox.Name = "ESP_" .. objectName
  61. espBox.Adornee = object
  62. espBox.Parent = object
  63. table.insert(espTable, espBox)
  64. end
  65.  
  66. local billboardGui = createBillboardGui(object, displayText, color)
  67. table.insert(espTable, billboardGui)
  68. end
  69. end
  70. else
  71. for _, esp in pairs(espTable) do
  72. esp:Destroy()
  73. end
  74. for _, gui in pairs(game:GetService("Workspace"):GetDescendants()) do
  75. if gui:IsA("BillboardGui") and gui.Adornee and gui.Adornee.Parent and gui.Adornee.Parent.Name == objectName then
  76. gui:Destroy()
  77. end
  78. end
  79. for i in pairs(espTable) do
  80. espTable[i] = nil
  81. end
  82. end
  83. end
  84.  
  85. -- Funciones específicas para los objetos
  86. local function checkAndToggleESP()
  87. local folder = game:GetService("Workspace"):FindFirstChild("PuzzleBin")
  88. if folder then
  89. -- CheeseAltar
  90. local cheeseAltar = folder:FindFirstChild("CheeseAltar")
  91. if cheeseAltar then
  92. local decor = cheeseAltar:FindFirstChild("Decor")
  93. if decor then
  94. toggleESP(espCheeseAltar, cheeseAltar, "Decor", Color3.fromRGB(139, 69, 19), "Cheese Altar", "Cheese Altar", espStates.CheeseAltar)
  95. end
  96. end
  97.  
  98. -- CheeseAltar2
  99. local cheeseAltar2 = folder:FindFirstChild("Puzzle | Cheese")
  100. if cheeseAltar2 then
  101. local decor = cheeseAltar2:FindFirstChild("Decor")
  102. if decor then
  103. toggleESP(espCheeseAltar2, cheeseAltar2, "Decor", Color3.fromRGB(139, 69, 19), "Cheese Altar 2", "Cheese Altar", espStates.CheeseAltar2)
  104. end
  105. end
  106.  
  107. -- Cheese2
  108. local cheese2 = folder:FindFirstChild("Puzzle | Cheese")
  109. if cheese2 then
  110. local cheese = cheese2:FindFirstChild("Cheese")
  111. if cheese then
  112. toggleESP(espCheese2, cheese2, "Cheese", Color3.fromRGB(255, 255, 0), "Cheese 2", "Cheese 2", espStates.Cheese2)
  113. end
  114. end
  115.  
  116. -- Cheese1
  117. local cheese1 = game:GetService("Workspace"):FindFirstChild("Map")
  118. if cheese1 then
  119. local entities = cheese1:FindFirstChild("_Entities")
  120. if entities then
  121. local cheese = entities:FindFirstChild("Cheese")
  122. if cheese then
  123. toggleESP(espCheese1, entities, "Cheese", Color3.fromRGB(255, 255, 0), "Cheese 1", "Cheese 1", espStates.Cheese1)
  124. end
  125. end
  126. end
  127.  
  128. -- WirePuzzle
  129. toggleESP(espWires, folder, "Wire", Color3.fromRGB(255, 0, 0), "Wire Puzzle", "Wire Puzzle", espStates.WirePuzzle)
  130.  
  131. -- ColorCodePuzzle
  132. local colorCode = folder:FindFirstChild("ColorCode")
  133. if colorCode then
  134. local decor = colorCode:FindFirstChild("Decor")
  135. if decor then
  136. toggleESP(espColorCodePuzzle, colorCode, "Decor", Color3.fromRGB(128, 0, 128), "Color Code Puzzle", "Insert Code", espStates.ColorCodePuzzle)
  137. end
  138. end
  139.  
  140. -- ColorCodes
  141. if colorCode then
  142. local clue = colorCode:FindFirstChild("Clue")
  143. if clue then
  144. toggleESP(espColorCodes, colorCode, "Clue", Color3.fromRGB(0, 0, 255), "Color Codes", "Code", espStates.ColorCodes)
  145. end
  146. end
  147. end
  148. end
  149.  
  150. -- Funciones de activación de ESP
  151. local function toggleCheeseAltarESP()
  152. espStates.CheeseAltar = not espStates.CheeseAltar
  153. checkAndToggleESP()
  154. end
  155.  
  156. local function toggleCheeseAltar2ESP()
  157. espStates.CheeseAltar2 = not espStates.CheeseAltar2
  158. checkAndToggleESP()
  159. end
  160.  
  161. local function toggleCheese2ESP()
  162. espStates.Cheese2 = not espStates.Cheese2
  163. checkAndToggleESP()
  164. end
  165.  
  166. local function toggleCheese1ESP()
  167. espStates.Cheese1 = not espStates.Cheese1
  168. checkAndToggleESP()
  169. end
  170.  
  171. local function toggleWirePuzzleESP()
  172. espStates.WirePuzzle = not espStates.WirePuzzle
  173. checkAndToggleESP()
  174. end
  175.  
  176. local function toggleColorCodePuzzleESP()
  177. espStates.ColorCodePuzzle = not espStates.ColorCodePuzzle
  178. checkAndToggleESP()
  179. end
  180.  
  181. local function toggleColorCodesESP()
  182. espStates.ColorCodes = not espStates.ColorCodes
  183. checkAndToggleESP()
  184. end
  185.  
  186. -- Crear el GUI
  187. local ScreenGui = Instance.new("ScreenGui")
  188. ScreenGui.Parent = game:GetService("CoreGui")
  189. ScreenGui.ResetOnSpawn = false
  190.  
  191. local Frame = Instance.new("Frame")
  192. Frame.Parent = ScreenGui
  193. Frame.Active = true
  194. Frame.BackgroundColor3 = Color3.fromRGB(119, 124, 127)
  195. Frame.BorderColor3 = Color3.fromRGB(226, 226, 226)
  196. Frame.Draggable = true
  197. Frame.Position = UDim2.new(0.833333313, -451, 0.606741607, -191)
  198. Frame.Selectable = true
  199. Frame.Size = UDim2.new(0, 153, 0, 33)
  200.  
  201. local TextLabel = Instance.new("TextLabel")
  202. TextLabel.Parent = Frame
  203. TextLabel.Active = true
  204. TextLabel.BackgroundColor3 = Color3.fromRGB(119, 124, 127)
  205. TextLabel.BackgroundTransparency = 1.000
  206. TextLabel.BorderColor3 = Color3.fromRGB(119, 124, 127)
  207. TextLabel.Position = UDim2.new(0.327688575, 0, 0.190135613, 0)
  208. TextLabel.Size = UDim2.new(0, 50, 0, 20)
  209. TextLabel.Font = Enum.Font.SourceSans
  210. TextLabel.Text = "Star Hack Hub - STN"
  211. TextLabel.TextColor3 = Color3.fromRGB(187, 255, 253)
  212. TextLabel.TextSize = 14.000
  213. TextLabel.TextStrokeColor3 = Color3.fromRGB(187, 255, 253)
  214. TextLabel.TextWrapped = true
  215.  
  216. local ScrollingFrame = Instance.new("ScrollingFrame")
  217. ScrollingFrame.Parent = Frame
  218. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(75, 75, 75)
  219. ScrollingFrame.BackgroundTransparency = 0.500
  220. ScrollingFrame.BorderSizePixel = 0
  221. ScrollingFrame.Position = UDim2.new(-0.00086286955, 0, 0.999025285, 0)
  222. ScrollingFrame.Selectable = false
  223. ScrollingFrame.Size = UDim2.new(0, 153, 0, 194)
  224. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 300)
  225. ScrollingFrame.HorizontalScrollBarInset = Enum.ScrollBarInset.Always
  226. ScrollingFrame.ScrollBarThickness = 10
  227.  
  228. -- Función para crear botones
  229. local function createButton(name, text, position, color, callback)
  230. local button = Instance.new("TextButton")
  231. button.Name = name
  232. button.Parent = ScrollingFrame
  233. button.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  234. button.Position = position
  235. button.Size = UDim2.new(0, 136, 0, 22)
  236. button.Style = Enum.ButtonStyle.RobloxRoundButton
  237. button.Font = Enum.Font.SourceSans
  238. button.Text = text
  239. button.TextColor3 = color
  240. button.TextSize = 16.000
  241. button.TextWrapped = true
  242. button.MouseButton1Click:Connect(function()
  243. callback()
  244. updateButtonBackground(button, espStates[name:sub(1, -4)] or false)
  245. end)
  246. return button
  247. end
  248.  
  249. local cheeseAltarButton = createButton("CheeseAltarESP", "Cheese Altar ESP", UDim2.new(0.0466145016, 0, 0.00465609878, 0), Color3.fromRGB(139, 69, 19), toggleCheeseAltarESP)
  250. local cheeseAltar2Button = createButton("CheeseAltar2ESP", "Cheese Altar 2 ESP", UDim2.new(0.0466145016, 0, 0.075656101, 0), Color3.fromRGB(139, 69, 19), toggleCheeseAltar2ESP)
  251. local cheese2Button = createButton("Cheese2ESP", "Cheese 2 ESP", UDim2.new(0.0466145016, 0, 0.146656103, 0), Color3.fromRGB(255, 255, 0), toggleCheese2ESP)
  252. local cheese1Button = createButton("Cheese1ESP", "Cheese 1 ESP", UDim2.new(0.0466145016, 0, 0.217656105, 0), Color3.fromRGB(255, 255, 0), toggleCheese1ESP)
  253. local wirePuzzleButton = createButton("WirePuzzleESP", "Wire Puzzle ESP", UDim2.new(0.0466145016, 0, 0.288656107, 0), Color3.fromRGB(255, 0, 0), toggleWirePuzzleESP)
  254. local colorCodePuzzleButton = createButton("ColorCodePuzzleESP", "Color Code Puzzle ESP", UDim2.new(0.0466145016, 0, 0.359656109, 0), Color3.fromRGB(128, 0, 128), toggleColorCodePuzzleESP)
  255. local colorCodesButton = createButton("ColorCodesESP", "Color Codes ESP", UDim2.new(0.0466145016, 0, 0.430656111, 0), Color3.fromRGB(0, 0, 255), toggleColorCodesESP)
  256.  
  257. -- Ajustar la altura del ScrollingFrame según el número de botones
  258. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 33 * (#{
  259. cheeseAltarButton,
  260. cheeseAltar2Button,
  261. cheese2Button,
  262. cheese1Button,
  263. wirePuzzleButton,
  264. colorCodePuzzleButton,
  265. colorCodesButton
  266. } + 1))
  267.  
  268. -- Bucle de comprobación de ESP
  269. local function startESPCheck()
  270. while true do
  271. wait(5)
  272. checkAndToggleESP()
  273. end
  274. end
  275.  
  276. -- Iniciar el bucle de comprobación
  277. startESPCheck()
  278.  
  279. -- Notificación al usuario
  280. game:GetService("StarterGui"):SetCore("SendNotification", {
  281. Title = "GUI Loaded",
  282. Text = "Script made by Star_Hack // StarHackScripts! Enjoy!",
  283. Duration = 7
  284. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement