I have this teleport script that's disabled and the script is part scaled in an area. When it gets enabled, the players in the area gets teleported to a part "BackOut" and the issue I get is an error in the output "moveTo is not a valid Accessory ..."
local Teleport = "BackOut"
local Debounce = false
function Touch(hit)
if not Debounce then
Debounce = true
local Pos = script.Parent.Parent:findFirstChild(Teleport)
hit.Parent:moveTo(Pos.Position)
wait(.5)
Debounce = false
end
end
script.Parent.Touched:connect(Touch)

2 comments
Using PivotTo, the output says unable to cast vector3 to CoordinateFrame
My bad, it needs to be a CFrame, so hit.Parent:PivotTo(CFrame.new(Pos.Position))