In the serverscriptstorage I have a script that gets a custom player model I made and turns you into the model it works fine in studio but not online any reason why? also I am getting this output without Player.CharacterAdded the script does not work so I do not understand this. output vvv
01:30:43.437 - Maximum event re-entrancy depth exceeded for Player.CharacterAdded 01:30:43.439 - While entering function defined in script
--Here is the script
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local ControllerService = game:GetService('ControllerService')
for key, value in pairs(ControllerService:GetChildren()) do
if value:IsA('HumanoidController') then
value:Destroy()
end
end
local newCharacter = game.ReplicatedStorage.newPlayer:Clone()
local SpawnLocation = game.Workspace.SpawnLocation
newCharacter.Parent = workspace
newCharacter.Name = player.Name
newCharacter:MoveTo(SpawnLocation.Position)
player.Character = newCharacter
player.CanLoadCharacterAppearance = nil
local Humanoid = Instance.new("Humanoid", newCharacter)
newCharacter.Archivable = false
end)
end)
Thanks ~KIHeros
