Hey, I made a gui, and I want it to make it visible when someone clicks the plugin
But there was an error saying gui is not a valid member of script
local toolbar = plugin:CreateToolbar("Font Picker")
local newbutton = toolbar:CreateButton("Font Chooser","Choose good fonts","rbxassetid://7932623079")
local selection = game:GetService("Selection")
newbutton.ClickableWhenViewportHidden = true
if script:FindFirstChild("ScreenGui") then
print("Gui in script")
elseif game.CoreGui:FindFirstChild("ScreenGui") then
print("Gui is in core gui")
else
print("lol gui went missing")
end
-- it prints gui is missing
I saved it into a local plugin in my device, and it prints this
i know im late, but the reason why this happens is because the GUI isn’t automatically added when you save the script locally. Instead, select the Script and the UI and right click “Save as local plugin”