I wanted to understand the use of * For * and * # * before some variable,for example:
local teleporte = script.Parent
function onClicked()
local p = game.Players:GetChildren()
for i = 1, #p do
p[i].Character:MoveTo(Vector3.new(-55.831, 11.008, 183.894))
teleporte.ClickDetector.MaxActivationDistance = 0
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
I wanted to understand how to use and the use of them

1 comment
for is a keyword used to start a for iterator loop and # returns the length of either a given table or given string