Description
When StreamingEnabled = true and the CharacterAdded event is connected to a function, if you change the character model’s ModelStreamingMode to Atomic within the function, any GUI element in StarterGui does not get copied to PlayerGui when Players.AutoLoadCharacter = true. Moreover, when the player character dies, it will never respawn.
Reproduction Steps
- Create a new place
- In the explorer, set Workspace.StreamingEnabled = true
- In the explorer, confirm that Players.CharacterAutoLoads = true
- In ServerScriptService, create a Script
- In the Script, connect a function to Player.CharacterAdded and add a line to change character.ModelStreamingMode = Enum.ModelStreamingMode.Atomic
Here is a simple example:
function onCharacterAdded(character : Model)
character.ModelStreamingMode = Enum.ModelStreamingMode.Atomic --Comment this line to fix
end
function onPlayerAdded(player : Player)
player.CharacterAdded:Connect(onCharacterAdded)
end
game.Players.PlayerAdded:Connect(onPlayerAdded)
- Add a ScreenGui and any GuiObject under StarterGui
- Press play
- No Gui visible. When you reset your character, you will not respawn.
Reproduction rate: 100%
Reproduction File
Atomic Respawn Bug.rbxl (44.7 KB)
Video
https://drive.google.com/file/d/1uw6IyDAakIz6RuIYT3bNWuDaVVEyeJwB/view?usp=sharing
System Info
Intel i7 4930k
16 GB DDR3
NVIDIA GTX 1080