Noclip tool
Key RequiredUniversal

Noclip tool

Universal Scriptthebestpersolthebestpersol 58.7K views 4K executesUpdated Aug 20, 2024
5.0/ 5(3 votes)
30100% Positive
Lua Script•61 lines (1557 chars)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local StarterGui = game:GetService("StarterGui")
local player = Players.LocalPlayer
local noclip = false
local connection

local function notify(message)
    StarterGui:SetCore("SendNotification", {
        Title = "Notification";
        Text = message;
        Duration = 3;
    })
end

local function toggleNoclip()
    noclip = not noclip
    if noclip then
        connection = RunService.Stepped:Connect(function()
            for _, part in pairs(player.Character:GetDescendants()) do
                if part:IsA("BasePart") then
                    part.CanCollide = false
                end
            end
        end)
        notify("noclip on, by thebestpersol. Enjoy!")
    else
        if connection then
            connection:Disconnect()
        end
        for _, part in pairs(player.Character:GetDescendants()) do
            if part:IsA("BasePart") then
                part.CanCollide = true
            end
        end
        notify("noclip off, by thebestpersol. Enjoy!")
    end
end

local function createTool()
    local tool = Instance.new("Tool")
    tool.Name = "Noclip Tool"
    tool.RequiresHandle = false
    tool.CanBeDropped = false
    tool.Parent = player:WaitForChild("Backpack")

    tool.Activated:Connect(function()
        toggleNoclip()
    end)
end

local function onCharacterAdded()
    wait(0.1)
    createTool()
end

if player.Character then
    onCharacterAdded()
end

player.CharacterAdded:Connect(onCharacterAdded)

Features & Information

this script spawns a tool in your inventory which allows you to enable noclip/disable noclip. yt showcase: https://youtu.be/lo5t5Jc5kDE?si=MFYHilN3dLt-9Lb0

Community Comments (2)

vxstyvxstyAug 20, 2024(edited)

chatgpt

playvoraplayvoraSep 3, 2024(edited)

yes

More Scripts for Universal Scripts