You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? I want to check if text has more than X amount of text stored inside it
-
What is the issue? My if statement that checks this is not working correctly
-
What solutions have you tried so far? I tried debugging and the script is still broken
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
function MathHandler()
for i,v in pairs(MathFolder:GetChildren()) do
if v:IsA("TextButton") then
v.MouseButton1Click:Connect(function()
local OldText = #InputDisplay.Text
OldText = InputDisplay.Text .. v.Text
print(OldText)
if OldText >=2 and not NumButtonsFolder then
print("user added more than one sign")
end
end)
end
end
end
MathHandler()
Hello so i got a strange problem that is happening where my script will not check the text imputed into a text label and instead won’t even run the if statement why is this happening?