mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Work around plugins loading too early by searching for DevSettings via ChildAdded
This commit is contained in:
parent
0b2e9ce1ad
commit
2c88c700ca
1 changed files with 10 additions and 0 deletions
|
|
@ -35,6 +35,16 @@ end
|
|||
|
||||
local valueContainer = getValueContainer()
|
||||
|
||||
game.ChildAdded:Connect(function(child)
|
||||
local success, name = pcall(function()
|
||||
return child.Name
|
||||
end)
|
||||
|
||||
if success and name == CONTAINER_NAME then
|
||||
valueContainer = child
|
||||
end
|
||||
end)
|
||||
|
||||
local function getStoredValue(name)
|
||||
if valueContainer == nil then
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue