local pluginbar = plugin:CreateToolbar("Malwarebytes knockoff")
local pluginbutton = pluginbar:CreateButton("Scan the game", "Scans the game, searched for suspicious names. (no script reading support)", "rbxassetid://10605442070")
local windowinfo = DockWidgetPluginGuiInfo.new(
Enum.InitialDockState.Bottom,
false,
false
)
local window = plugin:CreateDockWidgetPluginGui(
"Scanning options", windowinfo
)
local test = Instance.new("Frame", window)
local windowopened = false
pluginbutton.Click:Connect(function()
if not windowopened then
window.Enabled = true
windowopened = true
else
window.Enabled = false
windowopened = false
end
end)
i’ve got no clue. it’s a wip. i’m creating an antivirus.
initialdockingstate is bottom, it’s not docked, i clearly set the name like in the picture you sent and i game instance.new parameters to know where to automatically parent the frame.
Looks like you fixed the title yourself. In your original post, there is no title in the code snippet or on the widget, but in later replies, the title is there. I assume that’s working now.
As for the frame, it’s there. The default size when you create a frame is 0 by 0 pixels. You have to manually resize the frame in order to visually see it.
I used your exact code and just added a title and resized the frame. This is what I got:
The InitialDockstate only refers to the very first time you use the widget. For example, if you set the InitialDockstate to Bottom, and while testing the plugin, you manually move the widget (with your mouse) to a floating state, the dockstate and position are saved. This means that the next time you open up the plugin, the dockstate and position will be the same as you left them in, rather than set to the InitialDockstate value. In our example, this would mean that the widget would be floating and in the position we last left it in. This is by design of the InitialDockstate property. To fix this, you can simply manually dock the widget back into the bottom panel. It should stay there until you change it again.
Have the other 2 original issues (title and frame) been resolved?
thank you so much. but could you help with one last thing? For testing purposes, i want the script to print out the ancestors of the virus so the player knows where the script is (incase they have safe and virus scripts with the same name)
I don’t know if I would be able to help you with that. You’d need to give me more detail. I suggest you put it in a new topic so others can have a chance to help you out. If you do make a topic, I’ll see if I can help out.