I know there are already multiple topics about this error but i didn’t see anything about “Player.CharacterAdded”
-
What do you want to achieve? Me and my friend @Exotic_Stuffing are making a script that loads a certain person a custom StarterCharacter
-
What is the issue? It’s giving me the “Maximum event re-entrancy depth exceeded” error

-
What solutions have you tried so far? Currently, I did not find any solutions.
When i respawn, the camera breaks and i think that error is causing the camera to break
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
if plr.UserId == 547000629 then
local mm = plr.Character
local as = mm.Animate:Clone()
local devskin = game.ReplicatedStorage.DevSkins.garello:Clone()
devskin.Parent = workspace
devskin:MakeJoints()
devskin:MoveTo(char.PrimaryPart.Position)
plr.Character = devskin
mm.Archivable = true
mm:Destroy()
as.Parent = devskin
devskin:WaitForChild("Humanoid").Died:Connect(function()
game.ReplicatedStorage.CameraThing:FireClient(char:WaitForChild("Humanoid"))
end)
for _, Script in pairs(game.StarterPlayer.StarterCharacterScripts:GetChildren()) do
local ScriptClone = Script:Clone()
ScriptClone.Parent = devskin
end
end
end)
end)
