fix 2011 crash

This commit is contained in:
Quacky 2017-07-27 21:59:36 -05:00
parent 69d573dd35
commit 4ae1c490ea
1 changed files with 3 additions and 6 deletions

View File

@ -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)