Trying to make a teleport, but the output says that the character is not a valid member of workspace.
local first = script.Parent.Part1
local sec = script.Parent.Part2
first.Touched:connect(function(hit)
local hum = hit.Parent.Parent:FindFirstChild("Character")
if hum ~= nil then
hum.Torso.CFrame = sec.CFrame + Vector3.new(0,0,5)
end
end)
