Setting the Icon of a PluginToolbarButton to the same Icon, after creation, hides it

When trying to set the .Icon of a PluginToolbarButton to the same Icon it already has, for some reason it hides the Icon completely. This only affects the Icon though, and not the functionality. Do note that it’ll only happen if you wait() at least once.

Only today have I been editing the Icon property, furthermore only today has the bug started happening.

Here’s a screenshot of what happens:
Image
As you can see, the Icon is hidden.

Steps to Reproduce:

  1. Open studio and insert a Script
  2. Paste this code into the Script:
local Button = plugin:CreateToolbar("Plugin"):CreateButton("Button", "Button description", "rbxassetid://2993967566")
wait()
Button.Icon = "rbxassetid://2993967566"
  1. Save it as a plugin and install it
  2. You may have to reopen the place.
  3. As you can see, the Icon is gone.

If it helps, my system specifications are:
Processor: AMD A4-6210 APU with AMD Radeon R3 Graphics | 1.80 GHz
Installed RAM: 8GB (6.96 GB usable)
System type: 64-Bit operating system, x64-based processor
OS: Windows 10 Home 18362.657

2 Likes