Toggle NoClip
Key RequiredUniversal

Toggle NoClip

Universal ScriptKrusdyKrusdy 16K views 988 executesUpdated Feb 8, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•90 lines (2567 chars)
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = game.Players.LocalPlayer
local starterGui = game:GetService("StarterGui")

local isActive = false
local isScriptDisabled = false
local canToggle = true

starterGui:SetCore("SendNotification", {
    Title = "Phase",
    Text = "Controls:\n- Ctrl + K: Toggle\n- Alt + K: Fully Stop",
    Duration = 5
})

local function getCharacter()
    return player.Character or player.CharacterAdded:Wait()
end

local function showNotification(message)
    starterGui:SetCore("SendNotification", {
        Title = "Script Status",
        Text = "Phase " .. message,
        Duration = 2
    })
end

local function toggleNoClip()
    if not canToggle or isScriptDisabled then return end
    canToggle = false

    isActive = not isActive
    showNotification(isActive and "Enabled!" or "Disabled!")

    local character = getCharacter()
    local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

    if isActive then
        -- Kiểm tra nếu nhân vật chết, dừng script
        local humanoid = character:WaitForChild("Humanoid")
        humanoid.Died:Connect(function()
            isActive = false
            showNotification("Disabled due to death!")
        end)

        RunService.Stepped:Connect(function()
            if isActive and character and humanoidRootPart then
                for _, part in pairs(character:GetChildren()) do
                    if part:IsA("BasePart") then
                        part.CanCollide = false
                    end
                end
            end
        end)
    end

    task.wait(0.5)
    canToggle = true
end

local function disableScript()
    if isScriptDisabled then return end
    isScriptDisabled = true
    isActive = false

    local character = getCharacter()
    for _, part in pairs(character:GetChildren()) do
        if part:IsA("BasePart") then
            part.CanCollide = true
        end
    end

    starterGui:SetCore("SendNotification", {
        Title = "Script Stopped",
        Text = "Phase fully closed successfully!",
        Duration = 2
    })
end

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end

    if input.KeyCode == Enum.KeyCode.K and UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then
        toggleNoClip()
    elseif input.KeyCode == Enum.KeyCode.K and UserInputService:IsKeyDown(Enum.KeyCode.LeftAlt) then
        disableScript()
    end
end)

--Phase made by Krusdy using ChadSkibidi.

Features & Information

Usage: Control + K to enable/disable noclip Alt + K to kill script Note: Toggle delay: 0,5s
#Krusdy#Phase#NoClip

Community Comments (2)

linkvertisehaterlinkvertisehaterFeb 8, 2025(edited)

tf is this gooner * thunbnail

limyongchang8964limyongchang8964Feb 8, 2025(edited)

touhou marisa stuck in the wall, lmao XD

More Scripts for Universal Scripts