Whenever I teleport my character to another part he dies, and it doesn't even show his body. Here's what happens.
This is the script,
local part = script.Parent
local place = part:WaitForChild("teleport")
local function onPartTouched(otherPart)
-- Get the other part's parent
local partParent = otherPart.Parent
-- Look for a humanoid in the parent
local humanoid = partParent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
humanoid.Parent.HumanoidRootPart.Position = place.Position
--print("Cframe = " .. placeCFrame)
end
end
part.Touched:Connect(onPartTouched)
for context, "place" is the brick they are teleported to. Also before you say try CFrame, I've already tried it with CFrame, and it does the exact same thing.

6 comments
You cant teleport a humanoidrootpart without dying. Your gonna have to get all of the children in the character and move those.
is there an easy way to do this? Or do i need to manually get every part of the chararcter?
you can teleport humanoidrootparts without dying, no idea where you got that from
they're probably being teleported somewhere under the part fall height limit
The neck probably snaps, use character:GetPrimaryPartCFrame(Vector3.new(position))
Elyzzia is correct it was below fall height limit, thanks if u post the answer ill mark it solved