Message
Message
Message
delusion = {
Keybind = Enum.KeyCode.E,
CamlockPrediction = 0.114,
Prediction = 0.1451435,
TargetPart = "Head",
CameraSmoothing = 0.098,
CameraShake = 0, -- up to 2
JumpOffset = -1.50,
}
getgenv().Safety = {
Resolver = Enum.KeyCode.RightControl,
AntiAimviewer = false,
AntiGroundShots = false, -- buggy fixing next update
}
getgenv().Checks = {
DisableOnTargetDeath = true,
DisableOnPlayerDeath = true,
CheckKoStatus = true,
}
getgenv().Macro = {
Enabled = false,
SpeedGlitchKey = Enum.KeyCode.X,
}
getgenv().EspSection = {
ChamsESP = true,
ChamsESPKeybind = Enum.KeyCode.LeftAlt,
ChamsColor1 = Color3.fromRGB(255, 255, 255),
ChamsColor2 = Color3.fromRGB(255, 255, 255),
}
getgenv().Misc = {
RejoinServer = false, -- PLEASE DISABLE IT IF YOU DONT WANT TO REJOIN, ALSO IT
WORKS ON PUBLICS BUT NOT PRIVATESERVERS!
}
userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if input.KeyCode == getgenv().Safety.Resolver then
isResolving = not isResolving
game:GetService("StarterGui"):SetCore("SendNotification", {
Title = "Resolver",
Text = tostring(isResolving),
Duration = 0.1
})
end
end)
function MainEventLocate()
for _,v in pairs(game:GetService("ReplicatedStorage"):GetDescendants()) do
if v.Name == "MainEvent" then
return v
end
end
end
-- 360 on bind
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Camera = workspace.CurrentCamera
local Toggle = false -- Initialize Toggle to false
UserInputService.InputBegan:Connect(OnKeyPress)
UserInputService.InputBegan:Connect(function(keygo, ok)
if (not ok) then
if (keygo.KeyCode == getgenv().delusion.Keybind) then
Locking = not Locking
if Locking then
Plr = getClosestPlayerToCursor()
elseif not Locking then
if Plr then
Plr = nil
end
end
elseif (keygo.KeyCode == getgenv().Safety.Resolver) then
Resolving = not Resolving
end
end
end)
function getClosestPlayerToCursor()
local closestDist = math.huge
local closestPlr = nil
for _, v in ipairs(Players:GetPlayers()) do
if v ~= Client and v.Character and v.Character:FindFirstChild("Humanoid")
and v.Character.Humanoid.Health > 0 then
local screenPos, cameraVisible =
workspace.CurrentCamera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
if cameraVisible then
local distToMouse =
(Vector2.new(UserInputService:GetMouseLocation().X,
UserInputService:GetMouseLocation().Y) - Vector2.new(screenPos.X,
screenPos.Y)).Magnitude
if distToMouse < closestDist then
closestPlr = v
closestDist = distToMouse
end
end
end
end
return closestPlr
end
Client.Character.ChildAdded:Connect(function(child)
if child:IsA("Tool") and child:FindFirstChild("MaxAmmo") then
child.Activated:Connect(function()
if Plr and Plr.Character then
local Position = Plr.Character.Humanoid:GetState() ==
Enum.HumanoidStateType.Freefall and
Plr.Character[getgenv().delusion.TargetPart].Position + Vector3.new(0,
getgenv().delusion.JumpOffset, 0) or
Plr.Character[getgenv().delusion.TargetPart].Position
mainevent:FireServer("UpdateMousePos", Position + ((Resolving ==
true and v or Plr.Character.HumanoidRootPart.Velocity) *
getgenv().delusion.Prediction))
end
end)
end
end)
Client.CharacterAdded:Connect(function(character)
character.ChildAdded:Connect(function(child)
if child:IsA("Tool") and child:FindFirstChild("MaxAmmo") then
child.Activated:Connect(function()
if Plr and Plr.Character then
local Position = Plr.Character.Humanoid:GetState() ==
Enum.HumanoidStateType.Freefall and
Plr.Character[getgenv().delusion.TargetPart].Position + Vector3.new(0,
getgenv().delusion.JumpOffset, 0) or
Plr.Character[getgenv().delusion.TargetPart].Position
mainevent:FireServer("UpdateMousePos", Position + ((Resolving
== true and v or Plr.Character.HumanoidRootPart.Velocity) *
getgenv().delusion.Prediction))
end
end)
end
end)
end)
game:GetService("RunService").RenderStepped:Connect(function()
if Plr ~= nil then
local Position = Plr.Character.Humanoid:GetState() ==
Enum.HumanoidStateType.Freefall and
Plr.Character[getgenv().delusion.TargetPart].Position + Vector3.new(0,
getgenv().delusion.JumpOffset, 0) or
Plr.Character[getgenv().delusion.TargetPart].Position
local Main = CFrame.new(workspace.CurrentCamera.CFrame.p, Position +
((Resolving == true and v or Plr.Character.HumanoidRootPart.Velocity) *
getgenv().delusion.CamlockPrediction) +
GetShakedVector3(getgenv().delusion.CameraShake))
workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(Main,
getgenv().delusion.CameraSmoothing, Enum.EasingStyle.Sine,
Enum.EasingDirection.InOut)
end
if getgenv().Checks.CheckKoStatus == true and Plr and Plr.Character then
local KOd = Plr.Character:WaitForChild("BodyEffects")["K.O"].Value
local Grabbed = Plr.Character:FindFirstChild("GRABBING_CONSTRAINT") ~= nil
if Plr.Character.Humanoid.Health < 1 or KOd or Grabbed then
if Locking == true then
Plr = nil
Locking = false
end
end
end
if getgenv().Checks.DisableOnTargetDeath == true and Plr and
Plr.Character:FindFirstChild("Humanoid") then
if Plr.Character.Humanoid.health < 1 then
if Locking == true then
Plr = nil
Locking = false
end
end
end
if getgenv().Checks.DisableOnPlayerDeath == true and Client.Character and
Client.Character:FindFirstChild("Humanoid") and Client.Character.Humanoid.health <
1 then
if Locking == true then
Plr = nil
Locking = false
end
end
if getgenv().Safety.AntiGroundShots == true and Plr.Character.Humanoid.Jump ==
true and Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air then
pcall(function()
local TargetVelv5 = Plr.Character.HumanoidRootPart
TargetVelv5.Velocity = Vector3.new(TargetVelv5.Velocity.X,
math.abs(TargetVelv5.Velocity.Y * 0.36),
TargetVelv5.Velocity.Z)
TargetVelv5.AssemblyLinearVelocity =
Vector3.new(TargetVelv5.Velocity.X, math.abs(TargetVelv5.Velocity.Y * 0.36),
TargetVelv5.Velocity.Z)
end)
end
end)
wait(0)
RejoinSameServer()
end
connections[plr] = plr.CharacterAdded:Connect(function(char)
Highlight.Adornee = char
end)
end
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == ToggleKey then
if isEnabled then
DisableHighlight()
else
EnableHighlight()
end
end
end)
Players.PlayerAdded:Connect(function(player)
if isEnabled then
Highlight(player)
end
end)
Players.PlayerRemoving:Connect(function(player)
local highlight = Storage:FindFirstChild(player.Name)
if highlight then
highlight:Destroy()
end
local connection = connections[player]
if connection then
connection:Disconnect()
end
end)
if isEnabled then
EnableHighlight()
end
end