i want to teleport the player to Target but it is saying CFrame is not a valid member of model i worked but suddenly it did not work anymore can you help me
function TeleportPlayers(target)
for _, player in pairs(game.Players:GetChildren()) do
local charecter = player.character
local torso = charecter:WaitForChild("UpperTorso")
torso.CFrame = target.CFrame
end
end

1 comment
thx for the answer it was me that was dumb i in an earlier when i made a local i did not write to the part it needed to go to