Skip to content

Commit f391f55

Browse files
committed
Fix deprecated usage of plugin:OpenScript
1 parent f44e947 commit f391f55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugin/src/init.server.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
--!strict
22
local HttpService = game:GetService("HttpService")
3+
local ScriptEditorService = game:GetService("ScriptEditorService")
34
assert(plugin, "This code must run inside of a plugin")
45

56
if game:GetService("RunService"):IsRunning() then
@@ -98,7 +99,7 @@ type EncodedInstance = {
9899

99100
local wasConnected
100101
SettingsButton.Click:Connect(function()
101-
plugin:OpenScript(SettingsModule)
102+
ScriptEditorService:OpenScriptDocumentAsync(SettingsModule)
102103
wasConnected = connected.Value
103104
end)
104105

0 commit comments

Comments
 (0)