Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Plugin interface not working? Error: attempt to index nil with 'WaitForChild'

So i tried to make a a dockable plugin gui the only problem is: whenever i click the plugin it makes a big windows with the correct sizes but it doesnt move the gui. Keep in mind the gui i am trying to move is an image label that has the buttons in it. Here is the script:

local toolbar = plugin:CreateToolbar("Wand Configurer")
local PluginButton = toolbar:CreateButton("Wand Configurer","Configure the wands","")

local interface = plugin:CreateDockWidgetPluginGui(
	"Make Script",
	DockWidgetPluginGuiInfo.new(
		Enum.InitialDockState.Float,
		true,
		true,
		564,
		390,
		564,
		390
		)
)

local top = script:WaitForChild("Top")
local bottom = script:WaitForChild("Bottom")
interface.Title = "Wand Configurer"
top.Parent = interface
bottom.Parent = interface

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.