Blank Script Plugin "Broken"

Alright, I’ve learned that this was caused by this particular update:

UpdateSourceAsync is needed now for plugins like this. If anyone would like, here’s the updated script:

local scriptEditorService = game:GetService('ScriptEditorService')
game.DescendantAdded:Connect(function(code)
	pcall(function()
	if code:IsA('BaseScript') or code:IsA('ModuleScript') then
		scriptEditorService:UpdateSourceAsync(code,function(source)
			if source == 'print("Hello world!")\n' or source == 'local module = {}\n\nreturn module\n' then
				return ''
			end
		end)
	end
	code = nil
	end)
end)

I’m sure this has been made before, especially after the update, but I’ve also uploaded it has a free plugin that I will keep up-to-date if anything breaks *(though I doubt it will at this point):

Other Resources:

1 Like