PlayerAdded not firing in Play Solo anymore

PlayerAdded has functioned in Play Solo (in-window at least – not sure about the separate window Play Solo) for a while, but recently it’s stopped working. The team working on Hooked has been using Play Solo to rapidly test new features, but now we have to test in Play mode since PlayerAdded isn’t working in Play Solo, which has slowed down our development speed a bit. I think the issue may flag related, because I haven’t updated studio recently and it worked just fine up until recently AFAIK.

Repro:

Create new place with Ctrl+N
Insert script into ServerScriptService and paste in the following code:

game.Players.PlayerAdded:connect(function(player)
    print("Player Added")
end)

Go into Play Solo
Nothing is printed

Edit: Found a thread on the normal forums about this too
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=192924563

6 Likes

I didn’t know it ever actually did work offline.

It didn’t way back when, but maybe about a year or two ago they made it functional in Play Solo. It made testing super easy because you didn’t have to go all the way to Play mode or do weird hacks like this:

function playerAdded(player)
    local function characterAdded(character)

    end

    if player.Character then
        characterAdded(player.Character)
    end
    player.CharacterAdded:connect(characterAdded)
end

if #game.Players:GetPlayers() > 0 then
        playerAdded(game.Players:GetPlayers()[1])
end
game.Players.PlayerAdded:connect(playerAdded)

Edit: As opposed to

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)

    end)
end)
1 Like

Also the character avatar loaded regardless of .CanLoadCharacterAppearance which was annoying but everything seems to be normal for now…

GUI’s aren’t replicating into the player either.

Really annoying :confused: I hope this gets fixed soon!

Makes studio testing much harder!

I thought it was my internet this whole time because I have CharacterAutoLoads set to false and use PlayerAdded to load the character lol wow

1 Like

Exact same case here. What actually fixes this all for me is checking CharacterAutoLoads to true, then setting it false via server script. Weird workaround but oh well.

I’ve never had play solo fire .PlayerAdded ever.

1 Like

I imagine because you never used it after it started work. I can confirm that it did in fact work for the past year because I’ve been using it in all of my projects with no issue.

Yep, same here.

Can any Admins confirm if this will be fixed?

Except I have used it in the past year because I have things I do to the player on .PlayerAdded, and those things haven’t happened.

Two more threads on regular forums

https://forum.roblox.com/Forum/ShowPost.aspx?PostID=192968403
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=192969036

Try game.Players.ChildAdded?

nope

Don’t you mean copying? There isn’t a server/client interaction to replicate them.
But I can confirm that PlayerGui isn’t working.

Ah. Doesn’t work either.

rip

This should be fixed relatively soon.

3 Likes

Updated Studio and it’s working fine now. Thanks!

1 Like

All: sorry for the trouble, this was my flag. I think I know what the issue is.

@TheNexusAvenger We turned the flag off on www.roblox.com, I have it turned on in my test environment. I am trying to repro the PlayerGui issue, but when I put GUI into StarterGui from edit mode it is getting copied correctly into my PlayerGui. For your use case, were you generating StartGui contents from a server script, or copying the gui manually for the player added signal?

1 Like