`This is what i have--wait until game.Workspace.Zombie.Humanoid.Health = 0
script.Parent.Text = "yay"
I cant figure out how t o make the wait until?!?!?
wait ... until ...
is not valid Lua syntax.
If you want to yield the current thread until a Humanoid
has died you can use the :Wait()
method on the .Died
signal of a humanoid.
Zombie.Humanoid.Died:Wait()
https://developer.roblox.com/en-us/api-reference/event/Humanoid/Died
https://developer.roblox.com/en-us/api-reference/datatype/RBXScriptSignal
This should fix your problem!
repeat wait() until game.Workspace.Zombie.Humanoid.Health <= 0 script.Parent.Text = "yay"