Im tryna learn scripting from Roblox docs but im at this
local trap = script.Parent
local function onTouch(objectTouched)
print("Something touched the trap")
end
-- Connect the function to the Touched event
trap.Touched:Connect(onTouch)
And im learning parameters and events but i do not understand why local function and why trap.tuched:connect(onTuch)
** You are now Level 4! **
