Hello!
I am making a plugin and making it opens a script (descendant that’s a Script/LocalScript/ModuleScript)
but there’s an error that says “attempt to index nil with ‘OpenScript’”
I had no idea what’s going on and I’m doing it right but it gave me this error…
code:
for i, v in pairs(Model:GetDescendants()) do
if v:IsA("Script") or v:IsA("LocalScript") or v:IsA("ModuleScript") then
plugin:OpenScript(v)
end
end
Any help is appreciated