And also, could you give me a bigger tree of where this object is? and also where the script is located. This will be especially helpful for me and others who see this topic.
One thing, why are you trying to index inner with tostring(1) when you can just say "1", or try renaming the object altogether because Roblox Studio probably doesn’t like things named as 1 digit numbers…
Also, I’m not an expert in XBOX GUIs but your problem may be lying in the fact that you’re trying to select a button, which may sound a little counter-intuitive, but that may be why. The error states that you set SelectedObject to an valid GuiObject, so that could be why.
roblox doesn’t let you just type numbers like that in a path
the reason i’m trying to select it is because it makes a much smoother and more user friendly experience for xbox players
There’s one line of code in the if statement, it should be simple. Maybe someone with more expertise in GUIs can help you. I’m so sorry …
One thing I can say though, is, for the highest chance of getting your post solved, give ALL of the details about your problem. Don’t just give everyone a script, and say “it not working”. Tell us what type of script it is normal, module, etc…, where it is, what the error is, what other scripts are running that could have the slightest possibility of affecting the current script, and what you’ve already tried.
That will easily speed up the process of your post getting solved.