Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local TitleBar = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local MinimizeButton = Instance.new("TextButton")
- local CloseButton = Instance.new("TextButton")
- local StatusLabel = Instance.new("TextLabel")
- local ESPButton = Instance.new("TextButton")
- local CreditsButton = Instance.new("TextButton")
- local TweenService = game:GetService("TweenService")
- ScreenGui.Name = "Glass Bridge 2"
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ResetOnSpawn = false
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ScreenGui
- MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- MainFrame.BorderSizePixel = 0
- MainFrame.Position = UDim2.new(0.4, 0, 0.4, 0)
- MainFrame.Size = UDim2.new(0, 250, 0, 150)
- MainFrame.Active = true
- MainFrame.Draggable = true
- TitleBar.Name = "TitleBar"
- TitleBar.Parent = MainFrame
- TitleBar.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- TitleBar.Size = UDim2.new(1, 0, 0, 30)
- Title.Name = "Title"
- Title.Parent = TitleBar
- Title.BackgroundTransparency = 1
- Title.Size = UDim2.new(1, 0, 1, 0)
- Title.Font = Enum.Font.SourceSansBold
- Title.Text = "Glass Bridge 2"
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 18
- MinimizeButton.Name = "MinimizeButton"
- MinimizeButton.Parent = TitleBar
- MinimizeButton.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- MinimizeButton.Position = UDim2.new(1, -60, 0, 0)
- MinimizeButton.Size = UDim2.new(0, 30, 0, 30)
- MinimizeButton.Font = Enum.Font.SourceSansBold
- MinimizeButton.Text = "-"
- MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 0)
- MinimizeButton.TextSize = 20
- CloseButton.Name = "CloseButton"
- CloseButton.Parent = TitleBar
- CloseButton.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
- CloseButton.Position = UDim2.new(1, -30, 0, 0)
- CloseButton.Size = UDim2.new(0, 30, 0, 30)
- CloseButton.Font = Enum.Font.SourceSansBold
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.fromRGB(255, 0, 0)
- CloseButton.TextSize = 20
- StatusLabel.Name = "StatusLabel"
- StatusLabel.Parent = MainFrame
- StatusLabel.BackgroundTransparency = 1
- StatusLabel.Position = UDim2.new(0, 0, 0, 30)
- StatusLabel.Size = UDim2.new(1, 0, 0, 20)
- StatusLabel.Font = Enum.Font.SourceSans
- StatusLabel.Text = "Status: Off"
- StatusLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- StatusLabel.TextSize = 16
- ESPButton.Name = "ESPButton"
- ESPButton.Parent = MainFrame
- ESPButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- ESPButton.Position = UDim2.new(0.1, 0, 0.4, 0)
- ESPButton.Size = UDim2.new(0.8, 0, 0, 30)
- ESPButton.Font = Enum.Font.SourceSansBold
- ESPButton.Text = "Esp Paths"
- ESPButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ESPButton.TextSize = 18
- CreditsButton.Name = "CreditsButton"
- CreditsButton.Parent = MainFrame
- CreditsButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- CreditsButton.Position = UDim2.new(0.1, 0, 0.7, 0)
- CreditsButton.Size = UDim2.new(0.8, 0, 0, 30)
- CreditsButton.Font = Enum.Font.SourceSansBold
- CreditsButton.Text = "Credits"
- CreditsButton.TextColor3 = Color3.fromRGB(255, 255, 0)
- CreditsButton.TextSize = 18
- local espEnabled = false
- local originalColors = {}
- local wrongPaths = {}
- local scanned = false
- local function toggleESP()
- espEnabled = not espEnabled
- StatusLabel.Text = espEnabled and "Status: On" or "Status: Off"
- for _, v in pairs(workspace:GetDescendants()) do
- if v:IsA("BasePart") and string.find(v.Parent.Parent.Name, "Segment") then
- if not originalColors[v] then
- originalColors[v] = v.Color
- end
- if not scanned then
- if v.CanCollide == false then
- wrongPaths[v] = true
- end
- end
- if espEnabled then
- if wrongPaths[v] then
- v.Color = Color3.fromRGB(255, 0, 0)
- else
- v.Color = Color3.fromRGB(0, 255, 0)
- end
- else
- if originalColors[v] then
- v.Color = originalColors[v]
- end
- end
- end
- end
- scanned = true
- end
- local function minimizeGui()
- if MainFrame.Size == UDim2.new(0, 250, 0, 150) then
- MainFrame:TweenSize(UDim2.new(0, 250, 0, 30), "Out", "Sine", 0.3, true)
- for _, v in ipairs(MainFrame:GetChildren()) do
- if v ~= TitleBar then
- v.Visible = false
- end
- end
- else
- MainFrame:TweenSize(UDim2.new(0, 250, 0, 150), "Out", "Sine", 0.3, true)
- for _, v in ipairs(MainFrame:GetChildren()) do
- v.Visible = true
- end
- end
- end
- CreditsButton.MouseButton1Click:Connect(function()
- local showing = CreditsButton.Text == "Credits"
- local fadeOut = TweenService:Create(CreditsButton, TweenInfo.new(0.2), {TextTransparency = 1})
- local fadeIn = TweenService:Create(CreditsButton, TweenInfo.new(0.2), {TextTransparency = 0})
- fadeOut:Play()
- fadeOut.Completed:Wait()
- CreditsButton.Text = showing and "Made by Darkluax" or "Credits"
- fadeIn:Play()
- end)
- local function hoverEffect(button)
- button.MouseEnter:Connect(function()
- button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- end)
- button.MouseLeave:Connect(function()
- button.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- end)
- end
- hoverEffect(ESPButton)
- hoverEffect(CreditsButton)
- ESPButton.MouseButton1Click:Connect(toggleESP)
- MinimizeButton.MouseButton1Click:Connect(minimizeGui)
- CloseButton.MouseButton1Click:Connect(function()
- ScreenGui:Destroy()
- end)
- ScreenGui.Enabled = false
- task.wait(0.1)
- ScreenGui.Enabled = true
Advertisement
Add Comment
Please, Sign In to add comment