Roblox / Core-Scripts

All of ROBLOX's core client scripts.
Apache License 2.0
255 stars 182 forks source link

TopbarConstants is not a valid member of Folder #861

Closed ghost closed 4 years ago

ghost commented 7 years ago

Few users are experiencing this problem. Reinstalling does not help. Full log by my friend:

22:24:22.236 - TopbarConstants is not a valid member of Folder 
22:24:22.236 - Stack Begin 
22:24:22.237 - Script 'CoreGui.RobloxGui.CoreScripts/Topbar', Line 37 
22:24:22.237 - Stack End 
22:24:22.288 - GoogleAnalyticsUtils is not a valid member of Folder 
22:24:22.289 - Stack Begin 
22:24:22.290 - Script 'CoreGui.RobloxGui.CoreScripts/PerformanceStatsManagerScript', Line 15 
22:24:22.290 - Stack End 
22:24:22.409 - TenFootInterface is not a valid member of Folder 
22:24:22.410 - Stack Begin 
22:24:22.411 - Script 'CoreGui.RobloxGui.CoreScripts/GamepadMenu', Line 21 
22:24:22.411 - Stack End 
22:24:22.532 - ChatSelector is not a valid member of Folder 
22:24:22.532 - Stack Begin 
22:24:22.534 - Script 'Script Context.StarterScript', Line 41 
22:24:22.535 - Stack End 
22:24:22.536 - PlayerlistModule is not a valid member of Folder 
22:24:22.538 - Stack Begin 
22:24:22.540 - Script 'Script Context.StarterScript', Line 42 
22:24:22.541 - Stack End 
22:24:22.544 - BackpackScript is not a valid member of Folder 
22:24:22.545 - Stack Begin 
22:24:22.546 - Script 'Script Context.StarterScript', Line 53 
22:24:22.548 - Stack End 
22:24:23.890 - Server is not a valid member of Folder 
22:24:23.891 - Stack Begin 
22:24:23.892 - Script 'Script Context.ServerStarterScript', Line 87 
22:24:23.894 - Stack End 
22:24:27.329 - Infinite yield possible on 'CoreGui.RobloxGui.Modules:WaitForChild("TenFootInterface")' 
22:24:27.330 - Stack Begin 
22:24:27.332 - Script 'CoreGui.RobloxGui.CoreScripts/PurchasePromptScript2', Line 39 
22:24:27.333 - Stack End 
22:24:28.347 - Infinite yield possible on 'CoreGui.RobloxGui.Modules:WaitForChild("PromptCreator")' 
22:24:28.348 - Stack Begin 
22:24:28.349 - Script 'CoreGui.RobloxGui.CoreScripts/FriendPlayerPrompt', Line 20 
22:24:28.350 - Stack End 
22:24:28.351 - Infinite yield possible on 'CoreGui.RobloxGui.Modules:WaitForChild("PromptCreator")' 
22:24:28.352 - Stack Begin 
22:24:28.352 - Script 'CoreGui.RobloxGui.CoreScripts/BlockPlayerPrompt', Line 20 
22:24:28.353 - Stack End 
22:24:28.782 - Infinite yield possible on 'CoreGui.RobloxGui.Modules:WaitForChild("TenFootInterface")' 
22:24:28.787 - Stack Begin 
22:24:28.791 - Script 'CoreGui.RobloxGui.CoreScripts/NotificationScript2', Line 59 
22:24:28.792 - Stack End 
22:24:28.793 - Infinite yield possible on 'CoreGui.RobloxGui.Modules:WaitForChild("TenFootInterface")' 
22:24:28.794 - Stack Begin 
22:24:28.795 - Script 'CoreGui.RobloxGui.CoreScripts/VehicleHud', Line 22 
22:24:28.796 - Stack End 
22:24:28.897 - Infinite yield possible on 'CoreGui.RobloxGui.Modules:WaitForChild("TenFootInterface")' 
22:24:28.898 - Stack Begin 
22:24:28.899 - Script 'CoreGui.RobloxGui.CoreScripts/MainBotChatScript2', Line 92 
22:24:28.900 - Stack End

Screenshot by another user: image

ghost commented 7 years ago

I do not see why this would error under normal circumstances.

Please provide steps for reproduction.

robloxian34535 commented 7 years ago

@stillunt1tled I can't tell if you're blind for not reading the error. "TopbarConstants is not a valid member of Folder" "is not a valid member of Folder" They forgot to put WaitForChild when that thing doesnt exist before the game load. https://github.com/Roblox/Core-Scripts/blob/master/CoreScriptsRoot/CoreScripts/Topbar.lua On line 40 It would be this local TopbarConstants = require(GuiRoot.Modules:WaitForChild("TopbarConstants")) so if TopbarConstants doesnt exist and need to wait when its loaded and now it will work

kyle-emmerich commented 7 years ago

We all know what that error means, thanks. What we're not sure of is why it would happen; CoreScript modules normally should not need to be waited on because these CoreScripts aren't started until the tree is built. They are not replicated down from a server but are built into the client.

Therefore, it would be useful to know what steps led to this error occurring. We didn't forget to add a WaitForChild, we're just wondering why TopbarConstants wouldn't exist. It is entirely possible that 45Green is running overridden CoreScripts and accidentally deleted TopbarConstants.lua, for example. We don't know because he/she just dropped an error message and seemingly bailed.

robloxian34535 commented 7 years ago

I see.

cliffchapmanrbx commented 4 years ago

Hi there, thank you for your feedback. We're going to be closing this repository as we've chosed the Roblox Dev Forum as our venue for developer feedback. Please feel free to migrate your feedback to a DevForum post if you feel it is still relevant.