Closed MirayXS closed 3 years ago
I can't seem to reproduce the bug with the following code:
-- PLayer Guis
local Icon = require(game.ReplicatedStorage.Icon)
local playerGui = game.Players.LocalPlayer.PlayerGui
local gui = playerGui:WaitForChild("PhysicsSettings")
-- Leftwards icons
local settingsMenu = gui
local settingsIcon = Icon.new()
:setImage(2484556379)
:setLabel("Settings")
:setTip("Open Settings (b)")
:setCaption("Physics Settings")
:bindToggleKey(Enum.KeyCode.B)
:setOrder(1)
:setLeft()
--:notify()
:bindEvent("selected", function()
print("selected!")
settingsMenu.Enabled = true
end)
:bindEvent("deselected", function()
print("deselected!")
settingsMenu.Enabled = false
end)
Can you re-insert the TopbarPlus model or grab the latest release and replace your current module then see if the problem persists - we did recently make a bug fix for something similar.
If that doesn't work, can you send a stripped down place file of the icon construction code and hollowed-out GUIs
The first option didn't work.
And the place file, must be only the icon module in RS and the script in StarterPlayer PlayerScripts right?
i got a rbxl file imma upload it somewhere
Can you upload this to a separate roblox game please and uncopylock the place
alright will do, sorry for the late reply
i think i did it the place is private but i think i uncopylocked it its jmy first time un copylocking a game place https://www.roblox.com/games/6524078189/Untitled-Game
Thanks for your help! We've discovered and patched two critical bugs. You can get these in the latest release (https://github.com/1ForeverHD/TopbarPlus/releases/tag/v2.3.1) or by re-adding the TopbarPlus model.
Feel free to close this issue once you've tested the latest updates and it all works good.
Alright thanks you very much! and i'm glad i helped to discover some bugs. I'll test later today and tell you what happens 👍
Hey sorry if i didnt reply yet, my roblox account got previously banned for 7 days, and i couldn't test, ill test right now !
Works well! thank you for updating 😄
No problem, and glad to hear that!
First leftward icon gets glitched
my first icon, which is located at the left, get's glitched like this
Sometimes it works well, but most of the time it just glitches. Sometimes it doesn't even show the icon at all but its only clickable/toggleable like this
This is my code, there's more, but this is the part of this icon
I also noticed that over playing time or resetting in-game it gets positioned right, but when you spawn the first time it gets glitched like the first screenshot