die=game.Workspace.Stage1.Kills:GetChildren()
active=false
part2=game.Workspace.Stage1.Start1
die.Touched:connect(function(leg)
if leg.Parent.Humanoid ~= nil then
if active == false then
active=true
local hum=leg.Parent:WaitForChild("Humanoid")
local char=hum.Parent
local end1=part2.Position+Vector3.new(0,3,0)
char.Torso.CFrame=CFrame.new(end1)
else return end
wait(1.5)
active=false
end
end)
Die is all the things that kill you (teleport). And it says "Touched' (a nil value)" and Idk what to do now. I want to make it so when I touch a part that is inside that model, It starts the function

2 comments
I also don't want to add a script to each of the parts
mb Touched event* not function