I have made a Player Teleportation Script, yet my script hasn't worked. I have gotten an error called Player is not a valid member of Part. Where did I go wrong?
local tela = script.Parent.TP1
local telb = script.Parent.TP2
function onTouch(part)
local Player = part.Player:findFirstChild("Humanoid")
if Player then
Player.Parent.Torso.CFrame.new(telb.Position+Vector3.new(0,3,0))
end
end
tela.Touched:Connect(onTouch)
