Hello, I have some problem with TopBarPlus v3.
I have this Icon in my game
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?