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:
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)
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 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.
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?