Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- -- Screen GUI
- local gui = Instance.new("ScreenGui")
- gui.Name = "ModernControlGui"
- gui.Parent = player:WaitForChild("PlayerGui")
- gui.ResetOnSpawn = false
- gui.IgnoreGuiInset = true
- -- Toggle Panel Button
- local toggleBtn = Instance.new("TextButton")
- toggleBtn.Size = UDim2.new(0, 40, 0, 40)
- toggleBtn.Position = UDim2.new(0.5, -20, 0.5, -20)
- toggleBtn.Text = "⚙"
- toggleBtn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- toggleBtn.TextColor3 = Color3.new(1, 1, 1)
- toggleBtn.Font = Enum.Font.GothamBold
- toggleBtn.TextSize = 22
- toggleBtn.ZIndex = 5
- toggleBtn.Active = true
- toggleBtn.Draggable = true
- toggleBtn.Parent = gui
- local toggleUICorner = Instance.new("UICorner", toggleBtn)
- toggleUICorner.CornerRadius = UDim.new(0, 8)
- -- UI Container
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0, 300, 0, 420)
- mainFrame.Position = UDim2.new(0.5, -150, 0.3, 0)
- mainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- mainFrame.BorderSizePixel = 0
- mainFrame.AnchorPoint = Vector2.new(0.5, 0)
- mainFrame.ClipsDescendants = true
- mainFrame.Visible = false
- mainFrame.Active = true
- mainFrame.Draggable = true
- mainFrame.Parent = gui
- local stroke = Instance.new("UIStroke", mainFrame)
- stroke.Color = Color3.fromRGB(80, 80, 80)
- stroke.Thickness = 2
- local corner = Instance.new("UICorner", mainFrame)
- corner.CornerRadius = UDim.new(0, 12)
- -- Title/Header
- local header = Instance.new("TextLabel")
- header.Size = UDim2.new(1, 0, 0, 50)
- header.Position = UDim2.new(0, 0, 0, 0)
- header.BackgroundTransparency = 1
- header.Text = "⚙ Control Panel"
- header.TextColor3 = Color3.fromRGB(255, 255, 255)
- header.Font = Enum.Font.GothamBold
- header.TextSize = 20
- header.TextYAlignment = Enum.TextYAlignment.Center
- header.TextXAlignment = Enum.TextXAlignment.Center
- header.Parent = mainFrame
- -- Layout
- local layout = Instance.new("UIListLayout")
- layout.Padding = UDim.new(0, 10)
- layout.SortOrder = Enum.SortOrder.LayoutOrder
- layout.FillDirection = Enum.FillDirection.Vertical
- layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- layout.VerticalAlignment = Enum.VerticalAlignment.Top
- layout.Parent = mainFrame
- local padding = Instance.new("UIPadding")
- padding.PaddingTop = UDim.new(0, 60)
- padding.PaddingLeft = UDim.new(0, 15)
- padding.PaddingRight = UDim.new(0, 15)
- padding.Parent = mainFrame
- -- Show/Hide Panel
- toggleBtn.MouseButton1Click:Connect(function()
- mainFrame.Visible = not mainFrame.Visible
- end)
- -- Toggle / Button Templates + Functions
- local toggleStates = {}
- local function createToggle(name, callback)
- local container = Instance.new("Frame")
- container.Size = UDim2.new(1, 0, 0, 40)
- container.BackgroundTransparency = 1
- local label = Instance.new("TextLabel")
- label.Size = UDim2.new(0.6, 0, 1, 0)
- label.BackgroundTransparency = 1
- label.Text = name
- label.TextColor3 = Color3.fromRGB(200, 200, 200)
- label.Font = Enum.Font.Gotham
- label.TextSize = 16
- label.TextXAlignment = Enum.TextXAlignment.Left
- label.Parent = container
- local toggle = Instance.new("TextButton")
- toggle.Size = UDim2.new(0, 40, 0, 24)
- toggle.Position = UDim2.new(1, -40, 0.5, -12)
- toggle.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
- toggle.Text = "OFF"
- toggle.Font = Enum.Font.GothamBold
- toggle.TextColor3 = Color3.new(1, 1, 1)
- toggle.TextSize = 12
- toggle.Parent = container
- toggleStates[name] = false
- toggle.MouseButton1Click:Connect(function()
- toggleStates[name] = not toggleStates[name]
- toggle.Text = toggleStates[name] and "ON" or "OFF"
- toggle.BackgroundColor3 = toggleStates[name] and Color3.fromRGB(0, 200, 0) or Color3.fromRGB(200, 0, 0)
- callback(toggleStates[name])
- end)
- container.Parent = mainFrame
- end
- local function createButton(name, callback)
- local btn = Instance.new("TextButton")
- btn.Size = UDim2.new(1, 0, 0, 40)
- btn.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- btn.TextColor3 = Color3.fromRGB(255, 255, 255)
- btn.Font = Enum.Font.Gotham
- btn.TextSize = 16
- btn.Text = name
- btn.AutoButtonColor = true
- local btnCorner = Instance.new("UICorner")
- btnCorner.CornerRadius = UDim.new(0, 8)
- btnCorner.Parent = btn
- btn.MouseButton1Click:Connect(callback)
- btn.Parent = mainFrame
- end
- -- Features
- local function adjustTransparency(isOn)
- local wrongFolder = workspace:FindFirstChild("Glasses") and workspace.Glasses:FindFirstChild("Wrong")
- if wrongFolder then
- for _, part in ipairs(wrongFolder:GetChildren()) do
- if part:IsA("BasePart") then
- part.Transparency = isOn and 1 or 0.5
- end
- end
- end
- end
- createToggle("Show All", adjustTransparency)
- local remoteNames = {
- "VerifiedGears", "PlayFinalMusic", "GiveClaimMoney", "SolidWhiteEvent",
- "ResetIndexCheck", "ChangeMoneyEvent", "ReturnMainSound",
- "SecondChangeTextChest", "Delete_Rainbow_T", "PlayFinalMusic_2",
- }
- local loopConnection = nil
- createToggle("Money", function(isOn)
- if isOn then
- loopConnection = RunService.Heartbeat:Connect(function()
- for _, name in ipairs(remoteNames) do
- local remote = ReplicatedStorage:FindFirstChild(name)
- if remote and remote:IsA("RemoteEvent") then
- remote:FireServer()
- end
- end
- end)
- else
- if loopConnection then
- loopConnection:Disconnect()
- loopConnection = nil
- end
- end
- end)
- local function toggleRoadBarrier(isOn)
- for _, obj in ipairs(workspace:GetDescendants()) do
- if obj:IsA("BasePart") and obj.Name == "RedBarrier" then
- obj.CanCollide = not isOn
- end
- end
- end
- createToggle("Road", toggleRoadBarrier)
- createButton("Spawn", function()
- player.Character:MoveTo(Vector3.new(-82.1566, 4.4729, -0.3147))
- end)
- createButton("End", function()
- player.Character:MoveTo(Vector3.new(818.4539, 36.4241, -1.0231))
- end)
- createButton("Close", function()
- mainFrame.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement