Roblox UI Library and Notification Setup
Roblox UI Library and Notification Setup
local notificationLibrary =
loadstring(game:HttpGet("[Link]
main/xaxas-notification/[Link]"))();
local notifications = [Link]({
NotificationLifetime = 5,
NotificationPosition = "Middle",
TextFont = [Link],
TextColor = [Link](255, 255, 255),
TextSize = 15,
TextStrokeTransparency = 0,
TextStrokeColor = [Link](0, 0, 0)
});
local AkaliNotif =
loadstring(game:HttpGet("[Link]
Scripts/[Link]"))();
local ANotify = [Link];
function Kick(Reason)
[Link]:Kick(Reason)
end
getgenv().NotiMode = "Roblox"
function Notifications(NotiINFO)
if getgenv().NotiMode == "Roblox" then
game:GetService("StarterGui"):SetCore("SendNotification",{
Title = "[Link]", -- Required
Text = NotiINFO, -- Required
Icon = "rbxassetid://15115954522" -- Optional
})
else
if getgenv().NotiMode == "Xaxa" then
notifications:BuildNotificationUI();
notifications:Notify(NotiINFO);
else
if getgenv().NotiMode == "Akali" then
ANotify({
Description = NotiINFO;
Title = "[Link]";
Duration = 1;
});
else
Kick('[Link] | Notification Error, please contact @ finobe on
discord if this continues.')
end
end
end
end
getgenv().Lock = {
Enabled = false,
Mode = "",
Locking = false,
Resolver = false,
LookAt = false,
ViewAt = false,
Target = {Player = nil, Part = nil, Position = nil, Angle = 0},
ClosetPoint = false,
AntiAimViewer = false,
AntiCurve = false,
UnlockOnDeath = false,
ChatAlerts = false,
Visualize = {
Tracer = {false, nil},
Highlight = nil,
Dot = false,
Hitbox = false,
Strafe = false,
Notify = false,
X = 5,
Y = 8,
Z = 5,
TargetUI = nil,
},
Target_Strafe = {false, 0, 0, 0},
Prediction = {
Part = nil, -- Closest bodypart [Make it just {"HumanoidRootPart"} for just
hrp]
Air = false,
Amount = 0.13,
PingBased = false,
},
Drawings = {}
}
getgenv().offset = 0.06
local offset = getgenv().offset
-- Functions and Renders :3
function Lock:GetPlayerStatus(Player)
if not Player then Player = LocalPlayer end
return [Link] and [Link]:FindFirstChild("Humanoid") and
[Link] > 0 and true or false
end
--
function Lock:GetClosestPlayer()
local shortestDistance = [Link]
--
local closestPlayer
for _, Player in pairs(Players:GetPlayers()) do
if Player ~= LocalPlayer and Lock:GetPlayerStatus(Player) then
local pos, OnScreen =
Camera:WorldToViewportPoint([Link])
local magnitude = ([Link](pos.X, pos.Y) -
[Link](viewportSize.X/2, viewportSize.Y/2 +
game:GetService("GuiService"):GetGuiInset().Y)).magnitude
--
if magnitude < shortestDistance and OnScreen then
closestPlayer = Player
shortestDistance = magnitude
end
end
end
return closestPlayer
end
--
function Lock:newDrawing(type, prop)
local obj = [Link](type)
--
if prop then
for i,v in next, prop do
obj[i] = v
end
end
return obj
end
--
function Lock:CalculateAbsolutePosition(Player)
if Lock:GetPlayerStatus(Player) then
local root = [Link]["HumanoidRootPart"]
--
local currentPosition = [Link]
local currentTime = tick()
--
Wait()
--
local newPosition = [Link]
local newTime = tick()
--
local distanceTraveled = (newPosition - currentPosition)
--
local timeInterval = newTime - currentTime
local velocity = distanceTraveled / timeInterval
currentPosition = newPosition
currentTime = newTime
--
return velocity
end
end
--
function Lock:GetTool()
if [Link] and
[Link]:FindFirstChildWhichIsA("Tool") and Lock:GetPlayerStatus()
then
return [Link]:FindFirstChildWhichIsA("Tool")
end
end
--
function Lock:GetTracerOrigin(Origin)
if Origin == "Head" then
return Camera:WorldToViewportPoint([Link])
[Link]:Connect(function()
if [Link] and [Link] then
[Link] = [Link]
[Link] = getgenv().fillcolor
[Link] = getgenv().outlinecolor
else
[Link] = [Link]
end
end)
local gui =
{
targetui = [Link]("ScreenGui"),
Frame = [Link]("Frame"),
ImageLabel = [Link]("ImageLabel"),
LocalScript = [Link]("LocalScript"),
TextLabel = [Link]("TextLabel"),
LocalScript_1 = [Link]("LocalScript"),
Frame_1 = [Link]("Frame"),
TextLabel_1 = [Link]("TextLabel"),
LocalScript_2 = [Link]("LocalScript"),
Frame_2 = [Link]("Frame"),
TextLabel_2 = [Link]("TextLabel"),
LocalScript_3 = [Link]("LocalScript"),
UIGradient = [Link]("UIGradient"),
Shadow = [Link]("ImageLabel"),
Gradient = [Link]("UIGradient"),
}
[Link] = [Link]
[Link] = "targetui"
[Link] = game:GetService("CoreGui")
[Link] = 0
[Link] = [Link](0, 323, 0, 112)
[Link].BorderColor3 = [Link](0, 0, 0)
[Link] = "Frame"
[Link] = [Link](0.414371, 0, 0.854945, 0)
[Link].BackgroundColor3 = [Link](15, 15, 15)
[Link] = [Link]
[Link] = "LocalScript"
[Link] = [Link]
[Link] = 0
[Link] = 0
[Link].BackgroundColor3 = [Link](255, 255, 255)
[Link] = [Link]
[Link] = 13
[Link] = [Link](0.321981, 0, 0.3125, 0)
[Link] = [Link](0, 200, 0, 23)
[Link] = "TextLabel"
[Link].TextColor3 = [Link](200, 200, 200)
[Link].BorderColor3 = [Link](0, 0, 0)
[Link] = "@nil"
[Link] = 1
[Link] = [Link]
[Link] = [Link]
gui.LocalScript_1.Name = "LocalScript"
gui.LocalScript_1.Parent = [Link]
gui.Frame_1.BorderSizePixel = 0
gui.Frame_1.Size = [Link](0, 211, 0, 22)
gui.Frame_1.BorderColor3 = [Link](0, 0, 0)
gui.Frame_1.Name = "Frame"
gui.Frame_1.Position = [Link](0.321981, 0, 0.625, 0)
gui.Frame_1.BackgroundColor3 = [Link](227, 181, 200)
gui.Frame_1.Parent = [Link]
gui.TextLabel_1.TextStrokeTransparency = 0
gui.TextLabel_1.BorderSizePixel = 0
gui.TextLabel_1.BackgroundColor3 = [Link](227, 181, 200)
gui.TextLabel_1.Font = [Link]
gui.TextLabel_1.TextSize = 14
gui.TextLabel_1.Position = [Link](0.0584566, 0, 0, 0)
gui.TextLabel_1.Size = [Link](0, 185, 0, 20)
gui.TextLabel_1.Name = "TextLabel"
gui.TextLabel_1.TextColor3 = [Link](255, 255, 255)
gui.TextLabel_1.BorderColor3 = [Link](0, 0, 0)
gui.TextLabel_1.Text = "Health: nan"
gui.TextLabel_1.BackgroundTransparency = 1
gui.TextLabel_1.Parent = gui.Frame_1
gui.LocalScript_2.Name = "LocalScript"
gui.LocalScript_2.Parent = gui.TextLabel_1
gui.Frame_2.BorderSizePixel = 0
gui.Frame_2.Size = [Link](0, 323, 0, 2)
gui.Frame_2.BorderColor3 = [Link](0, 0, 0)
gui.Frame_2.Name = "Frame"
gui.Frame_2.BackgroundColor3 = [Link](227, 181, 200)
gui.Frame_2.Parent = [Link]
gui.TextLabel_2.TextStrokeTransparency = 0
gui.TextLabel_2.BorderSizePixel = 0
gui.TextLabel_2.BackgroundColor3 = [Link](255, 255, 255)
gui.TextLabel_2.Font = [Link]
gui.TextLabel_2.TextSize = 18
gui.TextLabel_2.Position = [Link](0.321981, 0, 4.07144, 0)
gui.TextLabel_2.Size = [Link](0, 200, 0, 43)
gui.TextLabel_2.Name = "TextLabel"
gui.TextLabel_2.TextColor3 = [Link](255, 255, 255)
gui.TextLabel_2.BorderColor3 = [Link](0, 0, 0)
gui.TextLabel_2.Text = "nil"
gui.TextLabel_2.BackgroundTransparency = 1
gui.TextLabel_2.TextXAlignment = [Link]
gui.TextLabel_2.Parent = gui.Frame_2
gui.LocalScript_3.Name = "LocalScript"
gui.LocalScript_3.Parent = gui.TextLabel_2
[Link] = "UIGradient"
[Link] = [Link]{ [Link](0,
[Link](50, 50, 50)), [Link](1, [Link](170, 170,
170)) }
[Link] = 270
[Link] = [Link]
[Link] = "Gradient"
[Link] = 90
[Link] = [Link]
[Link] = false
for _, v in pairs([Link]:GetChildren()) do
if v:IsA("Script") and [Link] ~= "Health" and [Link] ~= "Sound" and
v:FindFirstChild("LocalScript") then
v:Destroy()
end
end
[Link]:Connect(function(char)
repeat
wait()
until [Link]
[Link]:Connect(function(child)
if child:IsA("Script") then
wait(0.1)
if child:FindFirstChild("LocalScript") then
[Link]:FireServer()
end
end
end)
end)
Player["CharacterAdded"]:connect(function(v)
repeat wait() until v and v:FindFirstChild("Humanoid")
for _, v in pairs([Link]:GetChildren()) do
if v:IsA("Script") and [Link] ~= "Health" and [Link] ~= "Sound" and
v:FindFirstChild("LocalScript") then
v:Destroy()
end
end
[Link]:Connect(function(char)
repeat
wait()
until [Link]
[Link]:Connect(function(child)
if child:IsA("Script") then
wait(0.1)
if child:FindFirstChild("LocalScript") then
[Link]:FireServer()
end
end
end)
end)
end)
getgenv().AimPart = "HumanoidRootPart"
getgenv().OldAimPart = "HumanoidRootPart"
getgenv().AimlockKey = "q"
getgenv().AimRadius = 5
getgenv().ThirdPerson = true
getgenv().FirstPerson = true
getgenv().TeamCheck = false
getgenv().PredictMovement = false
getgenv().PredictionVelocity = 7.22
getgenv().Smoothness = false
getgenv().SmoothnessAmount = 1
getgenv().EasingStyle = [Link]
getgenv().Notifications = false
getgenv().AutoPrediction = false
getgenv().UnlockOnDeath = false
getgenv().Shake = false
getgenv().ShakePower = 0
getgenv().WorldToViewportPoint = function(P)
return Camera:WorldToViewportPoint(P)
end
getgenv().WorldToScreenPoint = function(P)
return [Link](Camera, P)
end
getgenv().GetObscuringObjects = function(T)
if T and T:FindFirstChild(getgenv().AimPart) and Client and
[Link]:FindFirstChild("Head") then
local RayPos = workspace:FindPartOnRay(RNew(
T[getgenv().AimPart].Position, [Link])
)
if RayPos then return RayPos:IsDescendantOf(T) end
end
end
getgenv().GetNearestTarget = function()
local players = {}
local PLAYER_HOLD = {}
local DISTANCES = {}
for i, v in pairs(Players:GetPlayers()) do
if v ~= Client then
[Link](players, v)
end
end
for i, v in pairs(players) do
if [Link] ~= nil then
local AIM = [Link]:FindFirstChild("Head")
if getgenv().TeamCheck == true and [Link] ~= [Link] then
local DISTANCE = ([Link]:FindFirstChild("Head").Position -
[Link].p).magnitude
local RAY = [Link]([Link].p,
([Link].p - [Link].p).unit * DISTANCE)
local HIT,POS = [Link]:FindPartOnRay(RAY, [Link])
local DIFF = [Link]((POS - [Link]).magnitude)
PLAYER_HOLD[[Link] .. i] = {}
PLAYER_HOLD[[Link] .. i].dist= DISTANCE
PLAYER_HOLD[[Link] .. i].plr = v
PLAYER_HOLD[[Link] .. i].diff = DIFF
[Link](DISTANCES, DIFF)
elseif getgenv().TeamCheck == false and [Link] == [Link] then
local DISTANCE = ([Link]:FindFirstChild("Head").Position -
[Link].p).magnitude
local RAY = [Link]([Link].p,
([Link].p - [Link].p).unit * DISTANCE)
local HIT,POS = [Link]:FindPartOnRay(RAY, [Link])
local DIFF = [Link]((POS - [Link]).magnitude)
PLAYER_HOLD[[Link] .. i] = {}
PLAYER_HOLD[[Link] .. i].dist= DISTANCE
PLAYER_HOLD[[Link] .. i].plr = v
PLAYER_HOLD[[Link] .. i].diff = DIFF
[Link](DISTANCES, DIFF)
end
end
end
for i, v in pairs(PLAYER_HOLD) do
if [Link] == L_DISTANCE then
return [Link]
end
end
return nil
end
[Link]:Connect(function()
if getgenv().ThirdPerson == true and getgenv().FirstPerson == true then
if ([Link].p - [Link].p).Magnitude > 1 or
([Link].p - [Link].p).Magnitude <= 1 then
CanNotify = true
else
CanNotify = false
end
elseif getgenv().ThirdPerson == true and getgenv().FirstPerson == false then
if ([Link].p - [Link].p).Magnitude > 1 then
CanNotify = true
else
CanNotify = false
end
elseif getgenv().ThirdPerson == false and getgenv().FirstPerson == true then
if ([Link].p - [Link].p).Magnitude <= 1 then
CanNotify = true
else
CanNotify = false
end
end
if Aimlock == true and MousePressed == true then
if AimlockTarget and [Link] and
[Link]:FindFirstChild(getgenv().AimPart) then
if getgenv().FirstPerson == true then
if CanNotify == true then
if getgenv().PredictMovement == true then
if getgenv().Smoothness == true then
--// The part we're going to lerp/smoothen \\--
local Main = CF([Link].p,
[Link][getgenv().AimPart].Position +
[Link][getgenv().AimPart].Velocity/PredictionVelocity)
end)
-- target ui
if [Link] then
[Link] = "@"..tostring([Link])
gui.TextLabel_2.Text = [Link]
[Link]:Connect(function()
gui.TextLabel_1.Text = "Health:
"..tostring([Link])
end)
ColorToggle:AddColorpicker([Link](255,0,255), function(ztx)
[Link] = ztx
end)
aimbotVisuals:AddDropdown("Hitbox Material", {"ForceField", "Neon", "Glass"},
"ForceField", false, function(dropdown)
[Link] = dropdown
end)
aimbotVisuals:AddSlider("Hitbox Size", 0, 4, 15, 1, function(State)
[Link].X = State
[Link].Y = State
[Link].Z = State
end)
local highlightToggle = aimbotVisuals:AddToggle("Highlight", false, function(e)
[Link] = e
end)
highlightToggle:AddColorpicker([Link](255,0,255), function(ztx)
getgenv().fillcolor = ztx
end)
highlightToggle:AddColorpicker([Link](0,0,0), function(ztx)
getgenv().outlinecolor = ztx
end)
dotToggle:AddColorpicker([Link](255,0,255), function(ztx)
[Link] = ztx
end)
local tracerToggle = aimbotVisuals:AddToggle("Tracer", false, function(e)
[Link][1] = e
end)
tracerToggle:AddColorpicker([Link](255,0,255), function(ztx)
[Link] = ztx
end)
[Link]:Connect(function(FPS)
if [Link] and [Link] ~=
NewVector2(viewportSize.X/2, viewportSize.Y/2 + offset) then
[Link] = NewVector2(viewportSize.X/2, viewportSize.Y/2
+ offset)
end
--
if [Link] and [Link] and
Lock:GetPlayerStatus([Link]) then
if [Link] == "Silent Aim" then
[Link] = Lock:GetClosestPlayer()
end
--
if [Link] and [Link] then
[Link] = Lock:GetPlayerStatus([Link])
[Link] = [Link] and
Lock:CalculateAbsolutePosition([Link]) or
[Link]
--[[ louls
if ping < 30 then
[Link] = 0.1099
elseif
ping < 35 then
[Link] = 0.2294
elseif
ping < 40 then
[Link] = 0.1195
elseif
ping < 45 then
[Link] = 0.1207
elseif
ping < 50 then
[Link] = 0.1219
elseif
ping < 55 then
[Link] = 0.1228
elseif
ping < 60 then
[Link] = 0.1237
elseif
ping < 65 then
[Link] = 0.1264
elseif
ping < 70 then
[Link] = 0.1291
elseif
ping < 75 then
[Link] = 0.1314
elseif
ping < 80 then
[Link] = 0.1337
elseif
ping < 85 then
[Link] =
0.1343
elseif
ping < 90 then
[Link]
= 0.1349
elseif
ping < 95 then
[Link] = 0.1363
elseif
ping < 100 then
[Link] = 0.1378
elseif
ping < 105 then
[Link] = 0.1418
elseif
ping < 110
then
[Link] = 0.1459
]]
-- sosa
sets
if ping <
10 then
[Link] = 0.1112873
elseif ping
< 20 then
[Link] = 0.1211928
elseif ping
< 30 then
[Link] = 0.1254263
elseif ping
< 40 then
[Link] = 0.1314356
elseif ping
< 50 then
[Link] = 0.1368384
elseif ping
< 60 then
[Link] = 0.12671983
elseif ping
< 70 then
[Link] = 0.12862974
elseif ping
< 80 then
[Link] = 0.13581963
elseif ping
< 90 then
[Link] = 0.13873952
elseif ping
< 100 then
[Link] = 0.14173456
elseif ping
< 110 then
[Link] = 0.14362652
elseif ping
< 120 then
[Link] = 0.14683943
elseif ping
< 130 then
[Link] = 0.15175864
elseif ping
< 140 then
[Link] = 0.15382643
elseif ping
< 150 then
[Link] = 0.15873582
end
end
if
Lock.Target_Strafe[1] then
[Link] += Lock.Target_Strafe[2]
[Link] =
[Link]
*
NewAngle(0, Rad([Link]), 0)
*
NewCFrame(0, Lock.Target_Strafe[4], Lock.Target_Strafe[3])
end
--
if [Link]
then
[Link] = false
local
NearestPos = [Link]([Link],
[Link]([Link].X,
[Link].Y,
[Link].Z))
[Link]:SetPrimaryPartCFrame(NearestPos)
end
--
if
[Link] then
local
Position1, OnScreen = Camera:WorldToViewportPoint([Link])
local
MousePosition = NewVector2(viewportSize.X/2, viewportSize.Y/2 +
game:GetService("GuiService"):GetGuiInset().Y)
local Magn
= (MousePosition - NewVector2(Position1.X, Position1.Y)).Magnitude
--
if
[Link] then
[Link] = NewCFrame([Link])
[Link] = NewCFrame(999,9999,999)
end
--
if OnScreen
then
if
[Link][1] then
[Link] = true
--
if
Lock:GetTracerOrigin([Link][2]) ~= nil then
--
if Position2 then
end
end
[Link] = [Link](Position1.X, Position1.Y)
end
--
if
[Link] then
[Link] = true
[Link] = false
end
--
if
[Link] and Lock.Target_Strafe[1] then
[Link] = true
[Link] = [Link]
end
else
[Link] = false
[Link] = false
[Link] = false
end
end
end
end
end)
[Link] = SilentArg
--
if
[Link] == true then
return (k
== "Hit" and NewCFrame(SilentArg))
end
end
return Old(self, k)
end))