I want the noclip function to be toggable yet I am confused into doing so
game.Players.LocalPlayer.Character.HumanoidRootPart.Touched:connect(function(t)
t.CanCollide = false
end)
game.Players.LocalPlayer.Character.HumanoidRootPart.TouchEnded:connect(function(t)
t.CanCollide = true
end)
end)

4 comments
all of the character's parts have to be uncollidable, not just the Torso
MCAndRobloxUnited How would that work?
The same way this would.
Also make sure you use capital C for Connect.