Universal Script 📌
3.5k Views
405 Executions

noclip

Universal Script 📌
ramazan1337
ramazan1337Published 5
9 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

noclip

View Raw
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()

local noclip = false

-- Активировать / деактивировать нуклип по нажатию клавиши (например, "N")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    if input.KeyCode == Enum.KeyCode.N then
        noclip = not noclip
        if noclip then
            print("Нуклип ВКЛ")
        else
            print("Нуклип ВЫКЛ")
        end
    end
end)

-- Функция для отключения столкновений
local function setCollision(character, state)
    for _, part in pairs(character:GetChildren()) do
        if part:IsA("BasePart") then
            part.CanCollide = state
        end
    end
end

-- Основной цикл
RunService.RenderStepped:Connect(function()
    if noclip then
        -- отключаем столкновения
        setCollision(character, false)
        -- делаем персонажа прозрачным (опционально)
        -- for _, part in pairs(character:GetChildren()) do
        --     if part:IsA("BasePart") then
        --         part.Transparency = 0.5
        --     end
        -- end


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!