Advertisement

About this script

-- RIVALS HUB | KILL EVENT NOTIFICATIONS

-- Delta executor | Standalone UI demo

local Players = game:GetService("Players")

local TweenService = game:GetService("TweenService")

local player = Players.LocalPlayer

local pg = player:WaitForChild("PlayerGui")

local old = pg:FindFirstChild("RivalsKillNotifications")

if old then old:Destroy() end

local gui = Instance.new("ScreenGui")

gui.Name = "RivalsKillNotifications"

gui.ResetOnSpawn = false

gui.IgnoreGuiInset = true

gui.Parent = pg

local cyan = Color3.fromRGB(0, 245, 255)

local purple = Color3.fromRGB(155, 90, 255)

local container = Instance.new("Frame")

container.Name = "NotificationContainer"

container.Size = UDim2.fromOffset(300, 300)

container.Position = UDim2.new(1, -320, 0, 90)

container.BackgroundTransparency = 1

container.Parent = gui

local layout = Instance.new("UIListLayout")

layout.Padding = UDim.new(0, 9)

layout.SortOrder = Enum.SortOrder.LayoutOrder

layout.VerticalAlignment = Enum.VerticalAlignment.Top

layout.Parent = container

local counter = 0

local function Notify(titleText, messageText, duration)

counter += 1

local card = Instance.new("Frame")

card.Name = "KillEvent_" .. counter

card.Size = UDim2.new(1, 0, 0, 68)

card.BackgroundColor3 = Color3.fromRGB(14, 19, 34)

card.BackgroundTransparency = 0.08

card.BorderSizePixel = 0

card.LayoutOrder = -counter

card.Parent = container

Instance.new("UICorner", card).CornerRadius = UDim.new(0, 12)

local border = Instance.new("UIStroke")

border.Color = cyan

border.Thickness = 1.3

border.Parent = card

local accent = Instance.new("Frame")

accent.Size = UDim2.new(0, 4, 1, -18)

accent.Position = UDim2.fromOffset(8, 9)

accent.BackgroundColor3 = cyan

accent.BorderSizePixel = 0

accent.Parent = card

Instance.new("UICorner", accent).CornerRadius = UDim.new(1, 0)

local title = Instance.new("TextLabel")

title.Position = UDim2.fromOffset(22, 9)

title.Size = UDim2.new(1, -32, 0, 23)

title.BackgroundTransparency = 1

title.Text = "✦ " .. titleText

title.TextColor3 = cyan

title.TextSize = 14

title.Font = Enum.Font.GothamBold

title.TextXAlignment = Enum.TextXAlignment.Left

title.Parent = card

local message = Instance.new("TextLabel")

message.Position = UDim2.fromOffset(22, 34)

message.Size = UDim2.new(1, -32, 0, 22)

message.BackgroundTransparency = 1

message.Text = messageText

message.TextColor3 = Color3.fromRGB(220, 228, 242)

message.TextSize = 12

message.Font = Enum.Font.GothamMedium

message.TextXAlignment = Enum.TextXAlignment.Left

message.Parent = card

-- Slide in

card.Position = UDim2.fromOffset(320, 0)

TweenService:Create(card, TweenInfo.new(

0.35, Enum.EasingStyle.Quint, Enum.EasingDirection.Out

), {

Position = UDim2.fromOffset(0, 0)

}):Play()

task.spawn(function()

local durationValue = math.max(1, tonumber(duration) or 3)

task.wait(durationValue)

if not card.Parent then return end

local out = TweenService:Create(card, TweenInfo.new(0.25), {

BackgroundTransparency = 1,

Position = UDim2.fromOffset(320, 0)

})

for _, obj in ipairs(card:GetDescendants()) do

if obj:IsA("TextLabel") then

TweenService:Create(obj, TweenInfo.new(0.25), {

TextTransparency = 1

}):Play()

elseif obj:IsA("UIStroke") then

TweenService:Create(obj, TweenInfo.new(0.25), {

Transparency = 1

}):Play()

end

end

out:Play()

out.Completed:Wait()

card:Destroy()

end)

end

-- Demo notifications so you can test the animation

Notify("RIVALS HUB", "Notification system ready!", 3)

-- Call this function elsewhere in this script to display your own:

-- Notify("ELIMINATION", "Event detected!", 3)

-- Notify("STREAK", "3 events in a row!", 3)

print("RIVALS HUB: Notification UI loaded!")

Features

  • Kill Event Notifications