fix 2011 crash
This commit is contained in:
parent
69d573dd35
commit
4ae1c490ea
|
|
@ -128,12 +128,9 @@ function SetRBXLegacyVersion(Version)
|
||||||
settings().Rendering.FrameRateManager = 2
|
settings().Rendering.FrameRateManager = 2
|
||||||
pcall(function() game:GetService("ScriptContext").ScriptsDisabled = false end)
|
pcall(function() game:GetService("ScriptContext").ScriptsDisabled = false end)
|
||||||
pcall(function() settings().Diagnostics:LegacyScriptMode() end)
|
pcall(function() settings().Diagnostics:LegacyScriptMode() end)
|
||||||
coroutine.resume(coroutine.create(function()
|
wait() -- intalizing
|
||||||
for _,v in pairs(game:GetChildren()) do
|
game.GuiRoot.ScoreHud:Remove() -- no legacy scorehud, allow for the new one
|
||||||
if v.Name == "GuiRoot" then
|
end)
|
||||||
coroutine.resume(coroutine.create(function()
|
|
||||||
v.ScoreHud.Parent = nil
|
|
||||||
end)) end end end))
|
|
||||||
elseif (rbxlegacyversion == "omega") then
|
elseif (rbxlegacyversion == "omega") then
|
||||||
settings().Rendering.FrameRateManager = 2
|
settings().Rendering.FrameRateManager = 2
|
||||||
pcall(function() game:GetService("ScriptContext").ScriptsDisabled = false end)
|
pcall(function() game:GetService("ScriptContext").ScriptsDisabled = false end)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue