im making a combat system and im trying to have it so when a player takes damage a gui will appear that will show the damage they took. Something like this
how would i go about doing this? help is appriciated, thank you for your time
im making a combat system and im trying to have it so when a player takes damage a gui will appear that will show the damage they took. Something like this
how would i go about doing this? help is appriciated, thank you for your time
You can either do the following:
Use a RemoteEvent that fires to the Client whenever they take damage, then you can create a BillboardGui on the client-side that shows the damage they took. (It can be a TextLabel inside the BillboardGui) You can also fire it with how much damage they took.
The lazy one: Just detect whenever the Player’s Humanoid Health changes via a LocalScript, You can store the Health on a Variable, Then check if the new health is lower than the old one, If so, Create the BillboardGui. (The damage can be calculated by subtracting New Health - Old health)
Ill try this and see which one works best, thank you!