From 4ae1c490eae565fb2ffc635f8aa1404481f6acf4 Mon Sep 17 00:00:00 2001 From: Quacky Date: Thu, 27 Jul 2017 21:59:36 -0500 Subject: [PATCH] fix 2011 crash --- CSMPFunctions.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/CSMPFunctions.lua b/CSMPFunctions.lua index 14f073f..d7bf50b 100644 --- a/CSMPFunctions.lua +++ b/CSMPFunctions.lua @@ -128,12 +128,9 @@ function SetRBXLegacyVersion(Version) settings().Rendering.FrameRateManager = 2 pcall(function() game:GetService("ScriptContext").ScriptsDisabled = false end) pcall(function() settings().Diagnostics:LegacyScriptMode() end) - coroutine.resume(coroutine.create(function() - for _,v in pairs(game:GetChildren()) do - if v.Name == "GuiRoot" then - coroutine.resume(coroutine.create(function() - v.ScoreHud.Parent = nil - end)) end end end)) + wait() -- intalizing + game.GuiRoot.ScoreHud:Remove() -- no legacy scorehud, allow for the new one + end) elseif (rbxlegacyversion == "omega") then settings().Rendering.FrameRateManager = 2 pcall(function() game:GetService("ScriptContext").ScriptsDisabled = false end)