Kitten White
Kitten White
Kitten White
local Settings = {
rewrittenmain = {
Enabled = true,
Key = "q", -- // Key to enable / disable
DOT = true, -- // Keep on
AIRSHOT = true, -- // Airshot func
NOTIF = true, -- // Wether to show notifications or not i would not turn
off
AUTOPRED = false, -- // shit is ass
FOV = math.huge, -- // dont do anything to do this
RESOVLER = false -- // resolver not added yet :)
}
}
local AnchorCount = 0
local MaxAnchor = 50
local CC = game:GetService"Workspace".CurrentCamera
local Plr;
local enabled = false
local accomidationfactor = 0.121
local mouse = game.Players.LocalPlayer:GetMouse()
local placemarker = Instance.new("Part", game.Workspace)
spawn(function()
while wait() do
if player.Character then
end
end
end)
end
for i = 1, #data do
if data[i] ~= game.Players.LocalPlayer then
noob(data[i])
end
end
game.Players.PlayerAdded:connect(function(Player)
noob(Player)
end)
spawn(function()
placemarker.Anchored = true
placemarker.CanCollide = false
if Settings.rewrittenmain.DOT == true then
placemarker.Size = Vector3.new(15, 15, 15)
else
placemarker.Size = Vector3.new(15, 15, 15)
end
placemarker.Transparency = 0.75
if Settings.rewrittenmain.DOT then
makemarker(placemarker, placemarker, Color3.fromRGB(14, 209, 230), 0.50, 0)
end
end)
game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then
if enabled == true then
enabled = false
if Settings.rewrittenmain.NOTIF == true then
Plr = getClosestPlayerToCursor()
game.StarterGui:SetCore("SendNotification", {
Title = "";
Text = "Unlocked",
Duration = 5
})
end
else
Plr = getClosestPlayerToCursor()
enabled = true
if Settings.rewrittenmain.NOTIF == true then
game.StarterGui:SetCore("SendNotification", {
Title = "";
Text = "KittenBlack.cc Targeting:
"..tostring(Plr.Character.Humanoid.DisplayName),
Duration = 5
})
end
end
end
end)
function getClosestPlayerToCursor()
local closestPlayer
local shortestDistance = Settings.rewrittenmain.FOV
for i, v in pairs(game.Players:GetPlayers()) do
if v ~= game.Players.LocalPlayer and v.Character and
v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and
v.Character:FindFirstChild("HumanoidRootPart") then
local pos =
CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X,
mouse.Y)).magnitude
if magnitude < shortestDistance then
closestPlayer = v
shortestDistance = magnitude
end
end
end
return closestPlayer
end
game:GetService"RunService".Stepped:connect(function()
if enabled and Plr.Character ~= nil and
Plr.Character:FindFirstChild("HumanoidRootPart") then
placemarker.CFrame =
CFrame.new(Plr.Character.HumanoidRootPart.Position+
(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
else
placemarker.CFrame = CFrame.new(0, 9999, 0)
end
if Settings.rewrittenmain.AUTOPRED == true then
pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data
Ping"]:GetValueString()
split = string.split(pingvalue,'(')
ping = tonumber(split[1])
if ping < 130 then
PredictionValue = 0.15132132132132132555555555555555
elseif ping < 125 then
PredictionValue = 0.1512783311111111111111111111111111111111111
elseif ping < 110 then
PredictionValue =
0.146432786576847627781237813281381382038198391293
elseif ping < 105 then
PredictionValue = 0.138312341526738912
elseif ping < 90 then
PredictionValue = 0.1355991245213413214231231123121
elseif ping < 80 then
PredictionValue = 0.131314253678192031927365421456789331
elseif ping < 70 then
PredictionValue = 0.1123555632135617389103912736
elseif ping < 60 then
PredictionValue = 0.124521314351673817351423414
elseif ping < 50 then
PredictionValue = 0.121316378910319876472890149871624
elseif ping < 40 then
PredictionValue =
0.11923283912031938191231281632312637123821763333312731833
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 Settings.rewrittenmain.Enabled and Plr.Character ~= nil then
-- args[3] = Plr.Character.HumanoidRootPart.Position+
(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
--[[
if Settings.rewrittenmain.AIRSHOT == true then
if game.Workspace.Players[Plr.Name].Humanoid:GetState() ==
Enum.HumanoidStateType.Freefall then --
Plr.Character:WaitForChild("Humanoid"):GetState() ==
Enum.HumanoidStateType.Freefall
--// Airshot
args[3] = Plr.Character.LeftFoot.Position+
(Plr.Character.LeftFoot.Velocity*PredictionValue)
else
args[3] = Plr.Character.HumanoidRootPart.Position+
(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
end
else
args[3] = Plr.Character.HumanoidRootPart.Position+
(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
end
]]
if Prediction == true then
args[3] = Plr.Character[SelectedPart].Position+
(Plr.Character[SelectedPart].Velocity*PredictionValue)
else
args[3] = Plr.Character[SelectedPart].Position
end
return old(unpack(args))
end
return old(...)
end)
game:GetService("RunService").RenderStepped:Connect(function()
if Settings.rewrittenmain.RESOVLER == true and Plr.Character ~= nil and
enabled and Settings.rewrittenmain.Enabled then
if Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~=
nil then
if game.Workspace.Players[Plr.Name].Humanoid:GetState() ==
Enum.HumanoidStateType.Freefall then --
Plr.Character:WaitForChild("Humanoid"):GetState() ==
Enum.HumanoidStateType.Freefall
--// Airshot
SelectedPart = "LeftFoot"
else
--// Anchor Check
SelectedPart = "HumanoidRootPart"
end
else
SelectedPart = "HumanoidRootPart"
end
else
SelectedPart = "HumanoidRootPart"
end
end)