I want to add Developer Modules to my experience (SocialInteractions and similar)
After dragging them to ServerScriptService and starting the game they fail with message
14:49:05.561 'Install' is not a valid Service name - Studio
14:49:05.561 Stack Begin - Studio
14:49:05.561 Script 'ServerScriptService.SocialInteractions.Install.DevModuleInstaller.install', Line 207 - Studio
14:49:05.562 Script 'ServerScriptService.SocialInteractions.Install.DevModuleInstaller.install', Line 206 - function install - Studio
14:49:05.562 Script 'ServerScriptService.SocialInteractions.Install.DevModuleInstaller', Line 14 - function install - Studio
14:49:05.562 Script 'ServerScriptService.SocialInteractions.Install', Line 3 - Studio
14:49:05.562 Stack End - Studio
I tried couple of times but as these should “work out of the box”, it’s kind of hard to get into deeper. (Wish these could be released as code rather than an asset.)
Tried adding them to a clean place, saving to Roblox and publishing. Same result.
I understand that this might not be the most efficient or most sophisticated fix, but as a temporary fix, I do this;
In SocialInteractions.Install.DevModuleInstaller.install, change the following code from;
for _, child in ipairs(devModule:GetChildren()) do
-- GetService errors if the given name is not a service so we wrap it in
-- a pcall to use the result in a conditional.
local success, service = pcall(function()
return game:GetService(child.Name)
end)
if success then
overlay(child, service)
end
end
to:
for _, child in ipairs(devModule:GetChildren()) do
-- GetService errors if the given name is not a service so we wrap it in
-- a pcall to use the result in a conditional.
local success, service = pcall(function()
return game[child.Name] and game:GetService(child.Name)
end)
if success then
overlay(child, service)
end
end
All I’ve done is put game[child.Name], as to check if it’s a key within game.