The code is not right.
player = game.Players.LocalPlayer
char = player.Character
mouse = player:GetMouse()
--Parts
head = char:FindFirstChild("Head")
torso = char:FindFirstChild("Torso")
rleg = char:FindFirstChild("Right Leg")
lleg = char:FindFirstChild("Left Leg")
rarm = char:FindFirstChild("Right Arm")
larm = char:FindFirstChild("Left Arm")
--Functions
function Freeze(object)
if object.Name ~= player.Name or object.Name ~= "Baseplate" then
object:Remove()
end
end
mouse.KeyDown:connect(function(key)
if key == "f" then
if char:GetChildren().ClassName:FindFirstChild("Part") then
char:GetChildren().ClassName:FindFirstChild("Part").Touched:connect(function(hit)
Freeze(hit)
end)
end
end
end)
I'm trying to make whatever part that is touched by the player transparent. I'm going to add more code to the "Freeze" function, but I need to focus on the basics first.

2 comments
Lines 22-24 can be simplified into "child.Touched:connect(Freeze)" (since they both have use the same parameter)
You're right, but I didn't want to touch his code :P