game.StarterGui:SetCoreGuiEnabled("Chat",true) not works

Chat GUI Wont show (LegacyChatService)

UIS.InputBegan:Connect(function(inputObject)
	if inputObject.KeyCode == Enum.KeyCode.Slash then
		local Flip = not game.StarterGui:GetCoreGuiEnabled("Chat")
		devprint("Chat: " .. tostring(Flip))
		game.StarterGui:SetCoreGuiEnabled("Chat", Flip)
	end
end)

I was trying to port 2016 GUI Remastered to Non-CoreScripts Version.
But chat part chat gui wont show

btw idk where is ChatOnWithTopBarOff

Instead of “Chat”, try Enum.CoreGuiType.Chat