L DLR 5 N X
L DLR 5 N X
NemesisPreBeta = {
["Settings"] = {
Disabling = {Toggle = false, Keybind = "H"},
UpdateTickDelay = 0.05
},
["Camlock"] = {
Toggling = {
Enable = true,
Keybind = "C"
},
Settings = {
Prediction = {
true,
.147
,
false,
.003
},
Smoothing = {
smoothness = true,
x = 1,
y = 1
},
OffSets = {
Jump = {
Enable = false,
[1] = Vector3.new(0, 3, 0)
}
}
},
Conditions = {
Player = {
WallCheck = false,
Grabbed = false,
Knocked = false,
CrewID = false
},
BodyParts = {"UpperTorso"}
}
},
["Silent"] = {
Toggling = { Enable = false },
Settings = {
Prediction = { true , 0.11934 , false, 0.003 },
HitChance = 100,
Resolver = true,
OffSets = {
Jump = {
Enable = false,
[1] = Vector3.new(0, 0, 0)
}
}
},
Conditions = {
Player = { WallCheck = false, Grabbed = false, Knocked = false, CrewID
= false },
BodyParts = {"UpperTorso"}
}
},
["Field Of View"] = {
Enable = true,
Size = 1000,
Color = Color3.fromRGB(255, 255, 255),
},
["Miscs"] = {
["Sorting"] = {
Toggled = false,
Key = "F",
alphabetically = true,
Ammo = false,
Custom = {
Enable = false,
List = {[1] = "[Revolver]", [2] = "[Chicken]"} -- // etc
}
},
["Animation"] = {
Enable = true,
Animations = {["Greet"] = {[1] = false, [2] = "V"}}
}
}
}
local DUpvalue, Round, V3, V2, CF, Rservice, UserInput, Ping, Mouse, backpack =
debug.getupvalue, math.round, Vector3.new, Vector2.new, CFrame.new,
game:GetService("RunService"), game:GetService("UserInputService"),
game:GetService("Stats").PerformanceStats.Ping,
game:GetService("Players").LocalPlayer:GetMouse(),
game:GetService("Players").LocalPlayer.Backpack
local Players, Self, Character, Camera = game:GetService("Players"),
game:GetService("Players").LocalPlayer,
game:GetService("Players").LocalPlayer.Character or
game:GetService("Players").LocalPlayer.CharacterAdded:Wait(),
game:GetService("Workspace").CurrentCamera
local idx, endp
local Storage = {
Drawings = {},
Connections = {},
targets = {
[1] = nil,
[2] = nil
},
ValuePosition = nil,
bodyparts = {
[1] = "",
[2] = ""
},
update_tick = tick(),
etc = {
Ctoggled = false,
Mtoggled = false
},
items = {}
}
function wallcheck(origin)
local parts = Camera:GetPartsObscuringTarget({origin.Position,
Character.HumanoidRootPart.Position}, {Camera, Character, origin.Parent})
if #parts == 0 then
return true
end
return false
end
function Grabbed(player)
if player.Character ~= nil then
return not player.Character:FindFirstChild("GRABBING_CONSTRAINT")
end
end
function Knocked(player)
if player.Character ~= nil then
return player.Character.BodyEffects["K.O"].Value ~= true
end
end
local pingHistory = {}
local lastPingUpdateTime = tick()
function GetPrediction()
local currentPing = Ping:GetValue() * 0.003
if getgenv().NemesisPreBeta.Camlock.Settings.Prediction[3] or
getgenv().NemesisPreBeta.Silent.Settings.Prediction[3] then
return currentPing
else
return getgenv().NemesisPreBeta.Camlock.Settings.Prediction[2] and
getgenv().NemesisPreBeta.Silent.Settings.Prediction[2]
end
end
function Crew(player)
if
game.Players.LocalPlayer:FindFirstChild("DataFolder"):FindFirstChild("Information")
:FindFirstChild("Crew") then
local SelfCrewValue =
game.Players.LocalPlayer:FindFirstChild("DataFolder"):FindFirstChild("Information")
:FindFirstChild("Crew")
if SelfCrewValue.Value ~= 0 then
if
player:FindFirstChild("DataFolder"):FindFirstChild("Information"):FindFirstChild("C
rew") then
local Enimy =
player:FindFirstChild("DataFolder"):FindFirstChild("Information"):FindFirstChild("C
rew")
if Enimy.Value == SelfCrewValue.Value then
return false
end
end
end
end
return true
end
function isInCustomList(toolName)
for _, customName in ipairs(getgenv().NemesisPreBeta.Miscs.Sorting.Custom.List)
do
if toolName == customName then
return true
end
end
return false
end
function GetClosest(table)
local MaxDistance = getgenv().NemesisPreBeta["Field Of View"].Enable and
getgenv().NemesisPreBeta["Field Of View"].Size or math.huge
local Target
function playAnimation(animationName)
local args = {
[1] = "AnimationPack",
[2] = animationName,
}
game:GetService("ReplicatedStorage").MainEvent:FireServer(unpack(args))
end
-- // updates
function UpdateSilent()
local SilentTable = getgenv().NemesisPreBeta.Silent
if SilentTable.Toggling.Enable then
Storage.targets[2] = GetClosest(SilentTable.Conditions.Player)
if Storage.targets[2] ~= nil and Storage.targets[2].Character ~= nil and
Storage.targets[2].Character:FindFirstChild("HumanoidRootPart") then
Storage.bodyparts[2] = tostring(Closespart(Storage.targets[2],
SilentTable.Conditions.BodyParts))
local position =
Storage.targets[2].Character[Storage.bodyparts[2]].Position
if SilentTable.Settings.OffSets.Jump.Enable and
Storage.targets[2].Character:FindFirstChildOfClass("Humanoid"):GetState() ==
Enum.HumanoidStateType.Freefall then
position = position + SilentTable.Settings.OffSets.Jump[1]
end
Storage.CFposition = position + (SilentTable.Settings.Prediction and
Velocity(Storage.targets[2], SilentTable.Settings.Resolver) * GetPrediction() or 0)
end
end
end
function UpdateCamlock()
local CamLockTable = getgenv().NemesisPreBeta.Camlock
if Storage.etc.Ctoggled and CamLockTable.Toggling.Enable and Storage.targets[1]
~= nil and Storage.targets[1].Character ~= nil then
local position =
Storage.targets[1].Character[Storage.bodyparts[1]].Position
if CamLockTable.Settings.OffSets.Jump.Enable and
Storage.targets[1].Character:FindFirstChildOfClass("Humanoid"):GetState() ==
Enum.HumanoidStateType.Freefall then
position = position + CamLockTable.Settings.OffSets.Jump[1]
end
if CamLockTable.Settings.Smoothing.enable then
local goal = CFrame.new(Camera.CFrame.Position, position +
(CamLockTable.Settings.Prediction[1] * GetPrediction() or Vector3.new()))
Camera.CFrame = Camera.CFrame:Lerp(goal,
CamLockTable.Settings.Smoothing.x, CamLockTable.Settings.Smoothing.y)
else
local prediction = CamLockTable.Settings.Prediction[1] and
Storage.targets[1].Character.HumanoidRootPart.AssemblyLinearVelocity *
GetPrediction() or Vector3.new()
Camera.CFrame = CFrame.new(Camera.CFrame.Position, position +
prediction)
end
end
end
do -- main connection
if
Storage.targets[1] and Storage.targets[1].Character then
Storage.bodyparts[1] = tostring(Closespart(Storage.targets[1],
getgenv().NemesisPreBeta.Camlock.Conditions.BodyParts))
end
else
if Storage.targets[1] ~= nil then
Storage.targets[1] = nil
end
end
end
end)
if getgenv().NemesisPreBeta.Miscs.Sorting.Custom.Enable then
for _, customName in
ipairs(getgenv().NemesisPreBeta.Miscs.Sorting.Custom.List) do
for _, item in pairs(backpack:GetChildren()) do
if item:IsA("Tool") and item.Name == customName then
table.insert(items, 1, item)
break
end
end
end
end
end
end)
NewConnection(Rservice.Heartbeat, function()
--// camlock
Thread(UpdateCamlock())
end)
end
local oldIndex
oldIndex = hookmetamethod(game, "__index", function(t, k)
if t:IsA("Mouse") and k == "Hit" or k == "Target" then
if getgenv().NemesisPreBeta.Silent.Toggling.Enable and
Chance(getgenv().NemesisPreBeta.Silent.Settings.HitChance, 100) and
Storage.targets[2] ~= nil then
local Hit = CFrame.new(Storage.CFposition)
return (k == "Hit" and Hit)
end
end
return oldIndex(t, k)
end)