Returning a value if text is different

Added to studio: SelfCheckInReboot. Remember to apply edits.

You see? when a player is unselecting a class, his value should be changed to false, and the
image

should be empty until he chooses his next

So how do we fix this? Could you fix it?

Now that we know that issue, we need to make sure to turn that value to false [selected] and to empty/nil [className]

Is that something you could do? I just left home to go to handball practice. I can be active on devforum for 30 minutws then i wont be back in 2 hours.

I am now going to work on it, dont worry

Thank you so much! You have been to so much help the past few days😊

1 Like

So as we can tell, we’re given ‘true’ everytime. So all we have to do now, is to make sure it can return false aswell, I am working on it, and seems like we’re on the right way towards the solution.

Good news!

I managed to make it so that you can select/unselect a class!

However, we still have a little bug there, still on it.

robloxapp-20220317-1914299.wmv (474.2 KB)

I now got to go buddy,

  1. I FIXED the issue of select/unselect a single class.
    2)If there’s still a problem with ‘when select one class, u cant select others, it’d just unselect it’ ,I’ll fix it later.

Cya man! Glad I could help!

local function stopAtFirstDifferentText(f : Frame)
	local constantText = nil
	for _, guiTextObject in ipairs(f:GetChildren()) do
		if guiTextObject:IsA("TextLabel") or guiTextObject:IsA("TextButton") or guiTextObject:IsA("TextBox") then
			if not constantText then
				constantText = guiTextObject.Text
			else
				if constantText ~= guiTextObject.Text then
					return true
				end
			end
		end
	end
	return false
end

Essentially the same function I provided to you yesterday but ValueBase has been replaced with GuiObject.

1 Like

Thanks! I’ll look into it once I get home!

No problems! Take a look into @Forummer o problems! Take a look into @F 's post aswell if you still have any issue

Could you hopefully fix the issues we are experiencing right now?

Sorry man,I was busy all day, but I’ll work on that issue as soon as possible, dont worry.

Thanks, add me on discord for quicker responses: AviaTeam#0001