Is the ID Asset ID (aka Image ID) or Decal ID? Decals won’t work.
Also, you must define the icon befower setting image:
local Icon = require(game:GetService("ReplicatedStorage").Icon) -- in hope the module is located in ReplicatedStorage
local test = Icon.new() -- you don't need to define variable, you can use the code in example instead
test:setImage(6326373239)
-- or you can use
test:setLabel("Test")
:setImage(6326373239)
Hope it helped! Otherwise I don’t know where the issue can be.
First, the reply is dedicated for someone else.
Secondly, that one was saying his function is not working, so I tried to help him in the way I can (in hope Ben won’t need to responde).
I also know I can upload my own decals / images or even assets (like Models, etc.); only Audio and some clothing are limited by Bobuxs.
I don’t you to feel bad for your response, absolutely not, just don’t understand what you wanted to say with it, sorry.
I’ve already tried several ways to enable/disable a ScreenGui called “shopFrame”. The “Test me” button is visible but when I click on the know nothing happens.
I hope below script and image helps me solve the problem.
-- Within a LocalScript in StarterPlayerScripts and assuming TopbarPlus is placed in ReplicatedStorage
local Icon = require(game:GetService("ReplicatedStorage").Icon)
local icon = Icon.new()
icon:setImage(6399193086)
icon:setLabel("Test me")
:bindEvent("deselected", function()
game.StarterGui.shopFrame.Enabled = false
end)
:bindEvent("selected", function()
game.StarterGui.shopFrame.Enabled = true
end)
I’m having a problem where toggle items remain hidden after a character dies and respawns. I have Icon installed in ReplicatedStorage and a TopbarManager in StarterPlayerScripts. I created a minimal script that you can use to recreate the problem:
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Icon = require(ReplicatedStorage.Icon)
local player = Players.LocalPlayer
local screenGui = player:WaitForChild("PlayerGui"):WaitForChild("ScreenGui")
local textLabel = Instance.new("TextLabel")
textLabel.Position = UDim2.new(0.5, 0, 0.5, 0)
textLabel.Text = "Welcome to this game..."
textLabel.TextSize = 30
textLabel.Visible = false
textLabel.Parent = screenGui
local helpIcon = Icon.new()
:setLabel("Help")
:setMid()
:bindToggleItem(textLabel)