What is this function for "tagging players" used for?

I don’t know if this is a dumb question or anything, but I was looking through my old games and found this piece of code that caught my eye:

unknown

I assume that this is used to check if a weapon or something was working, but I’m not sure. The actual tag that the function creates isn’t exactly used for anything after it’s called, so that’s why I am confused.

In ancient days of yore, the toolbox actually came with a set of default Roblox models and assets - Red Team Spawn Point, Neutral Spawn Point, etc. Also a leaderboard script. Roblox’s leaderboard script utilized a ‘creator’ tag to identify who dealt the killing blow. That is how all Roblox gears are designed to function. So default Roblox leaderboard, Roblox gears, seamless integration. Also somehow it would integrate with your profile to say how many kills you got on the website. I think that was handled backend and not by Lua, but I was just learning the basics of Lua when everyone forgot about that.

A lot of newer scripts still use the system just because though it isn’t the greatest standard, it is still a standard and it is compatible with lots of Roblox items and free model guns.

1 Like

I’m pretty sure that it puts an ObjectValue representing who shot who, for stats…