For some reason players are not respawning

Hello fellow developers! Recently, this weird problem occurred. When any player dies, they don’t respawn. AutoCharacterLoads is set to true and the respawn time is 5. (Don’t worry I waited more than 5 seconds). I have no clue on how this could have happened, and help is really appreciated! Thank you for reading, and enjoy your day! Also I tried fixing it by using this, but no sucess

local connection = {}
local DTeamSpawns = game.Workspace.Spawns:GetChildren()
local chosen = DTeamSpawns[math.random(1,#DTeamSpawns)]
       local Humanoid = Character:WaitForChild("Humanoid", 100)
       local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart", 100)
       if connection[Player] then
		connection[Player] = Player:GetPropertyChangedSignal("Team"):Connect(function()
          if HumanoidRootPart and Player.Team.Name == "D" then 
            HumanoidRootPart.CFrame = chosen.CFrame 
           Humanoid.Died:Connect(function() Player:LoadCharacter() end)

I cleared all of the free models I used, and my internet is just fine

1 Like

I do not really know. You might want to look for backdoors in your game

Probably not plugins, the last one I got was the tool grip editor by egomoose, and before this error didn’t happen either

Is there anything suspicious with this script? When I removed it the player respawned, but the players camera just looks at the ground

--Stop automatic spawning so it can be done in the “PlayerAdded” callback
game.Players.CharacterAutoLoads = false

local function onPlayerAdded(player)
--Create a HumanoidDescription
local humanoidDescription ="HumanoidDescription")
humanoidDescription.HatAccessory = "0"
humanoidDescription.BodyTypeScale = 0.1
humanoidDescription.ClimbAnimation = 619521311
--pawn character with the HumanoidDescription

--Connect “PlayerAdded” event to “onPlayerAdded()” function

Ok the camera is stuck where the player is looking

1 Like

You do not need to add a new HumanoidDescription. The player already has a HumanoidDescription. If you want to change it, change the properties of the current HumanoidDescription. To fix the camera, go to Workspace → Camera → CameraType. CameraType is all the way at the bottom. Make sure the type is Custom

Changed it to custom but nothing changed

Your issue here is you are not setting anything as the connection on the connections table. You are using an if statement to check if the connection exists, but it’s nil.

I figured out the problem, when a player dies, the camera type changes to scriptable

1 Like

Had a problem like this a while ago. Player wouldn’t respawn if they used the reset button, but they would if they died from something else. I just disabled the reset button.


did you changed character place??

game.Players.PlayerAdded, Player.CharacterAdded, Player:GetPropertyChangedSignal(“Team”)

they are all signals, you must check if the player joined before PlayerAdded is connected, or the character is added before CharacterAdded is connected, or team has changed before its connection is made.

another approach to this is enabling CharacterAutoLoads and setting RespawnTime to 0 in Players service properties