Hello there, I have a LocalScript here which is a child of a TextBox (Not a TextLabel), it's supposed to constantly check if the Textbox has the text "Aesthetical" of which will print "Aesthetical is correct!" whereas if it's the opposite it just prints "What bro" in an indefinite amount of times, because it is obviously a function
However it does not seem to work, how do I approach and fix this?
local text = script.Parent
local function trigger()
if text.Text == "Aesthetical" then
print("Aesthetical is correct!")
else
print("What bro")
end
end

1 comment
What I'm trying to do is it constantly checks if the player types Aesthetical, if the player typed Aesthetical in the TextBox it prints that Aesthetical is correct, whereas if the player does not type Aesthetical it just keeps printing What Bro