Thats weird because I just ran my game with topbar plus installed and nothing is being printed?
So, I decided to make my own credit print because I canβt seem to locate the one alleged in the module.
File
Credits.rbxm (1.1 KB)
Code
print([[
ββββββββββββββ βββββββββββββββ ββββββββββββββββββββ
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
βββ ββββββββββββββ βββ ββββββ βββ ββββββββ
βββ ββββββββββββββ βββ ββββββ βββ ββββββββ
βββββββββββ ββββββββββββββββββββββ βββ ββββββββ
ββββββββββ ββββββββββββββββββ βββ βββ ββββββββ
----------------------------------------------
TopbarPlus
Source: https://devforum.roblox.com/t/v3/1017485
License: Mozilla Public License v2.0 (https://www.mozilla.org/en-US/MPL/2.0/)
----------------------------------------------
]])
Whenever I create an icon and the player getβs reset, the icon duplicates. Is there a way around this?
its not printing on studio. Thats why.
Yoo v3 is out. Thanks so much for making this.
When creating icons from separate scripts, a new βcontainerβ ui is created for each new icon, am i doing something wrong or is this an oversight/intended functionality?
real bro
gta 6 after tbp v3, so reall
that makes a lot more sense thanks
Is there a way to get the βusertoggledβ event or is that deprecated
This should solve your issue, its how your intended to do the topbar
You can use the selected, and deselected events. I donβt know about user-toggled if it doesnβt work then it might be deprecated.
Ok. My situation is a very specific one and needs to know whether or not the icon was selected with/without the userβs input. Thanks though
what do you mean by that, thats pretty vague
After looking through the change logs, it was removed but it was removed for the new event icon.userToggled
Example Usage:
icon.userToggled:Connect(function()
end)
I have a situation where if someone selects an Icon, they send a request to the server, and the server basically decided whether or not the request is valid, and sends that answer back to the client. if the client receives a negative response, I auto deselect the icon.
Without knowing whether or not the user toggled the event or if I did it through code, I get a C stack overflow from the events being fired continuously
Looks like the functionality was combined with the regular toggled event, and whether or not the user toggled the icon is passed as a boolean argument. Donβt see it in the documentation yet though.
yeah but v3 is relatively new so I get it.
will that work on serverside or only client?
what do you mean by that, what is βthatβ?
Guys Iβm trying to make a timer with a topbar icon and the text isnβt showing on the icon. Hereβs my script please lmk whatβs wrong with it.
local Icon = require(game.ReplicatedStorage.Icon)
game.ReplicatedStorage.RoundEvents.Intermission.OnClientEvent:Connect(function()
local TimerIcon = Icon.new()
local TotalTime = game.ReplicatedStorage.TimerSeconds.Value
for i = 1, TotalTime do
local TimeRemaining = TotalTime + 1 - i
local RemainingString = "0:"..TimeRemaining
if TimeRemaining < 10 then
RemainingString = "0:0"..TimeRemaining
end
TimerIcon:setLabel(RemainingString)
wait(1)
end
end)