What do i do with the brackets in a function?

Hey! I’m a new scripter here on Roblox and i have a question for the other scripters in the community. When you create a function there are brackets Infront of the functions name and I’m very confused on what its actually used for. When i watch tutorials i always see people writing something inside these brackets and i have tried for so long to actually understand what I’m supposed to write in the brackets and why I’m supposed to write something.

Screenshot:

1 Like

It is an argument/parameter.
When you code a function like

local function dothis(a, b)

end

The a and b are the parameters you’re passing to the function when you call it like

dothis(a, b)

In your example, the touched function will pass the instance of the part that was touched by default.
I prefer the format

lava.Touched:Connect(function(otherPart)

end)

if I don’t plan to call upon the function in another part of the script.
Later you’ll learn about passing values by reference and by value (when you start crying about datastores) but I’ll leave that for you to research since it’s not something you’ll need to worry about for the time being.