It just doesn't work lol, i don't know why i'm stuck on it 20 minutes ;-;
function teleportPlayer(pos, torso)
local char = torso
char.CFrame = CFrame.new(Vector3.new(pos.x, pos.y + 7, pos.z))
script.Parent.Touched:connect(function(part)
teleportPlayer(Vector3.new(-31,2,95), part.Parent.Torso)
end)
end
