More info can be found on this thread:
Is there a limit to how many buttons :GetButton() can be used on? On my eighth button, the function always returns nil no matter how which order I place the buttons in.
ContextActionService:BindAction("Switch", HandleAction , true, "t")
ContextActionService:SetPosition("Switch",UDim2.new(0.8,10,0.72,10-2))
ContextActionService:SetImage("Switch","rbxassetid://3645791381")
local button = ContextActionService:GetButton("Switch")
button.Size = UDim2.new(0,BUTTONSIZE-20,0,BUTTONSIZE-20)
ContextActi…
5 Likes
Ozzypig
(Ozzypig)
August 21, 2019, 6:42pm
#2
Hey, thanks for catching this - I’ll follow up with engineering to see if this is by design or a bug. My gut tells me this is a bug; I’ll update the thread when I find out for sure.
2 Likes
starmaq
(starmaq)
June 29, 2024, 10:55am
#4
Wanted to put the spotlight on this bug again, as this is still an issue.
Having lots of buttons will make :GetButton()
inconsistently work.