Hello so how do I make so that the textColor of the killer is his teamcolor and both as the plr
local killerEvent = game.ReplicatedStorage.KillEvent
local textLabel = script.Parent
killerEvent.OnClientEvent:Connect(function(plr,killername)
if plr and killername then
wait(1)
local newLabel = textLabel:Clone()
newLabel.Text = killername.." > "..plr.Name
newLabel.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui").KillFeed.Frame
wait(1)
newLabel:Destroy()
end
end)
First you would need to instead make the killername arg to the killer player which then you would need to add .Name to some parts
To get the color3 of their teams you would need to do this
plr.Team.TeamColor.color
and the same for the killer
Then you would need to enable rich text on your text label in able to make the string have two different colors and to do that i advice you look into tutorials on rich text
This won’t work, i highly recommend watching some tutorials on scripting before going into stuff like this as there is alot to explain and i am currently on mobile
I recommend alvinBlox or TheDevKing - they have good tutorials