No…not that. I mean the explorer window of all the things in the GUI.
Here’s a working example: Example.rbxl (23.3 KB)
Basically let the buttons update themselves if the Choosen.Value changes.
Then to select a button, set Choosen.Value = yourButton
what is the chosen value ? what kinda value is it
It’s an ObjectValue, so the value = your button or whatever u set it to. Could be a brick or player or wahtever, but in this case it should only be the button you want to highlight
Perfect. Put this in the ScreenGui. You will need to add the effect of the button getting bigger after the if statement in MouseButton1Click event. And in the if statement make the clickedButton go to normal.
local clickedButton = nil
for _, button in pairs(script.Parent.MainFrame:GetChildren())
if button:FindFirstChild(“Open”) then
button.Frame.TextButton.MouseButton1Click:Connect(function()
if clickedButton ~= nil then
— Change clicked button to normal.
clickedButton = button
end
— Change the new clicked button to be bigger.
end)
end
end
screnn GUI? which one you mean the “Shop”
and just one script or what?
Yes. And only one local script.
something wrong with the “if”
.
.
.
.
It might be because of mobile font.
no there is a error line under the 3 line “if”
what is the last line mean
–Select this button
i need to change anything?
Add a “do” in the for loop. 30chars.
thx for helping me tho but i got a better solution <3
Yo dude thank you so much <3
.
.
.