What are the brackets for in Function()

Hello I’d greatly appreciate it if someone could tell me what the brackets are for in Function(). I’ve watched function tutorials but they usually just go " we’ll skip the brackets for this video" And I havent been able to figure out what its for.

I’m watching a teleporter tutorial and during it he’s doing a thing with the brackets but I have no idea whats going on lol.
I want to actually learn and understand what im doing ya know so here it is

function Teleport(Player, NameOfModel, Tele)
	local Telepad = workspace[NameOfModel][Tele]
	Player.Humanoid.WalkSpeed = 0
	Player.Humanoid.JumpPower = 0
	
	local Smoke = Instance.new("Smoke")
	Smoke.Name = "TeleSmoke"
	Smoke.Parent = Player.HumanoidRootPart
	
	wait(1)
	
	Player:MoveTo(Telepad.Position)
	Smoke:Destroy()
	Player.Humanoid.WalkSpeed = 16
	Player.Humanoid.JumpPower = 50
end```
1 Like

If I were to call the function:

function Teleport(Player, NameOfModel, Tele)
	local Telepad = workspace[NameOfModel][Tele]
	Player.Humanoid.WalkSpeed = 0
	Player.Humanoid.JumpPower = 0
	
	local Smoke = Instance.new("Smoke")
	Smoke.Name = "TeleSmoke"
	Smoke.Parent = Player.HumanoidRootPart
	
	wait(1)
	
	Player:MoveTo(Telepad.Position)
	Smoke:Destroy()
	Player.Humanoid.WalkSpeed = 16
	Player.Humanoid.JumpPower = 50
end

Teleport(var1, var2, var3)

Then I would transfer all info from the brackets(more so called parenthesis in programming language) to that function.
These are brackets:
image
These are where the variables will go:
image

3 Likes

ohhh i get it now!
Thanks so much lol, im so glad i can finally post here. I’ve been tryna get someone to help me out with understanding that.