New script plugin needing support

I need help!

  • I’ve been trying to get an code insert script to work and it refuses to work, This is for my plugin scriptifiy, The main part of the plugin!

  • Can anyone help solve my code?

  • I will provide everything.

Explorer assets:
image

Code Inside of script:

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Text  = "Cooldown"
	local newscript = Instance.new("Script", workspace )
	newscript.LinkedSource = script.Parent.Parent.Codeinsert.Text.unpack()
	newscript.Source = script.Parent.Parent.Codeinsert.Text.unpack
	wait(0.4)
	script.Parent.Text = "Insert script"
end)
2 Likes