I must be doing something wrong; I’m building a plugin and I’ve spent several hours trying to get just the button cons to upload. Which doesn’t seem to ever work, here’s my code:
local newButton = toolBar:CreateButton("Stylized Light Preset", "Sets the lighting to feel more stylized. NOTICE: Will erase almost all previous changes to lighting.", "http://www.roblox.com/asset/?id=9743528244")
local newButton2 = toolBar:CreateButton("Horror Light Preset", "Sets the lighting to feel more horror themed. NOTICE: Will erase almost all previous changes to lighting.", "http://www.roblox.com/asset/?id=9743528244")
local newButton3 = toolBar:CreateButton("Realistic Light Preset", "Sets the lighting to feel more realistic. NOTICE: Will erase almost all previous changes to lighting.", "http://www.roblox.com/asset/?id=9743528244")
Have you defined toolBar like this:
local toolBar = plugin:CreateToolbar("toolbarName","toolbarDescription","toolbarIcon")
No, should I? Ignore this: I need more characters to post.
Yes you should since Roblox Lua thinks you are doing:
local newButton = nil:CreateButton("Stylized Light Preset", "Sets the lighting to feel more stylized. NOTICE: Will erase almost all previous changes to lighting.", "http://www.roblox.com/asset/?id=9743528244")
local newButton2 = nil:CreateButton("Horror Light Preset", "Sets the lighting to feel more horror themed. NOTICE: Will erase almost all previous changes to lighting.", "http://www.roblox.com/asset/?id=9743528244")
local newButton3 = nil:CreateButton("Realistic Light Preset", "Sets the lighting to feel more realistic. NOTICE: Will erase almost all previous changes to lighting.", "http://www.roblox.com/asset/?id=9743528244")
Hm, still says it can’t load them.
All right, I found the issue, I was uploading as a decald. My bad.