Advertisement
Joriangames

KillFeedHandler LocalScript

Mar 31st, 2021
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local killedEvent = game.ReplicatedStorage.KilledEvent
  2. local TextLabel = script.MurderLabel
  3.  
  4. killedEvent.OnClientEvent:Connect(function(plr, KillerName)
  5.     if plr and KillerName then
  6.         print(plr.Name.." has been killed by "..KillerName)
  7.         local newLabel = TextLabel:Clone()
  8.         newLabel.Text = KillerName.." > "..plr.Name
  9.         newLabel.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui").KillFeed.Frame
  10.         wait(10)
  11.         newLabel:Destroy()
  12.     end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement