So with the player added in solo bug, I have a script that has characterloaded function in it to? So I tried using both and it did not work, any help?
game.Players.PlayerAdded:connect(function(player)
for _, player in pairs(Players:GetPlayers()) do
onPlayerAdded(player)
player.CharacterAppearanceLoaded:Connect(function(character)
I’m assuming this is the entire code. The issue is, you have nothing to end the function. I also recommend using CharacterAdded instead of CharacterAppearanceLoaded, unless if it’s absolutely necessary.
local CharacterAdded = (function (Character)
--> Character things
end)
local PlayerAdded = (function (Player)
Player.CharacterAdded:connect(CharacterAdded)
--> other player stuff here
end)
--> Set up for new players
game.Players.PlayerAdded:connect(PlayerAdded)
--> Set up for players, and their respective characters, that are already instanced
for _, Player in next, game:GetService("Players"):GetPlayers() do
if Player.Character then
CharacterAdded(Player.Character)
end
PlayerAdded(Player)
end
This will work, it’s because your player/character is instancing prior to the script running.