0% found this document useful (0 votes)
212 views13 pages

Roblox GUI Script for Aiming and Notifications

Uploaded by

suhankarki19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
212 views13 pages

Roblox GUI Script for Aiming and Notifications

Uploaded by

suhankarki19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

game.

StarterGui:SetCore(
"SendNotification",
{
Title = "i own suhan he suck af",
Text = "Loading . . .",
}
)
wait(1)
[Link]:SetCore(
"SendNotification",
{
Title = "stealing your info!",
Text = "Authenticating..",
}
)
wait(1)
[Link]:SetCore(
"SendNotification",
{
Title = "almost done..",
Text = "Setting Up...",
}
)
wait(1)
[Link]:SetCore(
"SendNotification",
{
Title = "ratted!",
Text = "-vtktracker",
}
)
wait(3)

local Library =
loadstring(game:HttpGet("[Link]
cattoware/main/[Link]"))()

local NotifyLibrary =
loadstring(game:HttpGet("[Link]
Scripts/[Link]"))()
local Notify = [Link]
[Link] = [Link](45, 205, 50)
[Link].accentcolor2 = [Link](45, 205, 50)

local Window = Library:CreateWindow("Grave's Paid Gui", [Link](492, 598),


[Link].P)

local AimingTab = Window:CreateTab("Aiming")

local MiscTab = Window:CreateTab("Misc")

local sector1 = AimingTab:CreateSector("Targeting", "left")

sector1:AddButton("Target Aim", function()


local Settings = {
rewrittenmain = {
Enabled = true,
Key = "c",
DOT = true,
AIRSHOT = true,
NOTIF = true,
AUTOPRED = true,
FOV = [Link],
RESOVLER = false
}
}

local SelectedPart = "HumanoidRootPart"


local Prediction = true
local PredictionValue = 0.12642392

local AnchorCount = 0
local MaxAnchor = 50

local CC = game:GetService"Workspace".CurrentCamera
local Plr;
local enabled = false
local accomidationfactor = 0.15311221541002
local mouse = [Link]:GetMouse()
local placemarker = [Link]("Part", [Link])

function makemarker(Parent, Adornee, Color, Size, Size2)


local e = [Link]("BillboardGui", Parent)
[Link] = "PP"
[Link] = Adornee
[Link] = [Link](Size, Size2, Size, Size2)
[Link] = [Link]
local a = [Link]("Frame", e)
if [Link] == true then
[Link] = [Link](1, 0, 1, 0)
else
[Link] = [Link](0, 0, 0, 0)
end
if [Link] == true then
[Link] = 0
[Link] = 0
else
[Link] = 1
[Link] = 1
end
a.BackgroundColor3 = Color
local g = [Link]("UICorner", a)
if [Link] == false then
[Link] = [Link](0, 0)
else
[Link] = [Link](1, 1)
end
return(e)
end

local data = [Link]:GetPlayers()


function noob(player)
local character
repeat wait() until [Link]
local handler = makemarker(guimain,
[Link]:WaitForChild(SelectedPart), [Link](0, 0, 0), 0.5, 3)
[Link] = [Link]
[Link]:connect(function(Char) [Link] =
Char:WaitForChild(SelectedPart) end)

spawn(function()
while wait() do
if [Link] then
end
end
end)
end

for i = 1, #data do
if data[i] ~= [Link] then
noob(data[i])
end
end

[Link]:connect(function(Player)
noob(Player)
end)

spawn(function()
[Link] = true
[Link] = false
if [Link] == true then
[Link] = [Link](10, 10, 10)
else
[Link] = [Link](5, 5, 5)
end
[Link] = 0.75
if [Link] then
makemarker(placemarker, placemarker, [Link](4, 242, 107), 3, 0)
end
end)

[Link]:GetMouse().KeyDown:Connect(function(k)
if k == [Link] and [Link] then
if enabled == true then
enabled = false
if [Link] == true then
Plr = getClosestPlayerToCursor()
[Link]:SetCore("SendNotification", {
Title = "";
Text = "Unlocked!",
Duration = 1
})
end
else
Plr = getClosestPlayerToCursor()
enabled = true
if [Link] == true then

[Link]:SetCore("SendNotification", {
Title = "Wuss Owns You";
Text = "Target:
"..tostring([Link]),
Duration = 2
})

end
end
end
end)

function getClosestPlayerToCursor()
local closestPlayer
local shortestDistance = [Link]

for i, v in pairs([Link]:GetPlayers()) do
if v ~= [Link] and [Link] and
[Link]:FindFirstChild("Humanoid") and [Link] ~= 0 and
[Link]:FindFirstChild("HumanoidRootPart") then
local pos =
CC:WorldToViewportPoint([Link])
local magnitude = ([Link](pos.X, pos.Y) - [Link](mouse.X,
mouse.Y)).magnitude
if magnitude < shortestDistance then
closestPlayer = v
shortestDistance = magnitude
end
end
end
return closestPlayer
end

local pingvalue = nil;


local split = nil;
local ping = nil;

game:GetService"RunService".Stepped:connect(function()
if enabled and [Link] ~= nil and
[Link]:FindFirstChild("HumanoidRootPart") then
[Link] =
[Link]([Link]+
([Link]*accomidationfactor))
else
[Link] = [Link](0, 9999, 0)
end
if [Link] == true then
pingvalue = game:GetService("Stats").[Link]["Data
Ping"]:GetValueString()
split = [Link](pingvalue,'(')
ping = tonumber(split[1])
if ping < 130 then
PredictionValue = 0.1518
elseif ping < 125 then
PredictionValue = 0.14988
elseif ping < 110 then
PredictionValue = 0.14553132132121255556666672
elseif ping < 105 then
PredictionValue = 0.1409340
elseif ping < 90 then
PredictionValue = 0.13623132
elseif ping < 80 then
PredictionValue = 0.131314253678192031927365421456789331
elseif ping < 70 then
PredictionValue = 0.1424567
elseif ping < 60 then
PredictionValue = 0.14132646
elseif ping < 50 then
PredictionValue = 0.118532
elseif ping < 40 then
PredictionValue = 0.12132
elseif ping < 30 then
PredictionValue = 0.14231
elseif ping < 20 then
PredictionValue = 0.13
elseif ping < 10 then
PredictionValue = 0.09
end
end
end)

local mt = getrawmetatable(game)
local old = mt.__namecall
setreadonly(mt, false)
mt.__namecall = newcclosure(function(...)
local args = {...}
if enabled and getnamecallmethod() == "FireServer" and args[2] ==
"UpdateMousePos" and [Link] and [Link] ~= nil then

-- args[3] = [Link]+
([Link]*accomidationfactor)
--[[
if [Link] == true then
if [Link][[Link]].Humanoid:GetState() ==
[Link] then --
[Link]:WaitForChild("Humanoid"):GetState() ==
[Link]

--// Airshot
args[3] = [Link]+
([Link]*PredictionValue)

else
args[3] = [Link]+
([Link]*PredictionValue)

end
else
args[3] = [Link]+
([Link]*PredictionValue)
end
]]
if Prediction == true then

args[3] = [Link][SelectedPart].Position+
([Link][SelectedPart].Velocity*PredictionValue)

else

args[3] = [Link][SelectedPart].Position
end

return old(unpack(args))
end
return old(...)
end)

game:GetService("RunService").RenderStepped:Connect(function()
if [Link] == true and [Link] ~= nil and
enabled and [Link] then
if [Link] == true and enabled and [Link] ~=
nil then

if [Link][[Link]].Humanoid:GetState() ==
[Link] then --
[Link]:WaitForChild("Humanoid"):GetState() ==
[Link]

--// Airshot

--// Anchor Check

if [Link] ~= nil and [Link]


== true then
AnchorCount = AnchorCount + 1
if AnchorCount >= MaxAnchor then
Prediction = false
wait(2)
AnchorCount = 0;
end
else
Prediction = true
AnchorCount = 0;
end

SelectedPart = "LeftFoot"

else
--// Anchor Check

if [Link] ~= nil and [Link]


== true then
AnchorCount = AnchorCount + 1
if AnchorCount >= MaxAnchor then
Prediction = false
wait(2)
AnchorCount = 0;
end
else
Prediction = true
AnchorCount = 0;
end

SelectedPart = "HumanoidRootPart"

end
else
--// Anchor Check

if [Link] ~= nil and [Link]


== true then
AnchorCount = AnchorCount + 1
if AnchorCount >= MaxAnchor then
Prediction = false
wait(2)
AnchorCount = 0;
end
else
Prediction = true
AnchorCount = 0;
end

SelectedPart = "HumanoidRootPart"
end

else
SelectedPart = "HumanoidRootPart"
end
end)
end)

local sector1 = AimingTab:CreateSector("Wuss Camlock", "right")

sector1:AddButton("Wuss's Paid Camlock (Q)", function()


getgenv().OldAimPart = "Head"
getgenv().AimPart = "HumanoidRootPart" -- For R15 Games: {UpperTorso, LowerTorso,
HumanoidRootPart, Head} | For R6 Games: {Head, Torso, HumanoidRootPart}
getgenv().AimlockKey = "q"
getgenv().AimRadius = 100 -- How far away from someones character you want to
lock on at
getgenv().ThirdPerson = true
getgenv().FirstPerson = true
getgenv().TeamCheck = false -- Check if Target is on your Team (True means it
wont lock onto your teamates, false is vice versa) (Set it to false if there are no
teams)
getgenv().PredictMovement = true -- Predicts if they are moving in fast
velocity (like jumping) so the aimbot will go a bit faster to match their speed
getgenv().PredictionVelocity = 7.8
getgenv().CheckIfJumped = true
getgenv().Smoothness = false
getgenv().SmoothnessAmount = 0.5

local Players, Uis, RService, SGui = game:GetService"Players",


game:GetService"UserInputService", game:GetService"RunService",
game:GetService"StarterGui";
local Client, Mouse, Camera, CF, RNew, Vec3, Vec2 = [Link],
[Link]:GetMouse(), [Link], [Link], [Link],
[Link], [Link];
local Aimlock, MousePressed, CanNotify = true, false, false;
local AimlockTarget;
local OldPre;

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()
-- Credits to whoever made this, i didnt make it, and my own mouse2plr
function kinda sucks
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
if unpack(DISTANCES) == nil then
return nil
end

local L_DISTANCE = [Link]([Link](unpack(DISTANCES)))


if L_DISTANCE > getgenv().AimRadius then
return nil
end

for i, v in pairs(PLAYER_HOLD) do
if [Link] == L_DISTANCE then
return [Link]
end
end
return nil
end

[Link]:Connect(function(a)
if not (Uis:GetFocusedTextBox()) then
if a == AimlockKey and AimlockTarget == nil then
pcall(function()
if MousePressed ~= true then MousePressed = true end
local Target;Target = GetNearestTarget()
if Target ~= nil then
AimlockTarget = Target
end
end)
elseif a == AimlockKey and AimlockTarget ~= nil then
if AimlockTarget ~= nil then AimlockTarget = nil end
if MousePressed ~= false then
MousePressed = false
end
end
end
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)

--// Making it work \\--


[Link] = [Link]:Lerp(Main,
getgenv().SmoothnessAmount, [Link], [Link])
else
[Link] = CF([Link].p,
[Link][getgenv().AimPart].Position +
[Link][getgenv().AimPart].Velocity/PredictionVelocity)
end
elseif getgenv().PredictMovement == false then
if getgenv().Smoothness == true then
--// The part we're going to lerp/smoothen \\--
local Main = CF([Link].p,
[Link][getgenv().AimPart].Position)

--// Making it work \\--


[Link] = [Link]:Lerp(Main,
getgenv().SmoothnessAmount, [Link], [Link])
else
[Link] = CF([Link].p,
[Link][getgenv().AimPart].Position)
end
end
end
end
end
end
if CheckIfJumped == true then
if [Link] ==
[Link] then

getgenv().AimPart = "UpperTorso"
else
getgenv().AimPart = getgenv().OldAimPart

end
end
end)
end)

local sector8 = MiscTab:CreateSector("Misc Stuff", "left")

sector8:AddButton("Fly (X)", function()


local plr = [Link]
local mouse = plr:GetMouse()
localplayer = plr

if workspace:FindFirstChild("Core") then
[Link]:Destroy()
end

local Core = [Link]("Part")


[Link] = "Core"
[Link] = [Link](0.05, 0.05, 0.05)

spawn(function()
[Link] = workspace
local Weld = [Link]("Weld", Core)
Weld.Part0 = Core
Weld.Part1 = [Link]
Weld.C0 = [Link](0, 0, 0)
end)

workspace:WaitForChild("Core")

local torso = [Link]


flying = true
local speed=10
local keys={a=false,d=false,w=false,s=false}
local e1
local e2
local function start()
local pos = [Link]("BodyPosition",torso)
local gyro = [Link]("BodyGyro",torso)
[Link]="EPIXPOS"
[Link] = [Link]([Link], [Link], [Link])
[Link] = [Link]
[Link] = [Link](9e9, 9e9, 9e9)
[Link] = [Link]
repeat
wait()
[Link]=true
local new=[Link] - [Link].p + [Link]
if not keys.w and not keys.s and not keys.a and not keys.d then
speed=5
end
if keys.w then
new = new + [Link] *
speed
speed=speed+0
end
if keys.s then
new = new - [Link] *
speed
speed=speed+0
end
if keys.d then
new = new * [Link](speed,0,0)
speed=speed+0
end
if keys.a then
new = new * [Link](-speed,0,0)
speed=speed+0
end
if speed>10 then
speed=5
end
[Link]=new.p
if keys.w then
[Link] =
[Link]*[Link](-[Link](speed*0),0,0)
elseif keys.s then
[Link] =
[Link]*[Link]([Link](speed*0),0,0)
else
[Link] = [Link]
end
until flying == false
if gyro then gyro:Destroy() end
if pos then pos:Destroy() end
flying=false
[Link]=false
speed=10
end
e1=[Link]:connect(function(key)
if not torso or not [Link] then flying=false e1:disconnect()
e2:disconnect() return end
if key=="w" then
keys.w=true
elseif key=="s" then
keys.s=true
elseif key=="a" then
keys.a=true
elseif key=="d" then
keys.d=true
elseif key=="x" then
if flying==true then
flying=false
else
flying=true
start()
end
end
end)
e2=[Link]:connect(function(key)
if key=="w" then
keys.w=false
elseif key=="s" then
keys.s=false
elseif key=="a" then
keys.a=false
elseif key=="d" then
keys.d=false
end
end)
start()
end)

local sector9 = MiscTab:CreateSector("RayX", "right")

sector9:AddButton("RayX", function()
loadstring(game:HttpGet('[Link]
Lua/Main/[Link]'))()
end)

You might also like