Advertisement
Guest User

Untitled

a guest
Apr 6th, 2020
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.86 KB | None | 0 0
  1. game.ReplicatedStorage.ReplicatedData.Common.KillNotiEvent.OnClientEvent:Connect(function(Killer, Victim)
  2.     if not KillFeedEnabled then return end
  3.     local tool = workspace[Killer.Name]:FindFirstChildWhichIsA("Tool")
  4.     if Player == Killer then
  5.         local Template = PlayerInterface.KillNoti.Template:Clone()
  6.         Template.Victim.Text = Victim.Name:upper()
  7.         Template.Victim.TextColor3 = Victim.TeamColor.Color
  8.         Template.Parent = PlayerInterface.KillNoti
  9.         Template.Visible = true
  10.         coroutine.resume(coroutine.create(function()
  11.             wait(2)
  12.             if Template.Parent then
  13.                 TweenService:Create(Template.Victim, FadeEffect, {TextTransparency = 1}):Play()
  14.                 TweenService:Create(Template.KILLED, FadeEffect, {TextTransparency = 1}):Play()
  15.             end
  16.             wait(3)
  17.             if Template and Template.Parent then
  18.                 Template:Remove()
  19.             end
  20.         end))
  21.     end
  22.     local Template = PlayerInterface.Feed.Template:Clone()
  23.     Template.Victim.Text = Victim.Name:upper()
  24.     Template.Victim.TextColor3 = Victim.TeamColor.Color
  25.     Template.Killer.Text = Killer.Name:upper()
  26.     Template.Killer.TextColor3 = Killer.TeamColor.Color
  27.     if tool.Name == "Sabre" or tool.Name == "Sword" or tool.Name == "LinkedSword" or tool.Name == "Nitro Sword" then
  28.         Template.Killed.Sword.Visible = true
  29.     else
  30.         Template.Killed.Gun.Visible = true
  31.     end
  32.     Template.Parent = PlayerInterface.Feed
  33.     Template.Visible = true
  34.     coroutine.resume(coroutine.create(function()
  35.         wait(4)
  36.         if Template.Parent then
  37.             TweenService:Create(Template.Victim, FadeEffect, {TextTransparency = 1}):Play()
  38.             TweenService:Create(Template.Killed.Gun, FadeEffect, {ImageTransparency = 1}):Play()
  39.             TweenService:Create(Template.Killed.Sword, FadeEffect, {ImageTransparency = 1}):Play()
  40.             TweenService:Create(Template.Killer, FadeEffect, {TextTransparency = 1}):Play()
  41.         end
  42.         wait(3)
  43.         if Template and Template.Parent then
  44.             Template:Remove()
  45.         end
  46.     end))
  47. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement