
393 Views
6.6k Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
passing through the wall.
-- Простая версия для телефона
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local noclip = false
local conn
local function nc()
for _, v in pairs(char:GetDescendants()) do
if v:IsA("BasePart") then v.CanCollide = false end
end
end
local function toggle()
noclip = not noclip
if noclip then
print("NoClip ON")
conn = RunService.Stepped:Connect(nc)
else
print("NoClip OFF")
if conn then conn:Disconnect() end
end
end
-- Создаем кнопку
local sg = Instance.new("ScreenGui")
sg.Parent = game.CoreGui
sg.ResetOnSpawn = false
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0, 100, 0, 50)
btn.Position = UDim2.new(0, 10, 0, 10)
btn.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
btn.Text = "NoClip: OFF"
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Font = Enum.Font.GothamBold
btn.TextSize = 14
btn.Parent = sg
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!








