main.lua
main.lua
Rayfield:Notify({
Title = "Sucessfully Executed",
Content = "Notification",
Duration = 5,
Image = 4483362458,
Actions = { -- Notification Buttons
Ignore = {
Name = "Ok!",
Callback = function()
print("The user tapped Okay!")
end
},
},
})
getgenv().Peace = {
["Main"] = {
["Intro"] = true,
Fps = {
["Enabled"] = true,
["Percent"] = 0
},
["User InterFace"] = true,
["Keybind"] = "V",
["Visible Text"] = true
},
Cmds = {
["Enabled"] = false,
["Fov"] = "!F",
["Prediction"] = "!P"
},
["Visuals"] = {
["Ambient"] = {
["Enabled"] = false,
["Color"] = Color3.fromRGB(4, 0, 255)
},
["OutDoor Ambient"] = {
["Enabled"] = false, -- // Had To Push The Release
["Color"] = Color3.fromRGB(4, 0, 255)
},
["Fog Modifications"] = {
["Enabled"] = false, -- // Modifies Your Fog
["Color"] = Color3.fromRGB(4, 0, 255),
["Start"] = 25,
["End"] = 100
}
},
["Title"] = {
["Text"] = "peace streamable",
["Extension"] = {
["Fringe"] = "(",
["End"] = ")"
},
["Size"] = 13
},
["Scale"] = {
["X"] = 10 * 10,
["Y"] = 10 * 1
},
["Color"] = {
["Inline"] = Color3.fromRGB(255, 246, 180),
["Outline"] = Color3.fromRGB()
},
["Fade Speed"] = {
["Intro"] = 0.1,
["Outro"] = 0.01
},
["Link"] = {
["Check"] = {
["Team"] = false,
["IsDead"] = true,
["Visible"] = true,
["Resolver"] = false
},
["Field"] = {
["Visual"] = {
["Enabled"] = true,
["Keybind"] = "T",
["Radius"] = 190.2,
["Inline"] = {
["Transparency"] = 0.4,
["Color"] = Color3.fromRGB(255, 255, 255)
},
["Outline"] = {
["Transparency"] = 0.65,
["Color"] = Color3.fromRGB(0, 0, 0)
},
["Control"] = {
["Stick To Target"] = false
}
}
}
},
["Aiming"] = {
["Redirection"] = {
["Extension"] = {
["Fringe"] = "{",
["End"] = "}"
},
["Tab"] = {
["Enabled"] = true,
["Keybind"] = "X"
},
["HitPart"] = {
["Target"] = "HumanoidRootPart",
["Revaluate"] = {
["Enabled"] = false,
["Origin"] = "Humanoid"
},
["Validated Part"] = {"HumanoidRootPart", "Head"}
},
["HitChance"] = {
["Enabled"] = false,
["Amount"] = 100
},
["Prediction"] = {
["Enabled"] = true,
["Amount"] = 0.145567724521
},
["Panel"] = {
["Method"] = "FindPartOnRayWithIgnoreList",
["Target"] = {
["Enabled"] = true,
["Keybind"] = "C",
["Player"] = nil,
["Position"] = {
["From"] = "LowerTorso"
}
}
},
["IndicateMousePos"] = {
["Enabled"] = true
},
["Drawing"] = {
["Color1"] = Color3.new(211, 211, 211),
["Color2"] = Color3.new(128, 0, 0),
["Indication Color"] = Color3.new(255, 0, 0),
["Line Color"] = Color3.new(255, 255, 255),
["Line Outline Color"] = Color3.new(0, 0, 0)
}
},
["Aimbot"] = {
["Panel"] = {
["Enabled"] = true,
["Keybind"] = {
["Enabled"] = "F",
["Disabled"] = "G"
},
["HitPart"] = {
["Target"] = "HumanoidRootPart",
["Revaluate"] = {
["Enabled"] = false,
["Origin"] = "Humanoid"
}
},
["Prediction"] = {
["Enabled"] = true,
["Amount"] = 10
},
["Assist"] = {
["Enabled"] = true,
["Amount"] = 40
},
["Panel"] = {
["Method"] = "Camera",
["Target"] = false,
["Lerp"] = {
["Type"] = "Linear",
["Direction"] = "In"
}
}
}
}
},
["Visual"] = {
["ESP"] = {
Initiate = true,
Enabled = true,
Size = 13,
Font = 2,
Color = Color3.new(244, 245, 243)
}
}
}
LPH_JIT_MAX(
function()
local Drawing, FromRGB = Drawing.new, Color3.fromRGB
local UIS, Players, MPS, RunService, Camera, Tween =
game:GetService("UserInputService"),
game:GetService("Players"),
game:GetService("MarketplaceService"),
game:GetService("RunService"),
workspace.CurrentCamera,
{}
Title.Position, Title.Size =
Direction(Camera.ViewportSize.X + 800, Camera.ViewportSize.Y),
Peace["Title"].Size
Value.Position, Value.Size =
Direction(Camera.ViewportSize.X, Camera.ViewportSize.Y + 400),
Peace["Title"].Size
Part.Position, Part.Size =
Direction(Camera.ViewportSize.X + 800, Camera.ViewportSize.Y +
600),
Peace["Title"].Size
if Peace.Aiming.Redirection["Tab"].Enabled then
Value.Text = Peace.Aiming.Redirection.Extension.Fringe ..
"redirection" .. " = " .. "enabled" -- Function.Aiming.Redirection.Extension.End
Part.Text =
tostring(
"hitpart" ..
" = " ..
(Peace.Aiming["Redirection"]["HitPart"]
["Target"]):lower() ..
Peace.Aiming.Redirection.Extension.End
)
else
Part.Text = ""
Value.Text =
Peace.Aiming.Redirection.Extension.Fringe ..
"redirection" .. " = " .. "disabled" ..
Peace.Aiming.Redirection.Extension.End
end
else
end
end
local Utilitie = {}
Utilitie.Toggle = false
UIS.InputBegan:Connect(
function(Two, Input)
if not Input then
if Two.KeyCode.Name == Peace["Main"]["Keybind"] then
Utilitie.Toggle = not Utilitie.Toggle
if Utilitie.Toggle then
RunService:BindToRenderStep("Table!", 1, Table)
for i = 0, 1, Peace["Fade Speed"].Intro do
wait(0)
Title.Transparency = i
Value.Transparency = i
Part.Transparency = i
end
Peace["Main"]["User InterFace"] = true
Peace["Main"]["Visible Text"] = true
elseif not Utilitie.Toggle then
RunService:UnbindFromRenderStep("Table")
Peace["Main"]["User InterFace"] = false
Title.Transparency = 0.9
Value.Transparency = 0.9
Part.Transparency = 0.9
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0.8
Value.Transparency = 0.8
Part.Transparency = 0.8
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0.7
Value.Transparency = 0.7
Part.Transparency = 0.7
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0.6
Value.Transparency = 0.6
Part.Transparency = 0.6
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0.5
Value.Transparency = 0.5
Part.Transparency = 0.5
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0.4
Value.Transparency = 0.4
Part.Transparency = 0.4
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0.3
Value.Transparency = 0.3
Part.Transparency = 0.3
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0.2
Value.Transparency = 0.2
Part.Transparency = 0.2
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0.1
Value.Transparency = 0.1
Part.Transparency = 0.1
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0.1
Value.Transparency = 0.1
Part.Transparency = 0.1
wait(Peace["Fade Speed"].Outro)
Title.Transparency = 0
Value.Transparency = 0
Part.Transparency = 0
end
end
end
end
)
WTS = (function(Object)
local ObjectVector = Camera:WorldToScreenPoint(Object.Position)
return Vector2.new(ObjectVector.X, ObjectVector.Y)
end)
local Field = {}
Field.MouseLink, Field.Outline, Field.Inline = Drawing("Circle"),
Drawing("Circle"), Drawing("Circle")
Field.Inline.Visible = Peace.Link.Field.Visual.Enabled
Field.Inline.Radius = Peace.Link.Field.Visual.Radius
Field.Inline.Transparency = Peace.Link.Field.Visual.Inline.Transparency
Field.Inline.Color = Peace.Link.Field.Visual.Inline.Color
Field.Inline.Thickness = 3
Field.Outline.Thickness = 4
Field.Line.Thickness = 3
Field.Line.Transparency = 0.8
Field.Line.Color = Peace.Aiming["Redirection"]["Drawing"]["Line Color"]
Field.LineOutline.Thickness = 7
Field.LineOutline.Transparency = 0.4
Field.LineOutline.Color = Peace.Aiming["Redirection"]["Drawing"]["Line
Outline Color"]
Field.Inline.Filled = true
Field.Outline.Filled = false
Field.Outline.Visible = Peace.Link.Field.Visual.Enabled
Field.Outline.Radius = Field.Inline.Radius
Field.Outline.Transparency = Peace.Link.Field.Visual.Outline.Transparency
Field.Outline.Color = Peace.Link.Field.Visual.Outline.Color
local GameInfo = game.PlaceId
function ClosestToCursor()
local Closest = nil
local Distance = Field.Inline.Radius
for i, v in pairs(Players:GetPlayers()) do
if
v ~= game.Players.LocalPlayer and v.Character and
v.Character:FindFirstChild("HumanoidRootPart") and
(Peace.Link["Check"]["Team"] == true and (v.Team ~=
LocalPlayer.Team) or
Peace.Link["Check"]["Team"] ~= true)
then
local MouseLocation = UIS:GetMouseLocation()
return Closest
end
Camera:worldToViewportPoint(Target.Character[Peace.Aiming["Redirection"]["HitPart"]
["Target"]].Position)
local TorsoPosition =
Camera:worldToViewportPoint(
LocalPlayer.Character[Peace.Aiming["Redirection"]["Panel"]
["Target"].Position.From].Position
)
LineToggle(IsVisible)
if not IsVisible then
return
end
local Toggle = {}
Toggle.Redirection, Toggle.Target, Toggle.FOV, Toggle.Aimbot = false,
false, false, false
UIS.InputBegan:Connect(
function(Two, Value)
if not Value then
if Two.KeyCode.Name == Peace.Link.Field.Visual.Keybind then
Toggle.FOV = not Toggle.FOV
if Toggle.FOV then
Field.Inline.Visible = true
Field.Outline.Visible = true
elseif not Toggle.FOV then
Field.Inline.Visible = false
Field.Outline.Visible = false
end
end
end
end
)
UIS.InputBegan:Connect(
function(Two, Value)
if not Value then
if Two.KeyCode.Name == Peace.Aiming["Redirection"]
["Tab"].Keybind then
Toggle.Redirection = not Toggle.Redirection
if Toggle.Redirection then
Peace.Aiming["Redirection"]["Tab"]["Enabled"] = true
elseif not Toggle.Redirection then
Peace.Aiming["Redirection"]["Tab"]["Enabled"] = false
end
end
end
end
)
UIS.InputBegan:Connect(
function(Two, Value)
if not Value then
if Two.KeyCode.Name ==
Peace.Aiming["Redirection"].Panel["Target"]["Keybind"] then
Toggle.Target = not Toggle.Target
if Toggle.Target then
Peace.Aiming["Redirection"].Panel["Target"].Enabled =
true
Peace.Aiming["Redirection"]["Panel"]["Target"].Player =
ClosestToCursor()
RunService:BindToRenderStep("VisualLine", 1,
LineRedirect)
elseif not Toggle.Target then
Peace.Aiming["Redirection"].Panel["Target"].Enabled =
false
Peace.Aiming["Redirection"]["Panel"]["Target"].Player =
nil
RunService:UnbindFromRenderStep("VisualLine")
RunService.Heartbeat:Wait()
Field.LineOutline.Visible = false
Field.Line.Visible = false
end
end
end
end
)
spawn(
function()
pcall(
function()
while wait() do
if ClosestToCursor() ~= nil then
-- Character = ClosestToCursor().Character
Peace.Aiming["Redirection"]["HitPart"]["Target"] =
tostring(ClosestPart())
end
end
end
)
end
)
if
Peace.Aiming["Aimbot"]["Panel"].Enabled and Target and
Peace.Aiming["Aimbot"]["Panel"]["HitPart"]["Target"] ~= nil
then
local Part = Peace.Aiming["Aimbot"]["Panel"]["HitPart"]["Target"]
local Position, Movement =
Vector2.new(Mouse.X, Mouse.Y),
Peace.Aiming["Aimbot"]["Panel"]["Prediction"].Enabled
Camera.CFrame =
Camera.CFrame:Lerp(
CFrame.new(
Camera.CFrame.Position,
Target.Character[Part].Position +
Target.Character[Part].Velocity /
Peace.Aiming["Aimbot"]["Panel"]["Prediction"].Amount
),
Peace.Aiming["Aimbot"]["Panel"].Assist.Amount / 1000,
Enum.EasingStyle[Peace.Aiming["Aimbot"]["Panel"]
["Panel"].Lerp.Type],
Enum.EasingDirection[Peace.Aiming["Aimbot"]["Panel"]
["Panel"].Lerp.Direction]
)
elseif Peace.Aiming["Aimbot"]["Panel"]["Panel"].Method == "Mouse"
then
local A =
Camera:WorldToScreenPoint(
Target.Character[Part].Position +
Target.Character[Part].Velocity /
Peace.Aiming["Aimbot"]["Panel"]["Prediction"].Amount
)
Position =
mousemoverel(
(A.X - Mouse.X) / Peace.Aiming["Aimbot"]
["Panel"].Assist.Amount,
(A.Y - Mouse.Y) / Peace.Aiming["Aimbot"]
["Panel"].Assist.Amount
)
end
if
Peace.Aiming["Aimbot"]["Panel"]["HitPart"].Revaluate.Enabled
and
Target.Character.Humanoid.FloorMaterial ==
Enum.Material.Air
then
Part = Peace.Aiming["Aimbot"]["Panel"]
["HitPart"].Revaluate.Origin
end
end
end
--[[UIS.InputBegan:Connect(
function(Two, Value)
if not Value then
if Two.KeyCode.Name == Peace.Aiming["Aimbot"]["Panel"]["Keybind"] then
Peace.Aiming["Aimbot"]["Panel"].Enabled = true
RunService:BindToRenderStep("Aimbot", 1, Aimbot)
else
RunService:UnbindFromRenderStep("Aimbot")
Peace.Aiming["Aimbot"]["Panel"].Enabled = false
Peace.Aiming["Aimbot"]["Panel"]["Target"] = nil
end
end
end
)--]]
--[[UIS.InputBegan:Connect(function(Input)
if Input.KeyCode.Name == Peace.Aiming["Aimbot"]["Panel"]["Keybind"] then
Peace.Aiming["Aimbot"]["Panel"].Enabled = true
RunService:BindToRenderStep("Aimbot", 1, Aimbot)
end
end)
UIS.InputEnded:Connect(function(Input)
if Input.KeyCode.Name == Peace.Aiming["Aimbot"]["Panel"]["Keybind"] then
RunService:UnbindFromRenderStep("Aimbot")
Peace.Aiming["Aimbot"]["Panel"].Enabled = false
Peace.Aiming["Aimbot"]["Panel"]["Target"] = nil
end
end)--]]
Mouse.KeyDown:Connect(
function(a)
if not (UIS:GetFocusedTextBox()) then
if a == Peace.Aiming["Aimbot"]["Panel"]["Keybind"]
["Enabled"]:lower() then
Peace.Aiming["Aimbot"]["Panel"].Enabled = true
RunService:BindToRenderStep("Aimbot", 1, Aimbot)
end
end
end
)
Mouse.KeyDown:Connect(
function(a)
if not (UIS:GetFocusedTextBox()) then
if a == Peace.Aiming["Aimbot"]["Panel"]["Keybind"]
["Disabled"]:lower() then
RunService:UnbindFromRenderStep("Aimbot")
Peace.Aiming["Aimbot"]["Panel"].Enabled = false
Peace.Aiming["Aimbot"]["Panel"]["Target"] = nil
end
end
end
)
Meta.__index = function(t, k)
if
k:lower() == "hit" and
(Peace.Aiming.Redirection.Tab.Enabled or
Peace.Aiming["Redirection"].Panel["Target"].Enabled)
then
local TargetPlayer
if Peace.Aiming["Redirection"].Panel["Target"].Enabled then
TargetPlayer =
Peace.Aiming["Redirection"].Panel["Target"].Player
else
TargetPlayer = ClosestToCursor()
end
LocalPlayer.Chatted:Connect(
function(message)
if Peace.Cmds.Enabled then
local args = string.split(message, " ")
if args[1] == Peace.Cmds.Fov and args[2] ~= nil then
Peace.Link.Field.Visual.Radius = tonumber(args[2])
end
if Peace.Cmds.Enabled then
local args = string.split(message, " ")
if args[1] == Peace.Cmds.Prediction and args[2] ~= nil then
Peace.Aiming.Redirection.Prediction.Amount =
tonumber(args[2])
end
end
end
end
)
local MouseLoop =
RunService.Heartbeat:Connect(
function()
local MouseLocation = UIS:GetMouseLocation()
Field.Inline.Position = Vector2.new(RootToViewportPoint.X,
RootToViewportPoint.Y)
Field.Outline.Position = Vector2.new(RootToViewportPoint.X,
RootToViewportPoint.Y)
else
Field.Inline.Position = Vector2.new(MouseLocation.X,
MouseLocation.Y)
Field.Outline.Position = Vector2.new(MouseLocation.X,
MouseLocation.Y)
end
if
Peace.Aiming.Redirection.Tab.Enabled and
Peace.Aiming.Redirection.IndicateMousePos.Enabled and
Targeted and
not Peace.Aiming["Redirection"].Panel["Target"].Enabled
then
local Root = Targeted.Character[Peace.Aiming["Redirection"]
["HitPart"].Target]
local RootToViewportPoint, IsVisible =
Camera.WorldToViewportPoint(Camera, Root.Position)
Field.MouseLink.Color = Peace.Aiming["Redirection"]["Drawing"]
["Indication Color"]
Field.MouseLink.Transparency = 1
Field.MouseLink.Thickness = 0.4
Field.MouseLink.Filled = false
Field.MouseLink.Radius = 20
Field.MouseLink.Visible = true
Field.MouseLink.Position = Vector2.new(RootToViewportPoint.X,
RootToViewportPoint.Y)
else
Field.MouseLink.Position = Vector2.new()
Field.MouseLink.Visible = false
Rayfield:Notify({
Title = "Notification",
Content = "Executed Silent Aim",
Duration = 5,
Image = 4483362458,
Actions = { -- Notification Buttons
Ignore = {
Name = "Ok!",
Callback = function()
print("The user tapped Ok!")
},
},
})
Rayfield:Notify({
Title = "Binds",
Content = "C Changes Target Style",
Duration = 10,
Image = 4483362458,
Actions = { -- Notification Buttons
Ignore = {
Name = "Got it!",
Callback = function()
print("The user tapped Got it!")
},
},
})
end
end
)
end
)()
end,
})
-- create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "TadachiisESP"
screenGui.Parent = playerGui
screenGui.DisplayOrder = 1
-- create Frame
local holder = Instance.new("Frame")
holder.Name = "Holder"
holder.Parent = screenGui
holder.Size = UDim2.new(0, 200, 0, 100) -- size of the frame
holder.Position = UDim2.new(0.5, -100, 0.5, -50) -- position of the frame at the
center of the screen
holder.BackgroundColor3 = Color3.new(1, 1, 1) -- white background
holder.BackgroundTransparency = 0.5 -- semi-transparent
holder.Draggable = true -- makes the frame draggable
holder.Active = true
-- create TextLabel
local titleLabel = Instance.new("TextLabel")
titleLabel.Name = "TitleLabel"
titleLabel.Text = "Tadachii's ESP GUI"
titleLabel.TextScaled = true
titleLabel.Parent = holder
titleLabel.Size = UDim2.new(1, 0, 0.5, 0) -- fills half of the frame
titleLabel.BackgroundColor3 = Color3.new(1, 1, 1) -- white background
titleLabel.TextColor3 = Color3.new(0, 0, 0) -- black text
titleLabel.BackgroundTransparency = 0.5 -- semi-transparent
-- Remove BillboardGui for each player's head when disabling the ESP
for _, player in ipairs(game.Players:GetPlayers()) do
local billboardGui = player.Character and
player.Character:FindFirstChild("Head") and
player.Character.Head:FindFirstChild("PlayerBillboardGui")
if billboardGui then
billboardGui:Destroy()
end
end
end
-- Update the visibility of BillboardGui elements after clicking the button
for _, player in ipairs(game.Players:GetPlayers()) do
local billboardGui = player.Character and
player.Character:FindFirstChild("Head") and
player.Character.Head:FindFirstChild("PlayerBillboardGui")
if billboardGui then
billboardGui.PlayerNameLabel.Visible = statusButton.Text == "On"
end
end
end
statusButton.MouseButton1Click:Connect(onButtonClicked)
end,
})
Rayfield:Notify({
Title = "Notification",
Content = "Executed ESP",
Duration = 5,
Image = 4483362458,
Actions = { -- Notification Buttons
Ignore = {
Name = "Ok!",
Callback = function()
print("The user tapped Ok!")
},
},
})
print("Executed ESP")