For those are lazy to do the script here: local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") humanoid.HealthChanged:Connect(function(Damage) script.Parent.Size = UDim2.new(Damage / humanoid.MaxHealth, 0, 1, 0) end)
Me be like : I worked hard and this guy really send in comments..
@john.d.rockefeller25383 жыл бұрын
Thank you so much, I appreciate the clarity and professionalism on display here.
@logojinx6 ай бұрын
i love you
@Sadlynutmeged4 жыл бұрын
Omg literally like thank you!!! This is just what I needed It's like you read my mind!
@dabest330421 күн бұрын
Thank you Gamer M8, this video was so helpful. Short but gets the job done.
@GamerM820 күн бұрын
im glad you found it helpful
@ramzticear3 жыл бұрын
Thank you so much, I watched different tutorials but it messed up all the time, your tutorial works actually! The prize for you is a Sub!
@GamerM83 жыл бұрын
Thanks for subscribing!
@biozin17063 жыл бұрын
If you want to disable the healthbar at the top right. Type this in the script: -- Disable the healthbar game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
@skyluk24873 жыл бұрын
@@biozin1706 thx bro
@biozin17063 жыл бұрын
@@skyluk2487 Yoshikage Kira your welcome
@skyluk24873 жыл бұрын
@@biozin1706 thanks heavy
@comradecola89963 жыл бұрын
This was an awesome video I’ve been using these tutorials to help me make my game and also to learn coding. Keep up the good work
@VicMetEenK2 жыл бұрын
same
@bbid123gaming4 жыл бұрын
I haven’t tried this yet, but this is very helpful and useful for my game! Keep up the good work and soon you will have bigger achievements!
@abstrac93 жыл бұрын
If you dont wanna type all of the script out, simply just copy and paste this. local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") humanoid.HealthChanged:Connect(function(Damage) script.Parent.Size = UDim2.new(Damage / humanoid.MaxHealth, 0, 1, 0) end)
@bot-qu2hx3 жыл бұрын
Thx
@TheYoungBoyzz2 жыл бұрын
tysm
@abstrac92 жыл бұрын
your welcome.
@Bidararabaduba5 ай бұрын
ty
@Freggymon26 күн бұрын
THX BRO IM SO LAZY HOWD U KNOW 🤣🤣🤣🤣
@retro.6664 жыл бұрын
I HAVE THE SUBSCRIBE BUTTON AND IM NOT AFRAID TO PRESS IT.. I SUBBED BRO KEEP UP THE GOOD WORK
@larry90304 жыл бұрын
Lol!😂😂
@mamtaagarwal58294 жыл бұрын
Wait aren't u the sof guy from dicord
@retro.6664 жыл бұрын
@@mamtaagarwal5829 Um yea....??
@FaizyII Жыл бұрын
Bro, thank you so much! I tried many other tutorial, did everything right, but nothing worked. Finally, with your help, I finally made a Health Bar GUI.
@GamerM8 Жыл бұрын
I'm glad you got it to finally work!
@akterzaman7766 Жыл бұрын
For ppl to understand: if the damage is divided by the MaxHealth, it returns a decimal range from 0 to 1, we can use this as the scalar value for the udim2
@pulograin Жыл бұрын
Yeah but I don't understand this: imagine that you lose 10 hp. Damage = 10 so 10/100 = 0.1 and the bar will have a 0.1 size and not a 0.9 size. Damage is the amount of damage or the hp left?
@TotalliAnthonii4 жыл бұрын
Yes, It actually worked, no clickbait, God bless you man!
@jack_14e4 жыл бұрын
thank you so much! this really helps. best wishes for ur channel! :D
@MareeJohnsonNewZealand5 ай бұрын
Short, simple, easy to follow, actually works, explains well and helpful videos like this makes development easier 😃
@Venicipian4 жыл бұрын
I swear to god, this mans is no mortal, he is the god of helpfulness.
@soureggroll70343 жыл бұрын
TYSM BRO YOUR THE BEST I HOPE ONE DAY YOU GETON THE TOP OF THE ROBLOX COMMUNITY cuz this game im making is gonna be a banger thanks to you
@person2304 жыл бұрын
You are the only youtuber that helps me to make a game :)
@GamerM84 жыл бұрын
Thank you very much for your comment. I'm glad you found the video helpful 👍
@SamLeroSberg3 жыл бұрын
alvin blox: *sad alvin noises
@mechx4arceus3 жыл бұрын
I am so proud that you are a KZbinr who teaches use how to do it unlike some others who just give a link to free models and earn revenue.
@GamerM83 жыл бұрын
Thank you very much! 👍
@mechx4arceus3 жыл бұрын
@@GamerM8 I modified it and it changes color as the health falls or increases, I even made it to display the percentage of health and made it regeneration friendly with math.round as regeneration made it like 53.8373833 now it is one of the best health GUIs on roblox, All thanks to YOU.
@MarrTheMilkman2 жыл бұрын
@@mechx4arceus Could you tell me the script you used to do this? I wanted to do this for my health bar but it's above my skill level.
@jacoobio4 жыл бұрын
yes! GamerM8 can read my mind i was looking everywhere for this lol
@Minas_s2 жыл бұрын
You are the best i made my game and like all the scripts or whatever are made by you!You got my sun man
@xDomReal3 жыл бұрын
Great tutorial! It's also nice how you answer all the questions in the comments helping out your viewers. Definitely earned a sub! :D
@GamerM83 жыл бұрын
Thank you so much for subscribing, I really appreciate your comment! :D
@mcmoneu82313 жыл бұрын
Bro I thought it didn't work for a minute then I realized I made the two colors green which made it look like it didn't work! THANKS!!!! :D
@jacobgalindo36272 жыл бұрын
your vids are so short yet so easy to follow im making this one piece game and I've met a modeler and just by using these simple scripts everything is fixed I am more than grateful
@GamerM82 жыл бұрын
Thanks, good luck with your game!
@UltimateDimensionStuidos7 ай бұрын
Have you finished your game? I would like to try it.
@snipex207773 жыл бұрын
Man, these Roblox tutorials are the best under 10 minutes of my life I searched how to make an fps game in 5 mins and I technically made arsenal in 3 minutes LOL you have earned a new subscriber M8
@pan50994 жыл бұрын
You motivated me to start doing these tysm, Love your content!
@GamerM84 жыл бұрын
That's great! I'm glad you found my videos helpful 😊
@rynamiteart86233 жыл бұрын
I've maybe watched 5 videos about this and yours was the only one that worked. Thank you so much.
@CaImify4 жыл бұрын
BRO I NEEDED THIS, THANK YOU :D
@superblast83194 жыл бұрын
Me too
@Beij1ngCorn2 жыл бұрын
I subbed, big fan
@PremiumBlitzYT4 жыл бұрын
Thank you so much! This tutorial helped me create a health system for my FPS (First Person Shooter) game! Thanks again, Gamer Mate!
@VortexFemboyGD3 жыл бұрын
I made my own FPS capture the flag and free for all game. Now I’m trying to make battle Royale game mode.
@sm1le3963 жыл бұрын
thank you for explaining what an FPS is. I thought you were talking about a racing game!
@TratUsYT5 ай бұрын
@@VortexFemboyGDi wish you luck
@cyberbully178 ай бұрын
never saw anything so good explained i am shocked on how easy it was and how good i understood it
@xdave26623 жыл бұрын
May god forever bless him the days when he taught me how to script my game, THANKYOU GOD FOR CREATING HIM!
@0eanime00hackerforyourmam3 жыл бұрын
Plz can you write a script
@robloxhackerpro3 жыл бұрын
@@smt4090 LOL
@daddyjigsaw45563 жыл бұрын
@@robloxhackerpro hello thanos, this is daddy. You have escaped my basement kitten grrrr I will find you and keep you down there forever
@Mini_Bro5000 Жыл бұрын
Dude you are so amazing idk how you only have 75k you should have a million keep up the good work you earned a sub
@TotalliAnthonii4 жыл бұрын
Continue and this channel will have a 1Mill subs one day.
@RealAZL_YT2 жыл бұрын
this guy puts all his time into making everyone happy and does everyone literally can think of in Roblox studio, I luv you bro keep up the work!
@kennylopezstudios94904 жыл бұрын
Wow this actually works You just earned a sub
@baloniez55063 жыл бұрын
Thank You So Much Good thing you are a KZbinr that actually helps people out
@marshgd4 жыл бұрын
THANK GOD YOU EXIST
@sslugi3 жыл бұрын
Lol ikr, i could not do anything without him
@NONE_10015 ай бұрын
fr
@contendu2 жыл бұрын
YESSS ANOTHER GAMER M8 ONE, GAMER MATE IS THE BEST AT THESE
@olmac16833 жыл бұрын
OMG THANK YOU SO MUCH I NEEDED THISSS
@teysh48973 жыл бұрын
Every videos that I have doing like u it always work. Keep up the quality!
@samun7943 жыл бұрын
Hey Are you wondering how to make a number display ? just do some simple action First create a TextLabel inside the background 2nd Step Customize so it fit with the background and the other textLabel 3rd Add a local script inside that local Player = game.Players.LocalPlayer Local H = Player.Character.Humanoid while wait() do script.Parent.Text = H.Health.."/"..H.MaxHealth --Edit Dont click on the H.Health link i dont know why is this a link but dont click on it end And everything done Hope this helped!
@madcapmaple3 жыл бұрын
It says humanoid is not a valid member of model “workspace.playername”
@frockfor2 жыл бұрын
what number should i put
@yRikz Жыл бұрын
Tysm
@itsduncecap Жыл бұрын
Small Correction , Make sure to change that Local to local (lowercase L)
@itsduncecap Жыл бұрын
thanks !!!
@sxreemzclips4 жыл бұрын
Awesome your a life saver!
@GamerM84 жыл бұрын
Thanks for your comment. I'm glad you found the video helpful 👍
@sxreemzclips4 жыл бұрын
@@GamerM8 When alvin blox teaches i do not understand it but when you do it i understand
@joseiiimaloloy-on61304 жыл бұрын
lol u even taught us how to make a kill brick with no viruses
@Mono-ko1kh3 жыл бұрын
Yum
@BeanieOSC Жыл бұрын
You could just reset.
@2337274 Жыл бұрын
Bro u need help help with a killbrick they r so easy???
@total_blasphemy Жыл бұрын
@@oliveryap2845you could just go into toolbox and get a kill brick dude
@breaddacat7935 Жыл бұрын
@@2337274some people dont know
@culabu79113 жыл бұрын
Me and my brother wanted to make a game on roblox studios and watching this tutorial made it easier Thank you so much yo won a subscriber!
@GamerM83 жыл бұрын
Thank you for subscribing! I'm glad I was able to help!
@real_Tyles3 жыл бұрын
If it is shrinking on both sides make sure the "Anchor Point" is set to "0"
@xXJemaryXx2 жыл бұрын
ohhh thank you so much
@xXJemaryXx2 жыл бұрын
tyyy
@jizz69 Жыл бұрын
ty
@Game3rsArePross Жыл бұрын
It is not shrinking on any sides. what to do?
@real_Tyles Жыл бұрын
@@Game3rsArePross script error it sounds like
@TheRealSnipish2 жыл бұрын
ngl, this man makes creating Roblox stuff bearable
@Kr3atif4 жыл бұрын
Guys Watch M8 Gamer’s SpeedGamePass Video And change “WalkSpeed” to “MaxHealth” to Make This Gui Much More UseFul
@brianhardy8474 жыл бұрын
Thanks I might try this
@LadyDeathVidal2 жыл бұрын
THANK YOU SOOO MUCH THIS IS THE BEST TUTORIAL VID ❤❤❤
@raiden76113 жыл бұрын
Thank you! This was so incredibly helpful!
@yb__703 жыл бұрын
This is one of the best health bar videos i have see so far Great job
@GamerM83 жыл бұрын
Thank you so much, I appreciate it!
@slime49014 жыл бұрын
Thank you so much! It worked! :D
@GamerM84 жыл бұрын
You're welcome! I'm glad you found the video helpful 😁
@Noah_theComposer3 жыл бұрын
Happy 40K Subs, Gamer M8!!
@GamerM83 жыл бұрын
Thank you so much! 🥳
@RetroLine9114 жыл бұрын
thank you so much your LEEEEEGEEEENDDDARYYY
@gusepep3 жыл бұрын
no he isnt he is 50x better than that
@RetroLine9113 жыл бұрын
@@gusepep lol
@gusepep3 жыл бұрын
lmao
@t-boniasremade18673 жыл бұрын
@@gusepep 10000000000000000000000000000000000000000000000000000000000000000000000000000000x that
@Fayazix4 жыл бұрын
Did u read my mind?? Btw thanks you and some other KZbinrs are the only ones who make good scripting vids! Ty
@GamerM84 жыл бұрын
Thank you very much for your comment. I'm glad you find my videos helpful
@liabilityy28483 жыл бұрын
This is EXACTLY what I needed, thanks
@HeeeehahaАй бұрын
UNDERATED LOL YOU HELP ME TY 🤗🤗❤
@GamerM8Ай бұрын
im glad it helped
@aslegger2 жыл бұрын
Thanks for making this, really good tutorial man!
@Timojam2 жыл бұрын
Yo huge thanks, The video is short and to the point. Even it's only 11 lines, but it works very good, not like other video who wasted 30 minutes of typing 40 lines. Once again thank you so much👍
@NotGoodAPerson3 жыл бұрын
dude your the BEST PERSON!!!!!!!!!!!!!!!!!
@The_Buddha_User4 жыл бұрын
THANKS MATE! THIS IS EXACTLY WHAT I NEEDED!!! :))))
@Tueydo3 жыл бұрын
i know im late but you have won my subscription my friend
@GamerM83 жыл бұрын
Thank you for subscribing!
@Tueydo3 жыл бұрын
@@GamerM8 no problem!
@1a21a2 жыл бұрын
You can add an animation to this by using this script: "local plr = game.Players.LocalPlayer local char = plr.Character or plr.CharacterAdded:Wait() local hum = char:WaitForChild("Humanoid") hum.HealthChanged:Connect(function(Damage) script.Parent.Size = script.Parent:TweenSize(UDim2.new(Damage / hum.MaxHealth, 0, 1, 0)) end)" At the end of the 2nd bracket you can play around with is by doing this "Enum.EasingDirection.(out or inout or in), Enum.EasingStyle.(Sine,Elastic,Bounce ect)
@NacoPercyIsKool2 жыл бұрын
I have no idea how to add a animation can you show me how to do it with a comment
@stevebappe Жыл бұрын
thank you bro
@tankycatcool632 жыл бұрын
why are you not at 1 mil subs yet? this guy is amaxing and hes only at 47k ???!!!!!
@yujin7593 жыл бұрын
BRO YOU ARE THE BEST
@islawpalitaw43743 жыл бұрын
Thanks man. I needed this. :)
@GamerM83 жыл бұрын
You're welcome!
@Zoufu4 жыл бұрын
I was going to subscribe, then I realized I already was
@GamerM84 жыл бұрын
Haha! Thank you 👍
@LiamsPlushStudioАй бұрын
Thank you for your service, Gamer M8!
@Crypticat3 жыл бұрын
incase you're too lazy or low on time to type it yourself: local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local health = humanoid.Health humanoid.HealthChanged:Connect(function(Damage) script.Parent.Size = UDim2.new(Damage/humanoid.MaxHealth, 0, 1, 0) end)
@hellohennessy34623 жыл бұрын
Why is there a health variable ?
@ActuallyA7433 жыл бұрын
99.9 people copy this cuz they lazy :>
@flex7000 Жыл бұрын
Omgggg thanks soo much u made my game even better let's gooooo thank u my guy , worth a sub ❤
@GamerM8 Жыл бұрын
Thanks for subscribing, I'm glad you liked the video!
@2banimated5753 жыл бұрын
You might want to remove the player healthbar (the built in one.) Here's the script: game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
@yowampish36522 жыл бұрын
where do i put that
@yowampish36522 жыл бұрын
@ProRobloxYT thank you
@AA-zr1wi2 жыл бұрын
it didn't work
@1hesperiidae2 жыл бұрын
Oh my god, a youtube roblox tutorial that works as intended!!
@Mason_33034 ай бұрын
THANK YOU MAN VERY HELPFULL!
@TheReal_CaptainPizza4 жыл бұрын
Thank you when I'll have a PC I'll watch all the tutorials that I saved and follow them 🍕👍👍👍👍👍👍👍👍👍👍❤❤❤
@AA-zr1wi2 жыл бұрын
did you get one yet?
@creamchez67863 жыл бұрын
bro I feel like your tutorials are the only ones that actually work
@tunx2223 жыл бұрын
I know right??
@themonkey96833 жыл бұрын
*Health Script* local player = game.Players.LocalPlayer local character = player.character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") humanoid.HealthChanged:Connect(function(Damage) script.Parent.Size = UDim2.new(Damage / humanoi.MaxHealth, 0, 1, 0) end) *Kill part* script.Parent.Touched:Connect(function(hit) if hit and hit.Parent:FindFirstChild("Humanoid") then hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 12 end end)
@acexur24302 жыл бұрын
ty bro
@Earth05336 Жыл бұрын
You Also Told Us How To Make A Thing On The Screen! (: Thank You Also For Help Us Know How
@JudeNimations4 жыл бұрын
Gamer M8 Can you Make A Level Up System Please :D Im Proud Of You
@MatGamingUGC4 жыл бұрын
LEGENDS NEVER DIE AND UR ONE . U MADE MY GAME BETTER. ANOTHER SUB!
@GamerM84 жыл бұрын
Thank you very much for your comment and for subscribing to my channel 👍
@MatGamingUGC4 жыл бұрын
@@GamerM8 Merry CHristmas mate and THANKS TO YOU My game is better, tho I still need help scripting an building . (Dont worry your tutorials always work!
@username6423 жыл бұрын
local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") humanoid.HealthChanged:Connect(function(Damage) script.Parent.Size = UDim2.new(Damage / humanoid.MaxHealth, 0, 1, 0) end) (pin this if u can)
@limlam14823 жыл бұрын
Thank you
@sacredzz3 жыл бұрын
i know im late but your channel has really helped me :) keep it up man!
@GamerM83 жыл бұрын
Thank you, I'm glad I've been able to help you out!!
@rwshbee99153 жыл бұрын
Someone bless his parents for make him exist
@OutSmartedHandsome3 жыл бұрын
You spelt the sentence wrong your supposed to say "Bless His Parents For Creating Him"
@rwshbee99153 жыл бұрын
@@OutSmartedHandsome srry
@OutSmartedHandsome3 жыл бұрын
Hey, its ok
@vivisamu3 жыл бұрын
*god may bless him.* 😌
@acekun45393 жыл бұрын
Thank you so much! I've been a Fan of you Last Year! My old Google Account got Hacked though.. but Thank you so much for the Tutorial!
@emperorutopia63754 жыл бұрын
I sometimes wonder how amazing scripters like gamerm8 learnt how to code.
@Axtrrr314 жыл бұрын
this video helped me make my game ur such an awesome youtuber!
@GamerM84 жыл бұрын
That's great!! Thank you very much 😊👍
@crack_soda4 жыл бұрын
gamerm8: can literally script anything he desires my dumbass: staring at the peanut butter inside a reese's piece
@phoenix-cs2lw2 жыл бұрын
It worked you earned a brand new sub
@joedk-hs7cu4 жыл бұрын
local player = game.Players.LocalPlayer local character = player.Character or player.Characte rAdded:wait() local humanoid = character:WaitForChild("Humanoid") humanoid.HealthChanged:Connect(function(Damage) script.Parent.Size = UDim2.new(Damage / humanoid.MaxHealth, 0,1,0) end)
@CriminalBlueAnimations.4 жыл бұрын
Bro thanks.
@joedk-hs7cu4 жыл бұрын
@@CriminalBlueAnimations. np
@BloxxingIQ3 жыл бұрын
can u do the kill part one
@hafizomar76143 жыл бұрын
Yay! I needed this! Thanks, Gamer M8!
@robloxdeveolper4084 жыл бұрын
Here is the code for all you lazy people: local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") humanoid.HealthChanged:Connect(function(Damage) script.Parent.Size = UDim2.new(Damage / humanoid.MaxHealth, 0, 1, 0) end) I didnt forget the kill part script oh hell no :
@MinhucNguyen-ks6qn3 жыл бұрын
thanlks :)
@Sohcahtoa143 жыл бұрын
All my progress got deleted after i typed this so tysm
@Griffendunsmore4 жыл бұрын
Best roblox tutorial I ever watched so easy to understand you
@felixc444 жыл бұрын
IT WORKS SO GOOD
@virxi342 жыл бұрын
It doesnt
@I_AspectX2 жыл бұрын
Thanks Gamer M8 You Really Did A Great Job
@GamerM82 жыл бұрын
Thank you!
@wayward17024 жыл бұрын
SCRIPT: local player = game.Player.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") humanoid.HealthChanged:Connect(function(Damage) script.Parent.Size = Udim2.new(Damage / humanoid.MaxHealth, 0, 1, 0) end)
@anintellectual84993 жыл бұрын
Thanks!
@kedaikulinermboksum53473 жыл бұрын
Thank god someone wrote it!
@y3llow473 жыл бұрын
Sorry but the Its UDim2 i think
@KakaosHal2023 жыл бұрын
thx
@3Radiant3 жыл бұрын
Thanks for this bro, this is gonna be so useful for my scp game.
@GamerM83 жыл бұрын
I'm glad I could help!
@coreanime5314 жыл бұрын
Can you make a tutorial for tools where the amount of damage dealt is base on the stats like strength
@scorpionjam70063 жыл бұрын
Nice work!I love your vids,keep up with that voice.I'ts epic
@GamerM83 жыл бұрын
Thank you, I've seen a lot of people say it's annoying, so I'm glad you think it's epic LOL and I'm glad you love my videos too!
@scorpionjam70063 жыл бұрын
@@GamerM8 No problem!
@badmusicproducer_offical Жыл бұрын
thank you so much! im making a ultrakill inspired game and i needed something to make health easier to see!
@KimUchiha132 жыл бұрын
It WORKS this is the first time the script works! Thanks!
@forniteballs55543 жыл бұрын
Yoooo thanks I appreciate it Also for those lazy people out there: local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") humanoid.HealthChanged:Connect(function(Damage) script.Parent.Size = UDim2.new(Damage/humanoid.MaxHealth, 0, 1, 0) end)
@mrdubanime40403 жыл бұрын
THANKS IM ONE OF THOSE
@mrun-gamer90082 жыл бұрын
this helped me in making a boss health GUI instead, Thanks!