We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
plugin:OpenScript
1 parent f44e947 commit f391f55Copy full SHA for f391f55
plugin/src/init.server.lua
@@ -1,5 +1,6 @@
1
--!strict
2
local HttpService = game:GetService("HttpService")
3
+local ScriptEditorService = game:GetService("ScriptEditorService")
4
assert(plugin, "This code must run inside of a plugin")
5
6
if game:GetService("RunService"):IsRunning() then
@@ -98,7 +99,7 @@ type EncodedInstance = {
98
99
100
local wasConnected
101
SettingsButton.Click:Connect(function()
- plugin:OpenScript(SettingsModule)
102
+ ScriptEditorService:OpenScriptDocumentAsync(SettingsModule)
103
wasConnected = connected.Value
104
end)
105
0 commit comments