I’m trying to use
Player:LoadCharacter() in a script. However, it only Reloads one random character.
Players.PlayerAdded:Connect(function(player, teamColor) -- Checking when a new player joins. print(player.Name .. " joined the game!") player.TeamColor = BrickColor.new("Mid gray") local players = game:GetService("Players"):GetPlayers() if #players >= 2 then print("Enough players.") RemoveNEP:FireAllClients() -- Removing NEP GUI timeVal.Value = "Intermission..." task.wait(15) timeVal.Value = "Loading..." SpinGame:Clone().Parent = workspace wait(SpinGame) for i, v in pairs(Players:GetChildren()) do if v:IsA("Player") then v.Team = game.Teams:WaitForChild("Playing") end end player:LoadCharacter() else print("Not enough players.") ShowNEP:FireAllClients() -- Showing NEP GUI timeVal.Value = "" end end)
This is not the entire script but this is the part that I’m reloading the character.
All help is appreciated!