I'm confused with this parameter

local tool = script.Parent

local function explode(point)
	local e = Instance.new("Explosion")
	e.DestroyJointRadiusPercent = 0  
	e.Position = point
	e.Parent = workspace
end

local function onActivated()
	local human = tool.Parent.Humanoid
	explode(human.TargetPoint) 
end

tool.Activated:Connect(onActivated)

e.Position = point

I’m looking at the tool Dev Hub post just to learn more about tools. But why would they set the explosions position to “point.”

For a position value of some sort, unless there’s some more bits of this script not shown that reference ‘point’.

Why is it called point? It is not necessary to always use that name, in most cases, the name of the variable/argument does not matter, if that is not your question, explain a little more.

There are no other bits that I left out.

No, what I’m asking is what is point’s position. I’m pretty sure it defaults to the origin.

From what I’m reading, it uses Humanoid.TargetPoint, which at this point is discontinued. Basically, it takes the last position that a player clicked with on a tool. Using this, they explode the point where they clicked, and they pass said point in the explode function. You can read more about it below:

Humanoid.TargetPoint

I hope this helps!

This line says “call the explode function, and set its first parameter (whatever it is) to human.TargetPoint"

This line says “when explode is called, run this code, and set the variable point to whatever the caller put as the first argument”.

You might want to read this:

Thanks a lot lmao. And potato I didn’t know it was discontinued because I don’t even know why they will still have that as an example. But, thanks a lot.