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
Try checking the properties of the TextBox
Constantly Run the trigger function in a loop also i tested this in a local script and it worked and didn't break
Did you try actually CALLING the function?
local function MyFunction(Num) print(Num^Num) -- Num to the power of Num end MyFunction(5) -- will print 5*5*5*5*5
Just keep in mind you need to CALL YOUR FUNCTIONS by re-typing the name and ending it with your parenthesis and with your added parameters (if any)!