Issues with character movement

I made some code which ideally should switch the player’s character and focus the camera on the new rig instead, but the issue is the fact that despite the player’s character model being changed, I can’t move the new character at all, which is the whole point of it. Morphing the character wouldn’t work because it would conflict with the game’s mechanics.

Current Code:

local function startStraightAway()
	local teamPos = workspace:WaitForChild("folder1")
	local team = teamPos:WaitForChild("team1")
	local newRig = team:FindFirstChild("newRig")
	if newRig then
		player.Character = newRig
		workspace.CurrentCamera.CameraSubject = newRig.Humanoid
		for _, v in pairs(newRig:GetChildren()) do
			if v:IsA("BasePart") then
				v.Anchored = false
			end
		end
		print("Set default")
	else
		print("No model found.")
	end
end

Is there a code issue that is stopping the character being moved or is it a matter of anchoring or something?

local player = game.Players.LocalPlayer

local function startStraightAway()
	local teamPos = workspace:WaitForChild("folder1")
	local team = teamPos:WaitForChild("team1")
	local newRig = team:FindFirstChild("newRig")
	if newRig then
		player.Character = newRig
		workspace.CurrentCamera.CameraSubject = newRig.Humanoid
		for _, v in pairs(newRig:GetChildren()) do
			if v:IsA("BasePart") then
				v.Anchored = false
			end
		end
		newRig.Humanoid.PlatformStand = true
		newRig.Humanoid.WalkSpeed = 16
		print("Set default")
	else
		print("No model found.")
	end
end

(this plugin say to do that)

1 Like

I’ve added this, but for some reason I am still unable to move.

Why are you setting platform stand to true?

Would making it false affect anything?

When platform stand is true it disables character movement.

1 Like

Changing it to false didn’t really affect anything though.