How do I make a heartbeat health bar GUI?

Hi all!

Does anyone know how to make a health bar like the one from TurboFusion v4?

(This one)
image

It’s graphics is like a heartbeat monitor, and the beats get faster or slower depending on your health, and when you die, it flatlines. Does anyone know how to make one like that, or if the script for TurboFusion can be modified to only show the healthbar? Thanks!

2 Likes

So what I would do is that I would do 30 images that are different and use a local script to order the images and using an int value that depends if it’s larger then it’s faster and the smaller the number the slower it would go through the images would slow it down or speed it up.

Hope this helps! Sorry for the grammar and spelling I wrote this on phone.

Hey appoaddda,

Thanks for your reply! Do you think you can give an example? I usually don’t script nor design GUIs, so it would be very helpful and appreciated if you can give an example of a script or something. :slight_smile: Thanks!

Sure I will try work a script out today!

Great, thanks so much for helping me!

This is the code I worked out, if you want to add more then just do another local waitTime = 0.1 and i think you should be good if you used an elseif hum.Health <= 74 then you copy and paste the code and change the wait time to what you need. You will need to have 10 images or more (just have to add to the code for more) and each one need to be slightly different so it looks as if its moving!

Hope this helps, sorry it took so long to reply, I had to finish some assignments for school!

--So this script has only got 10 images to go though but you can change this number--

local player = game.Players.LocalPlayer
local char = player.Character
local hum = char:WaitForChild("Humanoid")

local fullHealthWaitTime = 0.1 --In seconds

while true do
	wait(0.1)
	
	if hum.Health <= 100 then
		--Start to go though the frames--
		script.Parent.ten.Visible = false
		script.Parent.one.Visible = true
		wait(fullHealthWaitTime)
		script.Parent.one.Visible = false
		script.Parent.two.Visible = true
		wait(fullHealthWaitTime)
		script.Parent.two.Visible = false
		script.Parent.three.Visible = true
		wait(fullHealthWaitTime)
		script.Parent.three.Visible = false
		script.Parent.four.Visible = true
		wait(fullHealthWaitTime)
		script.Parent.four.Visible = false
		script.Parent.five.Visible = true
		wait(fullHealthWaitTime)
		script.Parent.five.Visible = false
		script.Parent.six.Visible = true
		wait(fullHealthWaitTime)
		script.Parent.six.Visible = false
		script.Parent.seven.Visible = true
		wait(fullHealthWaitTime)
		script.Parent.seven.Visible = false
		script.Parent.eight.Visible = true
		wait(fullHealthWaitTime)
		script.Parent.eight.Visible = false
		script.Parent.nine.Visible = true
		wait(fullHealthWaitTime)
		script.Parent.nine.Visible = false
		script.Parent.ten.Visible = true
		wait(fullHealthWaitTime)	
	end
	
end
2 Likes

I’m not completely sure, but maybe using a video depending on the player’s health?

1 Like

To upload a video to roblox it costs robux.

1 Like

Maybe there’s already a video created on roblox? Idk

If my code worked please mark it as solution! Thanks!

1 Like

This may be irrelevant to the conversation but… can you guys upload video’s?

(My create page:)
Screenshot 23-02-2021 11.08.38

Uhh yeah, a bit irrelevant, but I can’t upload videos either