Odd behavior when teleporting a player?

I’m trying to teleport a character model when I spawn it in and most of the time it works. My problem is that it will randomly decide to drop down and slide across the map. I have tried to use both model:SetPrimaryPartCFrame() and model:MoveTo(). I also tried to set the HumanoidRootPart’s CFrame directly but it would still randomly do this.

Gif of the problem: https://gyazo.com/de46da25f4aefb36013e09c988384d74

local offset = CFrame.new(0, 3, 0)
["spawns"] = {
		[1] = game.Workspace.Spawnpads.Member0.CFrame * offset,
		[2] = game.Workspace.Spawnpads.Member1.CFrame * offset,
		[3] = game.Workspace.Spawnpads.Member2.CFrame * offset,
	},
local model = game:GetService("Players"):CreateHumanoidModelFromUserId(playerId)
model.Parent = game.Workspace
model:SetPrimaryPartCFrame(Lobby.spawns[spawnPosition])

What is this for? Why do you need it?

It’s to get the character model of a player using their Id. It’s working fine and returns a player object with all the regular properties of a player.

I think this is the problem because the Player.Character isn’t set to that Model, but I’m not really sure.

You can also do this, but it’s longer

local plr = game.Players:GetPlayerByUserId(101274783)
local model = plr.Character
...

The player isn’t actually in the same server so that wouldn’t work. They’re located in another server in the same experience.

I see. From what I see in the video, it looks like the Humanoid is PlatformStanding. I know it’s not that becuase I don’t think you set it to. It also looks like a Force is being applied “Leftwards”.

Oh, and for some reason, Head is the PrimaryPart.

Can you try inserting this code after you made the model

model.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown)

It still does it when I enable it and disable it. I just checked and the state is HumanoidStateType.Running. I also tried to set the primary part to HumanoidRootPart but it was still doing the same thing.

Oddly enough the force isn’t applied in one direction, it will move randomly and I just had it go back and forth.