I added some print statements and a wait() initialization.
These didn’t work however:
wait(1)
-- Require the IconController
local replicatedStorage = game:GetService("ReplicatedStorage")
local topbarPlus = replicatedStorage:WaitForChild("Modules"):WaitForChild("Topbar+")
local iconController = require(topbarPlus.IconController)
-- Create a shop menu
local player = game.Players.LocalPlayer
local gui = script.Parent.Core
print(not not gui)
print(not not gui.Chat)
local theme = {
-- TOGGLE EFFECT
["toggleTweenInfo"] = TweenInfo.new(0.35, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
-- OBJECT PROPERTIES
["button"] = {
selected = {
ImageTransparency = 0.3,
ImageColor3 = Color3.fromRGB(0, 170, 255),
},
deselected = {
ImageTransparency = 0.3,
},
},
["image"] = {
selected = {
ImageColor3 = Color3.fromRGB(255, 255, 255),
},
deselected = {
ImageColor3 = Color3.fromRGB(255, 255, 255),
},
},
["notification"] = {
selected = {
Image = "http://www.roblox.com/asset/?id=4882430005",
ImageColor3 = Color3.fromRGB(255, 255, 255),
},
deselected = {
Image = "http://www.roblox.com/asset/?id=4882430005",
ImageColor3 = Color3.fromRGB(0, 170, 255),
},
},
["amount"] = {
selected = {
TextColor3 = Color3.fromRGB(0, 170, 255),
},
deselected = {
TextColor3 = Color3.fromRGB(255, 255, 255),
},
},
}
-- Create an icon called 'Shop', with image '4882429582' and order of 1
local chat = iconController:createIcon("Chat", 5023984820, 1)
chat:setToggleMenu(gui:WaitForChild("Chat")) -- Set the shop menu to be toggled by the icon
chat:setTheme(theme)
Expected output:
true
true
NOTE: The script is located in StarterGui.