#First click doesn't work
1 messages · Page 1 of 1 (latest)
hello
i recommend you separate the functionality from your display
you shouldn't rely on visual elements to make determinations like you are
can you elaborate please, I don't understand.
if script.Parent.Text == "View: All" then
script.Parent.Text = "View: Easy"
remove()
diff("Easy")
elseif script.Parent.Text == "View: Easy" then
script.Parent.Text = "View: Normal"
remove()
diff("Normal")
elseif script.Parent.Text == "View: Normal" then
script.Parent.Text = "View: Hard"
remove()
diff("Hard")
elseif script.Parent.Text == "View: Hard" then
script.Parent.Text = "View: Epic"
remove()
diff("Epic")
elseif script.Parent.Text == "View: Epic" then
script.Parent.Text = "View: Legendary"
remove()
diff("Legendary")
elseif script.Parent.Text == "View: Legendary" then
script.Parent.Text = "View: All"
remove()
bringback()
end
lookie here
alr
you're comparing the text of a label to determine what the next text should be
that's using the displayed information to determine the function
oh
so I had to change the way to determine without using displayed information?
It's an unrelated issue, but yeah I would change that. When you say first click does not work what do you mean?
this
this script also showing same problem