Player has no humanoid error persistence

I’m aware of a similarly named post and no, this is not a duplicate, although I am receiving the same error. With that out of the way,

I’ve been trying to freeze the character’s movement (by deleting the humanoid) and camera, however, I keep getting (repeated into infinity)

Adding this code

local Players = game:GetService("Players")

local player = Players.LocalPlayer
local playerScripts = player:WaitForChild("PlayerScripts")

local plrModule = require(playerScripts:WaitForChild("PlayerModule"))
local Controls = plrModule:GetControls()

Controls:Disable()

to a localscript in StarterPlayerScripts seems to fix the ad infinitum part, but running the game after that still gives me a

So does anyone know why this is happening, and how to fix it?


The Code (Script in ServerScriptService) Removing The Character

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)	
		repeat wait()
			print("Character is not in the game... wierd")
		until Character
		print("Character has loaded and..")
		Character.Animate:Destroy()
		Character:Destroy()
		print("Character is dead.")
	end)
end)

The Code (Local Script in StarterGUI) Freezing the Camera

local cc = workspace.CurrentCamera
local cam = workspace.CameraPart -- ignore, for other part of the menu.

repeat wait()
	cc.CameraType = Enum.CameraType.Scriptable
until cc.CameraType == Enum.CameraType.Scriptable
2 Likes

Oh, that error occurs when your character is trying to move, but it requires the humanoid to move.

I do not believe you can fix that.

1 Like

but there is no character trying to move. It’s been robbed of control.

I just deleted my character on the server and it did not give me any of those warnings.

Huh. Well, I haven’t been seeing it recently (after three tests), so maybe it fixed itself.

Maybe it did. Have a fun time scripting! :smiley:

Nope. Sadly, it’s back

You need to set Player.Character to nil after destroying the character or removing the humanoid.

Nope. Did nothing.

If anything, it caused even more bugs.

Sorry, that was a quick reply. I was thinking of the Humanoid related warning.

If you can’t parent the character to nil instead of destroying it, then you should probably set the character to a fake one with only a humanoid.

Has the script changed at all ?

Nope. The script is the same as it was at the very beginning, barring a few changes i’ve already tested as not the cause.

Why dont you just anchored the character bodyparts.

The problem isn’t that i’m trying to freeze the character, the problem is that i’m deleting the character (on purpose) and getting this error.

why dont you use this instead, if you ever need the character back then just parent it back to workspace otherwise if you dont need the character, then I dont know.

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(chr)
		repeat
			task.wait()
		until chr ~= nil
		if chr then
			chr.Parent = nil
		end
	end)
end)

Also for what reason are you deleting the character at start for?

Because those warnings are local for them, and on the server it doesnt show.

No, I checked on client too. It did not show warnings on client either.

oh, alright my bad but as well I still think it cant be fixable.

Its a main menu place, and since you teleport out fairly quickly, there really isn’t a need for the character