--// Starts off disabled
_G.key = "F" --// Key to toggle the noclip
--// Don't touch below unless you know what your doing
local plr = game:GetService("Players").LocalPlayer
local clip = false
local sc = nil
if not _G.exec then _G.exec = true else return print("Only execute once!") end
game:GetService("UserInputService").InputBegan:Connect(function(input, inchat)
if inchat then return end
if input.KeyCode == Enum.KeyCode[_G.key:upper()] then
clip = not clip
if clip then
sc = game:GetService("RunService").Stepped:Connect(function()
for _, part in pairs(game:GetService("Workspace")[plr.Name]:GetChildren()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
end
end)
else
if sc then
sc:Disconnect()
sc = nil
end
end
end
end)
Comments
Works On Mobile Or No?