I am making a 3rd Person Shooter game, so I made a health Gui with this script
wait(.1)
while true do
hp = game.Players.LocalPlayer.Character.Humanoid.Health/100
script.Parent:TweenSize(UDim2.new(hp,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.15)
wait(.2)
end
So how do I get this sound
SoundService.Heartbeat:Play() to play when the player's health is below 25, The sound is only a second long so how do I loop it and play it if the player's health is below 25 and stop after 25

10 comments
Tested it, but it didn't work
Any errors?
OhMan, use GetPropertyChangedSignal and use <=
Thank you Silents. Smartics, try now.
OhManLolLol I am getting this error https://ibb.co/WkZq4fW
Try it now
As I stated Earlier I am trying to make a gui that takes info from the player's health and represents it in its own way I just want a sound to be playing when health <= 25, When i try your script on my Gui which is local the Gui health is stuck at 25 but the actual health is 100
Don't use it in the same script as the original one because your script divides health by 100, my script is just looking for health at it's normal form.
Sorry for late reply, But where do I put your Local script? ServerScriptService? maybe
Put it in StarterCharacterScripts