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

0

all of the character's parts have to be uncollidable, not just the Torso

0

MCAndRobloxUnited How would that work?

0

The same way this would.

0

Also make sure you use capital C for Connect.