message (8)
message (8)
delusion = {
["IntroSettings"] = {
['Intro'] = true,
['IntroID'] = "rbxassetid://129805810298197" --// do not touch
},
['Combat'] = {
['Keybind'] = Enum.KeyCode.C,
['Prediction'] = 0.39,
['Part'] = "HumanoidRootPart",
['MultipleTargetPart'] = {"Head","HumanoidRootPart"},
},
['Smoothness'] = {
['Amount'] = 0.045,
},
["Shake"] = {
['CameraShake'] = 0,
},
['Silent'] = {
["Prediction"] = 0.12803,
},
["Offsets"] = {
Jump = {Amount = 1},
Fall = {Amount = 1},
},
["Checks"] = {
TargetDeath = true,
PlayerDeath = true,
CheckKoStatus = true,
},
["Esp"] = {
['Chams'] = true,
['Key'] = Enum.KeyCode.T,
['Color'] = Color3.fromRGB(255, 255, 255),
['Outline'] = Color3.fromRGB(255, 255, 255),
},
['Textures'] = {
['Enabled'] = true,
['Material'] = "Brick",
['Color'] = Color3.fromRGB(50, 50, 50)
},
["Spin"] = {
['Enabled'] = true,
['SpinSpeed'] = 9600,
['Degrees'] = 360,
['Keybind'] = Enum.KeyCode.V,
},
["Macro"] = {
['Enabled'] = true,
['Keybind'] = 'V',
['Speed'] = 2,
['Type'] = 'Third', --/ Third, First, Auto
},
["Misc"] = {
["Fog"] = {
['Enabled'] = false,
['Color'] = Color3.fromRGB(100, 20, 40),
['StartDistance'] = 30,
['EndDistance'] = 150
},
["SurroundingAmbient"] = {
['Enabled'] = false,
['Color'] = Color3.fromRGB(0, 50, 100)
},
["ExternalAmbient"] = {
['Enabled'] = false,
['Color'] = Color3.fromRGB(150, 100, 50)
}
}
}
if delusion.IntroSettings.Intro then
local cam = workspace.CurrentCamera
local x = cam.ViewportSize.X
local y = cam.ViewportSize.Y
local newx = math.floor(x * 0.5)
local newy = math.floor(y * 0.5)
local SplashScreen = Instance.new("ScreenGui")
local Image = Instance.new("ImageLabel")
SplashScreen.Name = "SplashScreen"
SplashScreen.Parent = game.CoreGui
SplashScreen.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Image.Name = "Image"
Image.Parent = SplashScreen
Image.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Image.BackgroundTransparency = 1
Image.Position = UDim2.new(0, newx, 0, newy)
Image.Size = UDim2.new(0, 825, 0, 377)
Image.Image = delusion.IntroSettings.IntroID
Image.ImageTransparency = 1
Image.AnchorPoint = Vector2.new(0.5, 0.5)
wait(0.5)
function MainEventLocate()
for _,v in pairs(game:GetService("ReplicatedStorage"):GetDescendants()) do
if v.Name == "MainEvent" then
return v
end
end
end
UserInputService.InputBegan:Connect(OnKeyPress)
UserInputService.InputBegan:Connect(function(keygo, ok)
if (not ok) then
if (keygo.KeyCode == getgenv().delusion.Combat.Keybind) then
Locking = not Locking
if Locking then
Plr = getClosestPlayerToCursor()
elseif not Locking then
if Plr then
Plr = nil
end
end
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
function getClosestPartToCursor(Player)
local closestPart, closestDist = nil, math.huge
if Player.Character and Player.Character:FindFirstChild("Humanoid") and
Player.Character:FindFirstChild("Head") and Player.Character.Humanoid.Health ~= 0
and Player.Character:FindFirstChild("HumanoidRootPart") then
for i, part in pairs(Player.Character:GetChildren()) do
if part:IsA("BasePart") then
local screenPos, cameraVisible =
workspace.CurrentCamera:WorldToViewportPoint(part.Position)
local distToMouse =
(Vector2.new(UserInputService:GetMouseLocation().X,
UserInputService:GetMouseLocation().Y) - Vector2.new(screenPos.X,
screenPos.Y)).Magnitude
if distToMouse < closestDist and
table.find(getgenv().delusion.Combat.MultipleTargetPart, part.Name) then
closestPart = part
closestDist = distToMouse
end
end
end
return closestPart
end
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)
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.Combat.Part].Position + Vector3.new(0,
getgenv().delusion.Offsets.JumpOffset, 0) or
Plr.Character[getgenv().delusion.Combat.Part].Position
if not CheckAnti(Plr) then
mainevent:FireServer("UpdateMousePosI2", Position +
((Plr.Character.HumanoidRootPart.Velocity) * getgenv().delusion.Silent.Prediction))
else
mainevent:FireServer("UpdateMousePosI2", Position +
((Plr.Character.Humanoid.MoveDirection * Plr.Character.Humanoid.WalkSpeed) *
getgenv().delusion.Silent.Prediction))
end
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.Combat.Part].Position + Vector3.new(0,
getgenv().delusion.Offsets.JumpOffset, 0) or
Plr.Character[getgenv().delusion.Combat.Part].Position
if not CheckAnti(Plr) then
mainevent:FireServer("UpdateMousePosI2", Position +
((Plr.Character.HumanoidRootPart.Velocity) *
getgenv().delusion.Silent.Silent.Prediction))
else
mainevent:FireServer("UpdateMousePosI2", Position +
((Plr.Character.Humanoid.MoveDirection * Plr.Character.Humanoid.WalkSpeed) *
getgenv().delusion.Silent.Prediction))
end
end
end)
end
end)
end)
RunService.RenderStepped:Connect(function()
if Plr and Plr.Character then
local humanoid = Plr.Character:FindFirstChild("Humanoid")
local targetPart =
Plr.Character:FindFirstChild(getgenv().delusion.Combat.Part)
local Main
if not CheckAnti(Plr) then
Main = CFrame.new(
workspace.CurrentCamera.CFrame.p,
Position + ((Plr.Character.HumanoidRootPart.Velocity) *
getgenv().delusion.Silent.Prediction)
+ GetShakedVector3(getgenv().delusion.Shake.CameraShake)
)
else
Main = CFrame.new(
workspace.CurrentCamera.CFrame.p,
Position + ((Plr.Character.Humanoid.MoveDirection *
Plr.Character.Humanoid.WalkSpeed) * getgenv().delusion.Silent.Prediction)
+ GetShakedVector3(getgenv().delusion.Shake.CameraShake)
)
end
workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(
Main, getgenv().delusion.Smoothness.Amount, Enum.EasingStyle.Sine,
Enum.EasingDirection.InOut
)
end
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
UserInputService.InputBegan:Connect(OnKeyPress)
local LastRenderTime = 0
local TotalRotation = 0
-- 360 made by @fwedsw
local function RotateCamera()
if Toggle then
local CurrentTime = tick()
local TimeDelta = math.min(CurrentTime - LastRenderTime, 0.01)
LastRenderTime = CurrentTime
RunService.RenderStepped:Connect(RotateCamera)
end
if getgenv().delusion.Textures.Enabled then
for _, v in pairs(game:GetService("Workspace"):GetDescendants()) do
if v:IsA("BasePart") and not v.Parent:FindFirstChild("Humanoid") then
v.Material = getgenv().delusion.Textures.Material
v.Color = getgenv().delusion.Textures.Color
if v:IsA("Texture") then
v:Destroy()
end
end
end
end
if surroundingAmbient.Enabled then
Lighting.Ambient = surroundingAmbient.Color
end
if externalAmbient.Enabled then
Lighting.OutdoorAmbient = externalAmbient.Color
end
end
Mouse.KeyDown:Connect(function(Key)
if not getgenv().delusion.Macro.Enabled then return end