When im trying to make a if textbox = a players name it all works fine. But only once. How can i loop it to go multiple times over and over my localscript would be
if script.Parent.Frame.PlayersTrollFrame.TextBox == game.Players.LocalPlayer.Name then print("yes") else print("no") end end) how can i make that small part of a script run over and over?
Here's a simple way to make a forever loop;
while wait()do if script.Parent.Frame.PlayersTrollFrame.TextBox.Text == game.Players.LocalPlayer.Name then print("yes") else print("no') end end
You forgot to get the text in the script you posted. Hopefully this helps!