Why does my character die when teleported?
This question has been solved by the original poster.
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,
01 | local part = script.Parent |
02 | local place = part:WaitForChild( "teleport" ) |
04 | local function onPartTouched(otherPart) |
06 | local partParent = otherPart.Parent |
08 | local humanoid = partParent:FindFirstChildWhichIsA( "Humanoid" ) |
10 | humanoid.Parent.HumanoidRootPart.Position = place.Position |
15 | 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.