You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
im trying to make my custom topbar but the image on it doesnt display also im using topbar v2 module
What is the issue? Include screenshots / videos if possible!
it works great but the image on it doesnt display
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i checked on the api of the topbar module again
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local Icon = require(game:GetService("ReplicatedStorage").Icon)
local player = game.Players.LocalPlayer
local icon = Icon.new()
icon:setImage("rbxassetid://5107166345")
icon:setLeft()
local Themes = require(game:GetService("ReplicatedStorage").Icon.Themes)
icon:setTheme(Themes.Default)
icon.deselected:Connect(function()
script.Parent:WaitForChild("KillFeedGui").KillFeedFrame.Visible = false
end)
icon.selected:Connect(function()
script.Parent:WaitForChild("KillFeedGui").KillFeedFrame.Visible = true
end)
well in my explorer i put a local script inside the startergui folder thats all and in-game is just a black square but the function of the button is working
This is what the function says in the module so I dont think it matters if you have the rbxassetid infront of it or not
function Icon:setImage(imageId, toggleState)
local textureId = (tonumber(imageId) and "http://www.roblox.com/asset/?id="..imageId) or imageId or ""
return self:set("iconImage", textureId, toggleState)
end