function teleportPlayer(pos, torso)
local char = torso
char.CFrame = CFrame.new(Vector3.new(pos.x, pos.y + 7, pos.z))
end
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
teleportPlayer(Vector3.new(-3087.8, 35.23, -7248.44) , part.Parent.UpperTorso) -- Change this to make it R6.
--Change the numbers above to the place you want to
--teleport people to.
end
end
end
script.Parent.Touched:connect(onTouched)
It is not teleporting the players when they touch this brick.

3 comments
use the HumanoidRootPart not the Torso
try to use char.Parent.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(pos.X, pos.Y+7, pos.Z)) also :connect and :findFirstChild is deprecated. use :Connect and :FindFirstChild, if you want do make changes in char simple, on moment to send UpperTorso, only send HumanoidRootPart
Change char from Torso to LowerTorso