I was going through my games and found my boat simulator so I thought I’d make it FE and play with it a bit, though in the process [ at the start ] studio kept crashing right as I clicked play solo … it was pretty confusing and I didnt know what was going on, after a few crashes trying to fix it, I concluded that removing the player right when it gets added crashes my studio.
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
char:Destroy()
end)
end)
What I did to solve it is simply add a
repeat wait() until char:FindFirstChild("Humanoid")
before removing the character.
This was done via server script obviously
How to repro this bug
- Create a new place
- Put a script in [ I put it in ServerScriptService ]
- Add the code above without the waiting for humanoid
- click play solo
and no you’ve successfully crashed your studio.
Studio version: 0.291.0.122484
OS: Windows 8.1