Roblox defines parameters as, "Parameters are definitions of what a function expects to receive when it’s called." I don't understand this, what does that mean?
COMMUNITY QUESTION
I dont understand what parameters are, can someone explain what parameters are?
2 answers
local function Combine(V1,V2)
local V3 = V1 + V2
print(V3)
end
Combine(3,2)
Ehm i think parameters is for example Parameter is Combine(3, 2)
Parameters are, well, what roblox said. But here's an example.
game.Workspace.Part.Touched:Connect(function(thethingthattouched)
print(thethingthattouched)
end)
So, the parameter here is "thethingthattouched". You can name it whatever you want, but it will mean what caused the function. So, in this script here, whatever touches the part will be thethingthattouched. I hope this makes sense.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
That in bold
https://education.roblox.com/en-us/resources/multiple-parameters-and-arguments---code-fundamentals