0% found this document useful (0 votes)
71 views7 pages

Message

dffffffffffffffffffffffffffg
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)
71 views7 pages

Message

dffffffffffffffffffffffffffg
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
You are on page 1/ 7

getgenv().

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!
}

local userInputService = game:GetService("UserInputService")


local isResolving = false -- Initialize isResolving

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)

local function getnamecall()


if game.PlaceId == 2788229376 then
return "UpdateMousePos"
elseif game.PlaceId == 5602055394 or game.PlaceId == 7951883376 then
return "MousePos"
elseif game.PlaceId == 9825515356 then
return "GetMousePos"
end
end

local namecalltype = getnamecall()

function MainEventLocate()
for _,v in pairs(game:GetService("ReplicatedStorage"):GetDescendants()) do
if v.Name == "MainEvent" then
return v
end
end
end

local Locking = false


local Resolving = false
local Players = game:GetService("Players")
local Client = Players.LocalPlayer
local Plr = nil -- Initialize Plr here

-- 360 on bind
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Camera = workspace.CurrentCamera
local Toggle = false -- Initialize Toggle to false

local function OnKeyPress(Input, GameProcessedEvent)


if Input.KeyCode == Keybind and not GameProcessedEvent then
Toggle = not Toggle
elseif Input.KeyCode == getgenv().Macro.SpeedGlitchKey then
if getgenv().Macro.Enabled then
getgenv().Macro.SpeedGlitch = not getgenv().Macro.SpeedGlitch
if getgenv().Macro.SpeedGlitch then
repeat
game:GetService("RunService").Heartbeat:Wait()
keypress(0x49)
game:GetService("RunService").Heartbeat:Wait()
keypress(0x4F)
game:GetService("RunService").Heartbeat:Wait()
keyrelease(0x49)
game:GetService("RunService").Heartbeat:Wait()
keyrelease(0x4F)
game:GetService("RunService").Heartbeat:Wait()
until not getgenv().Macro.SpeedGlitch
end
end
end
end

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

local function getVelocity(Player)


local Old = Player.Character.HumanoidRootPart.Position
wait(0.145)
local Current = Player.Character.HumanoidRootPart.Position
return (Current - Old) / 0.145
end

local function GetShakedVector3(Setting)


return Vector3.new(math.random(-Setting * 1e9, Setting * 1e9), math.random(-
Setting * 1e9, Setting * 1e9), math.random(-Setting * 1e9, Setting * 1e9)) / 1e9;
end
local v = nil
game:GetService("RunService").Heartbeat:Connect(function(deltaTime)
if Plr ~= nil and Plr.Character and
Plr.Character:FindFirstChild("HumanoidRootPart") then
v = getVelocity(Plr)
end
end)

local mainevent = game:GetService("ReplicatedStorage").MainEvent

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)

if getgenv().Safety.AntiAimviewer == true then


loadstring(game:HttpGet("https://raw.githubusercontent.com/Nosssa/NossLock/
main/GetRealMousePosition"))()
end

if getgenv().Misc.RejoinServer == true then


local TeleportService = game:GetService("TeleportService")

local function RejoinSameServer()


local success, errorMessage = pcall(function()
local placeId = game.PlaceId
local jobId = game.JobId
TeleportService:TeleportToPlaceInstance(placeId, jobId)
end)
if not success then
warn("Failed to rejoin: " .. errorMessage)
end
end

wait(0)
RejoinSameServer()
end

if getgenv().EspSection.ChamsESP == true then

local UserInputService = game:GetService("UserInputService")


local ToggleKey = getgenv().EspSection.ChamsESPKeybind

local FillColor = getgenv().EspSection.ChamsColor1


local DepthMode = "AlwaysOnTop"
local FillTransparency = 0.5
local OutlineColor = getgenv().EspSection.ChamsColor2
local OutlineTransparency = 0

local CoreGui = game:GetService("CoreGui")


local Players = game:GetService("Players")
local lp = Players.LocalPlayer
local connections = {}

local Storage = Instance.new("Folder")


Storage.Parent = CoreGui
Storage.Name = "Highlight_Storage"

local isEnabled = false

local function Highlight(plr)


local Highlight = Instance.new("Highlight")
Highlight.Name = plr.Name
Highlight.FillColor = FillColor
Highlight.DepthMode = DepthMode
Highlight.FillTransparency = FillTransparency
Highlight.OutlineColor = OutlineColor
Highlight.OutlineTransparency = 0
Highlight.Parent = Storage

local plrchar = plr.Character


if plrchar then
Highlight.Adornee = plrchar
end

connections[plr] = plr.CharacterAdded:Connect(function(char)
Highlight.Adornee = char
end)
end

local function EnableHighlight()


isEnabled = true
for _, player in ipairs(Players:GetPlayers()) do
Highlight(player)
end
end
local function DisableHighlight()
isEnabled = false
for _, highlight in ipairs(Storage:GetChildren()) do
highlight:Destroy()
end
for _, connection in pairs(connections) do
connection:Disconnect()
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

You might also like