1ForeverHD / TopbarPlus

Construct dynamic and intuitive topbar icons. Enhance the appearance and behaviour of these icons with features such as themes, dropdowns and menus.
https://devforum.roblox.com/t/topbarplus/1017485
Mozilla Public License 2.0
95 stars 123 forks source link

Topbar doesn't work on insert #68

Closed PokedWasTaken closed 6 months ago

PokedWasTaken commented 1 year ago

I inserted topbarplus in my game from the toolbox, but it break when I add the code from The devforum.

  14:09:04.556  ReplicatedStorage.Icon.TopbarPlusGui:350: attempt to index nil with 'PlayerGui'  -  Server - TopbarPlusGui:350
  14:09:04.557  Stack Begin  -  Studio
  14:09:04.557  Script 'ReplicatedStorage.Icon.TopbarPlusGui', Line 350  -  Studio - TopbarPlusGui:350
  14:09:04.557  Stack End  -  Studio
  14:09:04.557  Requested module experienced an error while loading  -  Server - IconController:24
  14:09:04.557  Stack Begin  -  Studio
  14:09:04.557  Script 'ReplicatedStorage.Icon.IconController', Line 24  -  Studio - IconController:24
  14:09:04.557  Stack End  -  Studio
  14:09:04.557  Requested module experienced an error while loading  -  Server - Icon:26
  14:09:04.557  Stack Begin  -  Studio
  14:09:04.557  Script 'ReplicatedStorage.Icon', Line 26  -  Studio - Icon:26
  14:09:04.557  Stack End  -  Studio
  14:09:04.557  Requested module experienced an error while loading  -  Server - Topbar:3
  14:09:04.557  Stack Begin  -  Studio
  14:09:04.557  Script 'ServerScriptService.Topbar', Line 3  -  Studio - Topbar:3
  14:09:04.557  Stack End  -  Studio
PokedWasTaken commented 1 year ago

I also tried adding code from the docs, but that broke as well.