I am making a script where it changes the style when it is clicked. Yes this script works and it is in a for loop but this part of the script does not work. Everything else does, just not this.
if v.Style == "RobloxRoundDefaultButton" then -- there are no errors for this part
v.Style = "RobloxRoundButton"
else
v.Style = "RobloxRoundDefaultButton"
end

2 comments
You can use numbers, or you can use Enum.ButtonStyle.RobloxButton, but usually strings are accepted as well...
This did not help but thanks anyway. I will use debounce for this. I was just trying to be more efficient.