on line 1, after the function is obj always necessary to have ? and on line 2 find first child the only way to detect a players touch ?
game.Workspace.Part.Touched:Connect(function(obj) -- is obj always necessary --
if obj.Parent:FindFirstChild("Humanoid") then -- Is FindFirstChild the only why find a player?--
game.Workspace.Change.BrickColor = BrickColor.new("Really Black")
end
end)
I am just wanting to learn more about this script, the content in the lines mentioned are new to me as I am learning; and would appreciate some incite .

1 comment
Locking to prevent bad answers