Hello, so I am trying to make a script that it sees if the parent's text is "90", if so, it will make the humanoid's health also 90. I'm just a girl trying to code for my friends over here.
here it is:
while true do
wait(.15)
print("Testing")
if script.Parent.Text == "90" then
script.Parent.Parent.Parent.Parent.Humanoid.Health = 90
end
end
it doesn't show any errors or anything like that in the output. Please help! please ask any questions, Thanks!!

7 comments
oh so ur a girl >:)
you are saying it does not even print "Testing"? This means that code does not run at all, where is the script located?
Did you by any chance put the script into a StarterCharacter? I may be able to help you with this if so.
no, @luluziluplayzROBLOX, I didn't put it in a starter character. I put it in a textlabel that shows the character what the number is.
oops, sorry for the confusion, @imKirda. I checked and it does print "Testing" but nothing after that, I'm so confused :(
Try adding an if statement.
@luluziluplayzROBLOX, wdym? i did add an if then statement?