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

How do you see how much you hit an player for? [closed]

Asked by 3 years ago

How did roblox Jail Break make the combat system like when you hit an player with a gun it shows how much you hit the player for. is there an already made model for this if not how would you do it?.

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by
imKirda 4491 Moderation Voter Community Moderator
3 years ago

And to check how much for did they hit you can try this:

local oldHumanHealth = human.Health

human:TakeDamage(50)

local currentHealth = human.Health

local damageTaken = currentHealth - oldHumanHealth 

Ad
Log in to vote
0
Answered by 3 years ago

They probably used a BillboardGui. A BillboardGui is like a ScreenGui, except that it displays over a selected object. Changing the Adornee property of the BillboardGui lets you change the object which it is displayed over.