Skip to content

Call to disable the TopBar may fail initially #100

@martimmatias

Description

@martimmatias

Satchel version

1.3.1

Description

The call to StarterGui:GetCore("TopBarEnabled") may fail when the script is required at the start of a LocalScript.
https://github.com/RyanLua/Satchel/blob/6630d4c19b0e1697d1f1de7bed261dcc12fccab7/src/init.luau#L1497

Error: SetCore: TopbarEnabled has not been registered by the CoreScripts

Related DevForum post: https://devforum.roblox.com/t/setcoretobarenabled-throws-an-error-without-a-wait/22347

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

Require the Module at the start of a LocalScript in StarterGui.
Playtest as a server with 1 player, as that seems more likely to cause the CoreGui scripts to not be fully ready yet.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions