So i made a basic teleporter, but it just makes the player's humanoidrootpart teleport, leaving behind the player's playermodel. any help?
script.Parent.Touched:Connect(function(toucher)
if toucher.Parent:FindFirstChild("Humanoid") then
if script.Parent.BrickColor ~= BrickColor.Green() then
while true do
wait()
end
else
local teleportB = script.Parent.Parent.TelePartB
toucher.Parent.HumanoidRootPart.Position = Vector3.new(teleportB.Position.X, teleportB.Position.Y + 5, teleportB.Position.Z)
end
end
end)

1 comment
this worked, thanks for being in depth with your answer!