Enabled not Being a Valid Member of CoreGui

Heya there!

I am currently building a Roblox plugin, and I am having an issue where it persists stating that the property Enabled is not a valid member of CoreGui of the plugin… I have been trying to see if I could find any similar problems, yet I cannot find the answer to solve them.

local Test_Toolbar = plugin:CreateToolbar("Name Holder")

local OpenButton = NebulaCraft_Toolbar:CreateButton("Testing Creation", "Test.", "rbxassetid://12740941002")

local ScreenGui = script.Parent
ScreenGui.Parent = game.CoreGui

local WelcomeMessage = ScreenGui:FindFirstChild("WelcomeMessage")

OpenButton.Click:Connect(function()
	ScreenGui.Enabled = true

	if ScreenGui.Enabled == true then
		local userId = game:GetService("StudioService"):GetUserId()
		local username = game:GetService("Players"):GetNameFromUserIdAsync(userId)
		if WelcomeMessage then
			WelcomeMessage.Text = "Welcome " .. username .. "!"
		end
	end
end)

Can someone help me find the solution to this? It seems pretty odd and not entirely sure if may be a bug…

Thanks!

1 Like

What is the error exactly? There is no .Enabled property of CoreGui after all (source). Try printing ScreenGui:GetFullName().

1 Like

The problem is that the ScreenGui is not being activated if the parent is the CoreGui, and even trying to make debounces to somewhat fix the error, it remains to say that Enabled isn’t a valid member… Pretty much a puzzle for me

Still cannot find the solution to the puzzle :dizzy_face:

What is the full error message?

1 Like

As being far away from my computer, I am going to send later on today