Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.ReplicatedStorage.ReplicatedData.Common.KillNotiEvent.OnClientEvent:Connect(function(Killer, Victim)
- if not KillFeedEnabled then return end
- local tool = workspace[Killer.Name]:FindFirstChildWhichIsA("Tool")
- if Player == Killer then
- local Template = PlayerInterface.KillNoti.Template:Clone()
- Template.Victim.Text = Victim.Name:upper()
- Template.Victim.TextColor3 = Victim.TeamColor.Color
- Template.Parent = PlayerInterface.KillNoti
- Template.Visible = true
- coroutine.resume(coroutine.create(function()
- wait(2)
- if Template.Parent then
- TweenService:Create(Template.Victim, FadeEffect, {TextTransparency = 1}):Play()
- TweenService:Create(Template.KILLED, FadeEffect, {TextTransparency = 1}):Play()
- end
- wait(3)
- if Template and Template.Parent then
- Template:Remove()
- end
- end))
- end
- local Template = PlayerInterface.Feed.Template:Clone()
- Template.Victim.Text = Victim.Name:upper()
- Template.Victim.TextColor3 = Victim.TeamColor.Color
- Template.Killer.Text = Killer.Name:upper()
- Template.Killer.TextColor3 = Killer.TeamColor.Color
- if tool.Name == "Sabre" or tool.Name == "Sword" or tool.Name == "LinkedSword" or tool.Name == "Nitro Sword" then
- Template.Killed.Sword.Visible = true
- else
- Template.Killed.Gun.Visible = true
- end
- Template.Parent = PlayerInterface.Feed
- Template.Visible = true
- coroutine.resume(coroutine.create(function()
- wait(4)
- if Template.Parent then
- TweenService:Create(Template.Victim, FadeEffect, {TextTransparency = 1}):Play()
- TweenService:Create(Template.Killed.Gun, FadeEffect, {ImageTransparency = 1}):Play()
- TweenService:Create(Template.Killed.Sword, FadeEffect, {ImageTransparency = 1}):Play()
- TweenService:Create(Template.Killer, FadeEffect, {TextTransparency = 1}):Play()
- end
- wait(3)
- if Template and Template.Parent then
- Template:Remove()
- end
- end))
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement