I see it In A lot of scripts I dont understand what It is used for Or how To use it.
Those are called anonymous functions, they allow you to use less lines to connect to an event.
Example:
game.Workspace.Part.Touched:connect(function (hit) -- Anonymous Function -- Do stuff here... end)