TopBarPlus v3 Glitch?

Hello, I have some problem with TopBarPlus v3.
I have this Icon in my game
image
Everything works perfectly fine unless I reset my character…
Here is the LocalScript that is located in the StarterPlayerScripts

local rs = game:GetService("ReplicatedStorage")
local topbar = require(rs.Icon)

local player = game.Players.LocalPlayer
local window = player.PlayerGui.Lobby.Support
local exit = window.Frame.Exit
local sound = game.Workspace.Sounds.ButtonSound

local icon = topbar.new()

icon:setLabel("Contact Us")
icon:setCaption("Send a message for developers")
icon:align("Right")
icon:oneClick()
icon:bindEvent("deselected", function()
	sound:Play()
	print(1)
	window.Enabled = not window.Enabled
end)

exit.MouseButton1Click:Connect(function()
	sound:Play()
	window.Enabled = false
end)

I tried moving it in the Support ScreenGui, but it does not help(ResetOnSpawn is off). The sound is playing and the print statement is working, I tried looking up the ScreenGui itself in the explorer and it is as it should be, and .Enabled works if I toggle it manually.
Any help?

my honest reaction when you forgot to set ScreenGui.ResetOnSpawn=false

my honest reaction when you don’t read the whole post

can you make sure Lobby.ResetOnSpawn is turned off? and not just Support screengui

Lobby is a folder, I am sure that ResetOnSpawn is off

that explains everything folders will always reset on spawn

you need to move Lobby to ScreenGui with resetonspawn set to false

1 Like

uhhh didn’t know that, thanks common roblox engine L

1 Like

Because you define one version of the UI when you first spawn

This will not update unless you update it or set the Screen Gui ResetOnSpawn to false.

So you would either have to have a character added on localplayer or setting ResetOnSpawn to false.

I have it false, but thanks.
Here is the solution:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.