local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local RunService = game:GetService("RunService") local Player = Players.LocalPlayer local CONFIG = { WalkSpeed = 32, FlySpeed = 50, MinWalk = 16, MaxWalk = 200, MinFly = 10, MaxFly = 200, Tick = 0.004 } local State = { Speed = false, Fly = false, Noclip = false, ESP = false } local walkSpeed = CONFIG.WalkSpeed local flySpeed = CONFIG.FlySpeed local connections = {} local espObjects = {} local collisionCache = {} local function Connect(signal, callback) local c = signal:Connect(callback) table.insert(connections, c) return c end local function Character() return Player.Character end local function Humanoid() local char = Character() return char and char:FindFirstChildOfClass("Humanoid") end local function Root() local char = Character() return char and char:FindFirstChild("HumanoidRootPart") end -- GUI local GUI = Instance.new("ScreenGui") GUI.Name = "N3tERROR_v3" GUI.ResetOnSpawn = false GUI.Parent = Player:WaitForChild("PlayerGui") local Frame = Instance.new("Frame") Frame.Size = UDim2.fromOffset(250, 370) Frame.Position = UDim2.new(0, 30, 0.3, 0) Frame.BackgroundColor3 = Color3.fromRGB(20, 20, 25) Frame.BorderSizePixel = 0 Frame.Parent = GUI local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 10) corner.Parent = Frame -- DRAG local Header = Instance.new("TextButton") Header.Size = UDim2.new(1, 0, 0, 42) Header.BackgroundColor3 = Color3.fromRGB(160, 0, 0) Header.Text = "r3dGUI | v1" Header.TextColor3 = Color3.new(1, 1, 1) Header.TextSize = 20 Header.Parent = Frame local dragging = false local dragStart local startPosition Connect(Header.InputBegan, function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPosition = Frame.Position end end) Connect(UIS.InputChanged, function(input) if dragging and ( input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch ) then local delta = input.Position - dragStart Frame.Position = UDim2.new( startPosition.X.Scale, startPosition.X.Offset + delta.X, startPosition.Y.Scale, startPosition.Y.Offset + delta.Y ) end end) Connect(UIS.InputEnded, function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = false end end) local function Label(name, y) local label = Instance.new("TextLabel") label.Name = name label.Size = UDim2.new(1, -20, 0, 24) label.Position = UDim2.fromOffset(10, y) label.BackgroundTransparency = 1 label.TextColor3 = Color3.new(1, 1, 1) label.TextSize = 17 label.TextXAlignment = Enum.TextXAlignment.Left label.Text = name label.Parent = Frame return label end local function Slider(name, y, min, max, initial, callback) local label = Label(name .. ": " .. initial, y) local bar = Instance.new("TextButton") bar.Size = UDim2.new(1, -20, 0, 12) bar.Position = UDim2.fromOffset(10, y + 27) bar.BackgroundColor3 = Color3.fromRGB(55, 55, 65) bar.Text = "" bar.Parent = Frame local fill = Instance.new("Frame") fill.BackgroundColor3 = Color3.fromRGB(220, 25, 25) fill.BorderSizePixel = 0 fill.Size = UDim2.fromScale((initial-min)/(max-min), 1) fill.Parent = bar local function SetValue(x) local percent = math.clamp( (x - bar.AbsolutePosition.X) / bar.AbsoluteSize.X, 0, 1 ) local value = math.floor(min + percent * (max-min)) fill.Size = UDim2.fromScale(percent, 1) label.Text = name .. ": " .. value callback(value) end local active = false Connect(bar.InputBegan, function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then active = true SetValue(input.Position.X) end end) Connect(UIS.InputChanged, function(input) if active and ( input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch ) then SetValue(input.Position.X) end end) Connect(UIS.InputEnded, function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then active = false end end) end Slider("WalkSpeed", 48, CONFIG.MinWalk, CONFIG.MaxWalk, walkSpeed, function(value) walkSpeed = value if State.Speed then local h = Humanoid() if h then h.WalkSpeed = walkSpeed end end end ) Slider("FlySpeed", 98, CONFIG.MinFly, CONFIG.MaxFly, flySpeed, function(value) flySpeed = value end ) local function Button(name, y, callback) local button = Instance.new("TextButton") button.Size = UDim2.new(1, -20, 0, 37) button.Position = UDim2.fromOffset(10, y) button.BackgroundColor3 = Color3.fromRGB(45, 45, 55) button.TextColor3 = Color3.new(1, 1, 1) button.TextSize = 17 button.Text = name .. ": OFF" button.Parent = Frame local active = false button.MouseButton1Click:Connect(function() active = not active State[name] = active button.Text = name .. (active and ": ON" or ": OFF") button.BackgroundColor3 = active and Color3.fromRGB(120, 20, 20) or Color3.fromRGB(45, 45, 55) callback(active) end) end Button("Speed", 145, function(enabled) local h = Humanoid() if h then h.WalkSpeed = enabled and walkSpeed or 16 end end) local flyConnection local flyVelocity local flyAttachment local function StopFly() if flyConnection then flyConnection:Disconnect() flyConnection = nil end if flyVelocity then flyVelocity:Destroy() flyVelocity = nil end if flyAttachment then flyAttachment:Destroy() flyAttachment = nil end end Button("Fly", 187, function(enabled) StopFly() if not enabled then return end local root = Root() if not root then return end flyAttachment = Instance.new("Attachment") flyAttachment.Name = "N3tFlyAttachment" flyAttachment.Parent = root flyVelocity = Instance.new("LinearVelocity") flyVelocity.Name = "N3tFlyVelocity" flyVelocity.Attachment0 = flyAttachment flyVelocity.RelativeTo = Enum.ActuatorRelativeTo.World flyVelocity.VectorVelocity = Vector3.zero flyVelocity.MaxForce = 1000000 flyVelocity.Parent = root flyConnection = RunService.RenderStepped:Connect(function() if not State.Fly or not root.Parent then StopFly() return end local camera = workspace.CurrentCamera if not camera then return end local direction = Vector3.zero if UIS:IsKeyDown(Enum.KeyCode.W) then direction += camera.CFrame.LookVector end if UIS:IsKeyDown(Enum.KeyCode.S) then direction -= camera.CFrame.LookVector end if UIS:IsKeyDown(Enum.KeyCode.A) then direction -= camera.CFrame.RightVector end if UIS:IsKeyDown(Enum.KeyCode.D) then direction += camera.CFrame.RightVector end if UIS:IsKeyDown(Enum.KeyCode.Space) then direction += Vector3.yAxis end if UIS:IsKeyDown(Enum.KeyCode.LeftControl) then direction -= Vector3.yAxis end flyVelocity.VectorVelocity = direction.Magnitude > 0 and direction.Unit * flySpeed or Vector3.zero end) end) local noclipConnection local function RestoreCollision() for part, oldValue in pairs(collisionCache) do if part and part.Parent then part.CanCollide = oldValue end end table.clear(collisionCache) end Button("Noclip", 229, function(enabled) if noclipConnection then noclipConnection:Disconnect() noclipConnection = nil end if not enabled then RestoreCollision() return end noclipConnection = RunService.Stepped:Connect(function() local char = Character() if not char then return end for _, part in ipairs(char:GetDescendants()) do if part:IsA("BasePart") then if collisionCache[part] == nil then collisionCache[part] = part.CanCollide end part.CanCollide = false end end end) end) local function RemoveESP(player) local highlight = espObjects[player] if highlight then highlight:Destroy() espObjects[player] = nil end end local function AddESP(player) if player == Player or not State.ESP then return end RemoveESP(player) local char = player.Character if not char then return end local highlight = Instance.new("Highlight") highlight.Name = "N3tESP" highlight.FillColor = Color3.fromRGB(255, 0, 0) highlight.OutlineColor = Color3.new(1, 1, 1) highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.Parent = char espObjects[player] = highlight end Connect(Players.PlayerAdded, function(player) Connect(player.CharacterAdded, function() task.wait(0.5) AddESP(player) end) end) for _, player in ipairs(Players:GetPlayers()) do if player ~= Player then Connect(player.CharacterAdded, function() task.wait(0.5) AddESP(player) end) end end Connect(Players.PlayerRemoving, RemoveESP) Connect(Player.CharacterAdded, function() task.wait(0.5) if State.Speed then local h = Humanoid() if h then h.WalkSpeed = walkSpeed end end if State.Fly then StopFly() State.Fly = false end if State.Noclip then RestoreCollision() end end) print("r3dGUI v1 loaded successfully")