Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I asked this in a different question but havent got any answers?? :(

Asked by
kuru226 13
2 years ago

hello! Im trying to make a script that links up a textbox's text and the health of a humanoid. the model with the humanoid has a part in it that has the textbox. im trying to make it so that if the textbox says "90" the humanoid's health will be set to 90. ive tried just about everything that I know of. It shows no errors or anything in the output (but the "Testing" shows up in the output). so yeah, please help. thank you in advance! ^^

heres the code i used, its pretty simple. I just dont know why it isnt working :

while true do wait(.15) print("works so farrrrrrrrr")

if script.Parent.Text == "90" then
    script.Parent.Parent.Parent.Parent.Humanoid.Health = 90
end

end

so yeah..

Answer this question