HiroshiPh338

Impossible Glass Bridge 2 Script

May 9th, 2025 (edited)
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.69 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local MainFrame = Instance.new("Frame")
  3. local TitleBar = Instance.new("Frame")
  4. local Title = Instance.new("TextLabel")
  5. local MinimizeButton = Instance.new("TextButton")
  6. local CloseButton = Instance.new("TextButton")
  7. local StatusLabel = Instance.new("TextLabel")
  8. local ESPButton = Instance.new("TextButton")
  9. local CreditsButton = Instance.new("TextButton")
  10. local TweenService = game:GetService("TweenService")
  11.  
  12. ScreenGui.Name = "Glass Bridge 2"
  13. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14. ScreenGui.ResetOnSpawn = false
  15.  
  16. MainFrame.Name = "MainFrame"
  17. MainFrame.Parent = ScreenGui
  18. MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  19. MainFrame.BorderSizePixel = 0
  20. MainFrame.Position = UDim2.new(0.4, 0, 0.4, 0)
  21. MainFrame.Size = UDim2.new(0, 250, 0, 150)
  22. MainFrame.Active = true
  23. MainFrame.Draggable = true
  24.  
  25. TitleBar.Name = "TitleBar"
  26. TitleBar.Parent = MainFrame
  27. TitleBar.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  28. TitleBar.Size = UDim2.new(1, 0, 0, 30)
  29.  
  30. Title.Name = "Title"
  31. Title.Parent = TitleBar
  32. Title.BackgroundTransparency = 1
  33. Title.Size = UDim2.new(1, 0, 1, 0)
  34. Title.Font = Enum.Font.SourceSansBold
  35. Title.Text = "Glass Bridge 2"
  36. Title.TextColor3 = Color3.fromRGB(255, 255, 255)
  37. Title.TextSize = 18
  38.  
  39. MinimizeButton.Name = "MinimizeButton"
  40. MinimizeButton.Parent = TitleBar
  41. MinimizeButton.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  42. MinimizeButton.Position = UDim2.new(1, -60, 0, 0)
  43. MinimizeButton.Size = UDim2.new(0, 30, 0, 30)
  44. MinimizeButton.Font = Enum.Font.SourceSansBold
  45. MinimizeButton.Text = "-"
  46. MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 0)
  47. MinimizeButton.TextSize = 20
  48.  
  49. CloseButton.Name = "CloseButton"
  50. CloseButton.Parent = TitleBar
  51. CloseButton.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  52. CloseButton.Position = UDim2.new(1, -30, 0, 0)
  53. CloseButton.Size = UDim2.new(0, 30, 0, 30)
  54. CloseButton.Font = Enum.Font.SourceSansBold
  55. CloseButton.Text = "X"
  56. CloseButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  57. CloseButton.TextSize = 20
  58.  
  59. StatusLabel.Name = "StatusLabel"
  60. StatusLabel.Parent = MainFrame
  61. StatusLabel.BackgroundTransparency = 1
  62. StatusLabel.Position = UDim2.new(0, 0, 0, 30)
  63. StatusLabel.Size = UDim2.new(1, 0, 0, 20)
  64. StatusLabel.Font = Enum.Font.SourceSans
  65. StatusLabel.Text = "Status: Off"
  66. StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  67. StatusLabel.TextSize = 16
  68.  
  69. ESPButton.Name = "ESPButton"
  70. ESPButton.Parent = MainFrame
  71. ESPButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  72. ESPButton.Position = UDim2.new(0.1, 0, 0.4, 0)
  73. ESPButton.Size = UDim2.new(0.8, 0, 0, 30)
  74. ESPButton.Font = Enum.Font.SourceSansBold
  75. ESPButton.Text = "Esp Paths"
  76. ESPButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  77. ESPButton.TextSize = 18
  78.  
  79. CreditsButton.Name = "CreditsButton"
  80. CreditsButton.Parent = MainFrame
  81. CreditsButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  82. CreditsButton.Position = UDim2.new(0.1, 0, 0.7, 0)
  83. CreditsButton.Size = UDim2.new(0.8, 0, 0, 30)
  84. CreditsButton.Font = Enum.Font.SourceSansBold
  85. CreditsButton.Text = "Credits"
  86. CreditsButton.TextColor3 = Color3.fromRGB(255, 255, 0)
  87. CreditsButton.TextSize = 18
  88.  
  89. local espEnabled = false
  90. local originalColors = {}
  91. local wrongPaths = {}
  92. local scanned = false
  93.  
  94. local function toggleESP()
  95. espEnabled = not espEnabled
  96. StatusLabel.Text = espEnabled and "Status: On" or "Status: Off"
  97.  
  98. for _, v in pairs(workspace:GetDescendants()) do
  99. if v:IsA("BasePart") and string.find(v.Parent.Parent.Name, "Segment") then
  100. if not originalColors[v] then
  101. originalColors[v] = v.Color
  102. end
  103.  
  104. if not scanned then
  105. if v.CanCollide == false then
  106. wrongPaths[v] = true
  107. end
  108. end
  109.  
  110. if espEnabled then
  111. if wrongPaths[v] then
  112. v.Color = Color3.fromRGB(255, 0, 0)
  113. else
  114. v.Color = Color3.fromRGB(0, 255, 0)
  115. end
  116. else
  117. if originalColors[v] then
  118. v.Color = originalColors[v]
  119. end
  120. end
  121. end
  122. end
  123.  
  124. scanned = true
  125. end
  126.  
  127. local function minimizeGui()
  128. if MainFrame.Size == UDim2.new(0, 250, 0, 150) then
  129. MainFrame:TweenSize(UDim2.new(0, 250, 0, 30), "Out", "Sine", 0.3, true)
  130. for _, v in ipairs(MainFrame:GetChildren()) do
  131. if v ~= TitleBar then
  132. v.Visible = false
  133. end
  134. end
  135. else
  136. MainFrame:TweenSize(UDim2.new(0, 250, 0, 150), "Out", "Sine", 0.3, true)
  137. for _, v in ipairs(MainFrame:GetChildren()) do
  138. v.Visible = true
  139. end
  140. end
  141. end
  142.  
  143. CreditsButton.MouseButton1Click:Connect(function()
  144. local showing = CreditsButton.Text == "Credits"
  145. local fadeOut = TweenService:Create(CreditsButton, TweenInfo.new(0.2), {TextTransparency = 1})
  146. local fadeIn = TweenService:Create(CreditsButton, TweenInfo.new(0.2), {TextTransparency = 0})
  147.  
  148. fadeOut:Play()
  149. fadeOut.Completed:Wait()
  150. CreditsButton.Text = showing and "Made by Darkluax" or "Credits"
  151. fadeIn:Play()
  152. end)
  153.  
  154. local function hoverEffect(button)
  155. button.MouseEnter:Connect(function()
  156. button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  157. end)
  158. button.MouseLeave:Connect(function()
  159. button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  160. end)
  161. end
  162.  
  163. hoverEffect(ESPButton)
  164. hoverEffect(CreditsButton)
  165.  
  166. ESPButton.MouseButton1Click:Connect(toggleESP)
  167. MinimizeButton.MouseButton1Click:Connect(minimizeGui)
  168. CloseButton.MouseButton1Click:Connect(function()
  169. ScreenGui:Destroy()
  170. end)
  171.  
  172. ScreenGui.Enabled = false
  173. task.wait(0.1)
  174. ScreenGui.Enabled = true
Advertisement
Add Comment
Please, Sign In to add comment