Item Stealing/Status System

Hello! I want to create a system where you can steal items from a player. Basicly, if a player picks up an item, a health bar appears above it, and if you hit the player with a weapon, the health bar for the item is effected. The issue I am experiencing is that I don’t know how I would make the item’s health bar go down when the player is hit(without actually damaging the player), and the most effective way to pull it off. Thanks for any feedback! :slight_smile:

2 Likes

use a billboard GUI with a green label over a red label and an int value inside the item and whenever u hit the player minus the damage from the int value and then reduce the size of the green label accordingly

1 Like

I’ve created a health system but how would I check if the player is holding an item so I can damage it?

1 Like

put a folder in the players character to hold all the items and you can then check if theres any items by doing if Folder:GetChildren[1] ~= nil then – theres at least an item then you can loop through them and make all the health changes

btw an easy way to keep a folder in the player is put a folder in the starterpack so that it will just always be there saves scripting

1 Like

It works! Thank you for the solution!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.