Skip to content

possible duplicate instance on sync after adding non-Folder object #1193

@Froredion

Description

@Froredion

Description
This is a theoretical edge case I’m raising for consideration (not something I’ve tested yet).

When Rojo is already synced and a new non-folder instance is added inside a service (e.g., ServerScriptService.ScreenGui.Script), syncing results in two copies of the instance in Roblox Studio.

Steps to Reproduce

  1. Start a Rojo sync.

  2. Put it in ServerScriptService in Roblox Studio (.rbxm)

  3. Use below to create a new non-folder instance inside a service (example: create ScreenGui > Script inside ServerScriptService).

    • Put this in ServerScriptService in a Rojo project (this is a folder):
      ScreenGui.zip
  4. Bug happens?

Expected Behavior
Only one new instance should appear.

Actual Behavior
Two instances of the same object are created.

Short Theory (Possible Cause)
This instance does not have an ID that Rojo can track, causing it to be instantiated and duplicated during sync reconciliation.

Why This Matters
Edge case to consider for two-way sync communication.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions