Here is the script i am using and its not working (im trying to teleport between parts when touched)
script.Parent.Touched:Connect(function(h)
local hum = h.Parent:FindFirstChild("Humanoid")
if hum ~= nil then
h.Parent.HumanoidRootPart.CFrame = CFrame.new(workspace["Teleporter"].Position
end
end)
I named one of the parts "Teleporter"

2 comments
I've tested your code and it seems to work. Is your script a server script or a local script?
Didn't you forgot to close the bracket? Check what the output says, always helpful.