How to implement display names into the creator tag

I have a gui that shows if a player killed another.

I want it so instead of the usernames it will show the player’s displayname

the weapon has this value called creator which it tags a humaniod

function TagHumanoid(humanoid, player)
   local Creator_Tag = Instant("ObjectValue")
   Creator_Tag.Name = "creator"
   Creator_Tag.Value = player
   Services.Debris:AddItem(Creator_Tag, 2)
   Creator_Tag.Parent = humanoid
end)

TagHumanoid(Humanoid,Creator)

https://developer.roblox.com/en-us/api-reference/property/Player/DisplayName

I tried player.DisplayName it didn’t work

how so?
it should give the player’s display name

i did Creator_Tag.Value = player.DisplayName and it didn’t work, I will do some testing to see if there is an error

isn’t this supposed to be

Instance.new("ObjectValue")

if the tag is an object value then that won’t work

try making it a StringValue instead

1 Like

wow, I didn’t know it was that simple :rofl:
Thanks a lot :slight_smile:

1 Like