Roblox Documentation Misinformation?

So I was looking through the Creator Documentation specifically the “Data Model Documentation” and noticed a few things it said seem to be false.

When it explains StarterCharacterScripts, it states that the Runtime Data Model is Player.Character and then states the following: “Scripts that are copied to the client when they spawn. These scripts do not persist when the player respawns.
The claim that the scripts don’t persist after the player respawns intrigued me and I decided to investigate that. I added some scripts to StarterCharacterScripts and reset my character. The scripts continued to run after I died and when I checked inside my character model, the scripts were present.

It also states the following about StarterGui (Player.PlayerGui):
“Scripts that can manage the player’s local GUI. When a player respawns, the contents of PlayerGui are emptied. The server copies the objects inside StarterGui into the PlayerGui.” I also tested this by placing scripts inside StarterGui, but again, they remained even after I respawned.

Please take notice of the “?” in the title of my topic. I’m not stating the documentation is wrong, I’m merely questioning it. I may be misinterpreting what the documentation is saying, so if this isn’t misinformation, please explain to me what the documentation is trying to convey. Thanks! :slight_smile:

Source: Data Model | Documentation - Roblox Creator Hub

1 Like

A new copy of the scripts from StarterCharacterScripts are cloned into the player’s character each time they respawn. If you were, for instance, to have a script in StarterCharacterScripts that printed a random stored number constantly, you would notice that upon respawning the stored number that the script is printing would change.

local num = math.random()
while true do
    print(num)
    task.wait(1)
end

Same deal with StarterGui.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.