Repository navigation
Conversation
Owner
|
Working on this RN!! thank you |
- core_scripts.rs reads DataModelPatch.rbxm (ProtectedString bytecode sources), puts CorePackages and CoreGui.RobloxGui.Modules in the client DataModel and keeps PatchRoot.CoreScripts by name. - StarterScript starts at the CoreScript identity; ScriptContext:AddCoreScriptLocal starts CoreScripts/<Name> under its parent. - CoreScript-only members: DefineFast*/GetFast*/GetEngineFeature/SetFlagVersion/GetPlaySessionId, UserInputService:GetPlatform, GuiService:GetNotificationTypeList, MessageBusService, LocalStorageService. - Opt-in: RUSTUDIO_CORE_SCRIPTS=1 or Studio Settings > rustudio > Play. First blocker (GuiService:GetResolutionScale) in docs/ENGINE-GAPS.md.
- Drop the quoted strings from Studio's executable; the patch's own tree, Studio's StarterScript.lua and the devforum error reports stay as the evidence.
…app services they call - GuiService: SetTopbarInset/TopbarInset, SetMenuIsOpen behind MenuIsOpen/MenuOpened/MenuClosed, desktop scale and safe-zone answers, connection-error getters, center dialogs. - StarterGui:RegisterSetCore/RegisterGetCore behind SetCore/GetCore, with Roblox's 'has not been registered' error once any is registered. - ContextActionService core actions ahead of game actions; RunService/UserInputService/Player/RbxAnalyticsService/IXPService members; settings() flags for CoreScripts. - LocalizationTable:SetEntries takes entries without Source (UIBlox's Translator). - Play draws the client's CoreGui ScreenGuis above PlayerGui while CoreScripts are on.
Contributor
Author
|
still a draft because I need to do some checks on my end |
…odules load against - MessageBus-style app services in Luau: MemStorageService, IXPService (no experiments: layers loaded, no variables), HttpService:RequestInternal through the login session for roblox.com APIs. - Stubs with no backend in Play, noted as such: RbxAnalyticsService, EventIngestService, NotificationService, AdService, AchievementService, CaptureService gallery calls. - Desktop answers: ThirdPartyUserService, VRService:IsVRAppBuild, AvatarChatService features, RunService version/focus members, UserInputService device type/level, RenderSettings:GetMaxQualityLevel, RunService.ClientGitHash. - Player block list / friend status, PlayerScripts GetRegistered*Modes, HumanoidDescription.NumberEmotesLoaded, InsertService:LoadLocalAsset, UDim2:lerp, Animator:GetPlayingAnimationTracksCoreScript. - UserGameSettings: the CoreScript-only settings at fresh-install values; settings() flags for CoreScripts (InGameGlobalGuiInset = the top bar height). - API-dump callbacks (GuiService.SendCoreUiNotification) and unwired events connect for threads allowed to; CoreScripts may write properties rbx-dom marks read-only but the dump doesn't; their identity has PluginOrOpenCloud (RunService:IsEdit). - StarterScript runs under CoreGui (it passes script.Parent to AddCoreScriptLocal).
…ligatures, ExtraContent assets) - Play draws ScreenGuis the CoreScripts mount in CoreGui Folders (CoreGui.TopBarApp). - Text in a face with GSUB ligatures (Builder Icons) has its icon names replaced by the ligature glyph's codepoint before layout (gui_ligatures.rs). - rbxasset:// also resolves into Studio's ExtraContent (LuaPackages' icon font, models/ServerCoreScripts.rbxm). - Tests: the StarterScript path at identity 4 (flags, SetCore registration, MessageBus, MemStorage, UDim2:lerp, AddCoreScriptLocal, CorePackages require); ligature substitution and Builder Icons' table.
cl1ents
force-pushed
the
corescripts-1
branch
from
November 22, 2026 10:16
1f247fc to
76d7815
Compare
- client_flags.rs: Roblox's public PCDesktopClient settings, fetched only with CoreScripts on, kept a day, offline falls back to the kept copy, then to the scripts' defaults; an override file for tests. - GetFast*/DefineFast*/settings() flags read them (D-prefixed names, _PlaceFilter for the current place); engine features stay false (no public source). - LinkingService (no deep links in Play), HttpService:GetUserAgent: reached by the live-flag paths. - docs/ENGINE-GAPS.md: what closed, the live-flag first blockers.
…'s CoreScripts run - Escape and the number keys go to the game then, for the CoreScripts' own menu and backpack.
… Player chat status (live-flag top bar draws) - AudioFocusService: registered contexts and focus by priority; SessionService: the app's session tree, metadata and context focus; ExperienceService: in its experience, join/leave callbacks on real connections, no launches. - Player.ChatAvailabilityStatus 'AllUsers' (ExpChat's isUserChatEnabled), OsPlatform / PlatformName / VRDevice / UnfilteredChat (estimates). - With all live flags the Chrome top bar (logo, menu, chat) and ExpChat's window draw.
- SetCore / GetCore handlers run at their registrant's identity; RunService render-step binds at their binder's (a CoreScript bind keeps its capabilities). - TelemetryService (stubs), Translator:RobloxOnlyTranslate, GuiService:GetClosest(Visible)DialogToPosition, GuiObject:Tween*Internal. - GuiObject.GuiState no longer errors on a focused TextBox (API dump 0.744 has no Focus). - With all live flags the Chrome top bar's menu button opens its menu, typed chat shows in ExpChat's window, and the Roblox logo opens the settings hub; docs/ENGINE-GAPS.md updated.
cl1ents
force-pushed
the
corescripts-1
branch
from
November 22, 2026 10:47
76d7815 to
4af02c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft. When opted in, Play runs Roblox's real CoreScripts and CorePackages, taken from Studio's own data model patch. rustudio's native game menu and chat stay the default.
What works now
Tested on a TextChatService copy of the control place, with
RUSTUDIO_CORE_SCRIPTS=1and all of Roblox's live client flags loaded (25,850; no overrides). Screenshots were taken headless at 1280x720.TextService:GetTextSizeOffsetAsyncstub.helloand pressing Enter showsRoblox_User_777: helloin the chat window.With the flags at the CoreScripts' defaults instead (no cached copy and offline), the older top-bar variant draws.
Live client flags (
client_flags.rs):PCDesktopClientsettings only when the opt-in is on, kept for 24 h, and loaded from the kept copy when offline.GetFast*,DefineFast*andsettings()flag reads use the live values. Lookups also try the D-prefixed name and honour_PlaceFilterentries.GetEngineFeaturestays false, because no public source for engine features was found.How it works
Added since the previous update:
AudioFocusService,SessionServiceandExperienceService.Player.ChatAvailabilityStatus, which ExpChat'sisUserChatEnabledreads.TelemetryService, as stubs.LinkingServiceandHttpService:GetUserAgent.Translator:RobloxOnlyTranslate.GuiService:GetClosestDialogToPositionandGetClosestVisibleDialogToPosition.GuiObject:Tween*Internal.SetCore/GetCorehandlers run at the identity of the script that registered them. A game LocalScript'sSetCoretherefore reaches a CoreScript's handler with the CoreScript's capabilities.RunService:BindToRenderStepcallbacks run at the identity of the script that bound them.GuiStateno longer errors on a focused TextBox. API dump 0.744 has noFocusitem.Loading the patch.
crates/rustudio-core/src/core_scripts.rsreadsExtraContent/models/DataModelPatch/DataModelPatch.rbxm. The CDN packageextracontent-models.zipcontains this file too.0x1d). They hold Luau bytecode version 9, which the vendored Luau 0.745 loads unchanged.Placement in the client DataModel:
CorePackagesgets itsPackagesandWorkspace.CoreGui.RobloxGui, a ScreenGui, getsModules.CoreScriptLocalizationtables go underCoreGui.=StarterScript.ScriptContext:AddCoreScriptLocalstartsCoreScripts/<Name>scripts.Engine members added. All are in the API dump. Where a Play session has no backend, the member is a stub, and the code says so.
DataModelfast flags, andsettings()flags read by CoreScripts.GuiService:SetTopbarInset/TopbarInsetSetMenuIsOpen, which drivesMenuIsOpen,MenuOpenedandMenuClosedGetNotificationTypeListStarterGui:RegisterSetCore/RegisterGetCore, whichSetCore/GetCorenow call.ContextActionServicecore actions, which run ahead of game actions.MessageBusServiceMemStorageServiceLocalStorageService/AppStorageServiceIXPService: every layer reports loaded, with no variables.HttpService:RequestInternal: requests to roblox.com APIs go through rustudio's login session.RunService,UserInputService,Player,PlayerScripts,UserGameSettings,RenderSettings,VRService,AvatarChatService,ThirdPartyUserService.HumanoidDescription.NumberEmotesLoadedInsertService:LoadLocalAssetUDim2:lerpLocalizationTable:SetEntrieswith entries that have noSourceRendering:
gui_ligatures.rs), so a name such asspeech-bubble-align-centerbecomes its glyph.rbxasset://paths also resolve into Studio'sExtraContent.What doesn't work yet (next blocker)
VoiceChatCore.CoreVoiceManager:680indexes nil withGetClientFeaturesAsync. This shows in Output when the settings menu opens; voice isn't part of Play.docs/ENGINE-GAPS.md.Evidence for the layout
PatchRoot/{CoreScripts, DataModelInstances/{CoreGui/RobloxGui/Modules, CorePackages/{Packages, Workspace}}, PlayerScripts}StarterScript,LoadingScript,Connection,CoreScripts/<Name>andServerCoreScripts/<Name>.StarterScript.lua(ExtraContent/scripts/CoreScripts):CoreGui.RobloxGuiand thenRobloxGui.Modules.AddCoreScriptLocal("CoreScripts/...", RobloxGui), and passesscript.Parentas the parent for several other CoreScripts.CorePackages.Packages.…andCorePackages.Workspace.Packages.….RobloxGui.AbsoluteSize, soRobloxGuiis a ScreenGui.CoreGui.RobloxGui.Modules.…,CoreGui.RobloxGui.CoreScripts/<Name>,CorePackages.Packages._Index.…andCorePackages.Workspace.Packages._Workspace.….Script 'StarterScript','LoadingScript','Connection'.CoreScriptLocalization is not a valid member of CoreGui.How to try it
You can also turn it on in Studio Settings > rustudio > Play > "Roblox's CoreScripts (experimental)".
Tests
rustudio-core:rustudio-engine:SetCoreregistration,MessageBusService,MemStorageService,UDim2:lerp,AddCoreScriptLocaland aCorePackagesrequire.