0% found this document useful (0 votes)
35 views21 pages

Script Hub for Roblox Game 286090429

The document is a Lua script for a game that creates a user interface for a script hub called 'OP Script Hub' by 1_F5. It includes features such as a button for infinite yield, a slider to adjust player walkspeed, and options for an aimbot with various settings. The script also incorporates a notification system and visual elements for user interaction within the game.

Uploaded by

bulelaowuiii
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)
35 views21 pages

Script Hub for Roblox Game 286090429

The document is a Lua script for a game that creates a user interface for a script hub called 'OP Script Hub' by 1_F5. It includes features such as a button for infinite yield, a slider to adjust player walkspeed, and options for an aimbot with various settings. The script also incorporates a notification system and visual elements for user interaction within the game.

Uploaded by

bulelaowuiii
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

if game.

PlaceId == 286090429 then

local Rayfield = loadstring(game:HttpGet('[Link]

local Window = Rayfield:CreateWindow({


Name = "For Any Game",
LoadingTitle = "OP Script Hub",
LoadingSubtitle = "By 1_F5",
ConfigurationSaving = {
Enabled = false,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "1_F5S SCRIPT HUB"
},
Discord = {
Enabled = false,
Invite = "noinvitelink", -- The Discord invite code, do not include
[Link]/. E.g. [Link]/ABCD would be ABCD
RememberJoins = true -- Set this to false to make them join the discord every
time they load it up
},
KeySystem = false, -- Set this to true to use our key system
KeySettings = {
Title = "Untitled",
Subtitle = "Key System",
Note = "No method of obtaining the key is provided",
FileName = "Key", -- It is recommended to use something unique as other
scripts using Rayfield may overwrite your key file
SaveKey = true, -- The user's key will be saved, but if you change the key,
they will be unable to use your script
GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site
you would like Rayfield to get the key from
Key = {"Hello"} -- List of keys that will be accepted by the system, can be
RAW file links (pastebin, github etc) or simple strings ("hello","key22")
}
})

local MainTab = Window:CreateTab("🏠 Home 🏠", nil) -- Title, Image


local MainSection = MainTab:CreateSection("Main")

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
},
},
})

local Button = MainTab:CreateButton({


Name = "Inf Yelid",
Callback = function()
loadstring(game:HttpGet('[Link]
master/source'))()
end,
})

local Slider = MainTab:CreateSlider({


Name = "Walkspeed",
Range = {0, 300},
Increment = 1,
Suffix = "Speed",
CurrentValue = 16,
Flag = "Slider1", -- A flag is the identifier for the configuration file, make
sure every element has a different flag if you're using configuration saving to
ensure no overlaps
Callback = function(Value)
[Link] = (Value)
end,
})

local Dropdown = MainTab:CreateDropdown({


Name = "Select How OP You Want It",
Options = {"OP","Blantant","Non Bannable"},
CurrentOption = {"OP"},
MultipleOptions = false,
Flag = "How OP", -- A flag is the identifier for the configuration file, make
sure every element has a different flag if you're using configuration saving to
ensure no overlaps
Callback = function(Option)
print(Option)
end,
})

local OPTab = Window:CreateTab("🔫Aimbot", nil) -- Title, Image


local Section = AimbotTab:CreateSection("Options")

local Button = AimbotTab:CreateButton({


Name = "Silent Aim",
Callback = function()
-- have fun pasters,
-- made with ❤ from chips

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"] = [Link](4, 0, 255)
},
["OutDoor Ambient"] = {
["Enabled"] = false, -- // Had To Push The Release
["Color"] = [Link](4, 0, 255)
},
["Fog Modifications"] = {
["Enabled"] = false, -- // Modifies Your Fog
["Color"] = [Link](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"] = [Link](255, 246, 180),
["Outline"] = [Link]()
},
["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"] = [Link](255, 255, 255)
},
["Outline"] = {
["Transparency"] = 0.65,
["Color"] = [Link](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"] = [Link](211, 211, 211),
["Color2"] = [Link](128, 0, 0),
["Indication Color"] = [Link](255, 0, 0),
["Line Color"] = [Link](255, 255, 255),
["Line Outline Color"] = [Link](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 = [Link](244, 245, 243)
}
}
}

if not LPH_OBFUSCATED then


LPH_JIT_MAX = function(...)
return (...)
end
LPH_JIT_ULTRA = function(...)
return (...)
end
end

LPH_JIT_MAX(
function()
local Drawing, FromRGB = [Link], [Link]
local UIS, Players, MPS, RunService, Camera, Tween =
game:GetService("UserInputService"),
game:GetService("Players"),
game:GetService("MarketplaceService"),
game:GetService("RunService"),
[Link],
{}

function Direction(Value, Two)


return [Link](Value / Peace["Scale"].X, Two / Peace["Scale"].Y)
end

local Title = Drawing("Text")


local Value = Drawing("Text")
local Part = Drawing("Text")
if Peace["Main"]["Intro"] == true then
local Tracer = Drawing("Image")
local Blur = [Link]("BlurEffect")
local screenSize = [Link]
local centerPosition = [Link](screenSize.X / 2, screenSize.Y / 2)
[Link] = centerPosition
[Link] = [Link](0, 0)
[Link] = true
[Link] = game:HttpGet("[Link]
[Link] = 0
[Link] = [Link]
for i = 1, 100 do
if [Link] ~= 150 then
[Link] = [Link] + 1
end
[Link]()
end
wait(2)
[Link] = [Link](400, 400)
[Link] = centerPosition - [Link] / 2
for i = 1, 100 do
if [Link] ~= 0 then
[Link] = [Link] - 0.01
end
if [Link] ~= 0 then
[Link] = [Link] - 1
end
[Link]()
end
[Link] = [Link](0, 0)
Blur:Destroy()
end
wait(0.15)

local function Table()


local hitparts = [Link]["HitPart"]["Validated Parts"]

[Link], [Link] =
Direction([Link].X + 800, [Link].Y),
Peace["Title"].Size
[Link], [Link] =
Direction([Link].X, [Link].Y + 400),
Peace["Title"].Size
[Link], [Link] =
Direction([Link].X + 800, [Link].Y +
600),
Peace["Title"].Size

if Peace["Main"]["User InterFace"] then


[Link], [Link] =
tostring(
Peace["Title"].Text ..
" " ..
Peace["Title"].[Link] ..
[Link]:GetValueString()
.. Peace["Title"].[Link]
),
2
[Link], [Link], [Link], [Link] =
Peace["Main"]["Visible Text"],
true,
Peace["Color"].Inline,
Peace["Color"].Outline

[Link], [Link], [Link], [Link],


[Link] =
2,
Peace["Main"]["Visible Text"],
true,
[Link]["Drawing"]["Color1"],
Peace["Color"].Outline

[Link], [Link], [Link], [Link],


[Link] =
2,
Peace["Main"]["Visible Text"],
true,
[Link]["Drawing"]["Color2"],
Peace["Color"].Outline

if [Link]["Tab"].Enabled then
[Link] = [Link] ..
"redirection" .. " = " .. "enabled" -- [Link]
[Link] =
tostring(
"hitpart" ..
" = " ..
([Link]["Redirection"]["HitPart"]
["Target"]):lower() ..
[Link]
)
else
[Link] = ""
[Link] =
[Link] ..
"redirection" .. " = " .. "disabled" ..
[Link]
end
else
end
end

local Utilitie = {}
[Link] = false

[Link]:Connect(
function(Two, Input)
if not Input then
if [Link] == Peace["Main"]["Keybind"] then
[Link] = not [Link]
if [Link] then
RunService:BindToRenderStep("Table!", 1, Table)
for i = 0, 1, Peace["Fade Speed"].Intro do
wait(0)
[Link] = i
[Link] = i
[Link] = i
end
Peace["Main"]["User InterFace"] = true
Peace["Main"]["Visible Text"] = true
elseif not [Link] then
RunService:UnbindFromRenderStep("Table")
Peace["Main"]["User InterFace"] = false

[Link] = 0.9
[Link] = 0.9
[Link] = 0.9
wait(Peace["Fade Speed"].Outro)
[Link] = 0.8
[Link] = 0.8
[Link] = 0.8
wait(Peace["Fade Speed"].Outro)
[Link] = 0.7
[Link] = 0.7
[Link] = 0.7
wait(Peace["Fade Speed"].Outro)
[Link] = 0.6
[Link] = 0.6
[Link] = 0.6
wait(Peace["Fade Speed"].Outro)
[Link] = 0.5
[Link] = 0.5
[Link] = 0.5
wait(Peace["Fade Speed"].Outro)
[Link] = 0.4
[Link] = 0.4
[Link] = 0.4
wait(Peace["Fade Speed"].Outro)
[Link] = 0.3
[Link] = 0.3
[Link] = 0.3
wait(Peace["Fade Speed"].Outro)
[Link] = 0.2
[Link] = 0.2
[Link] = 0.2
wait(Peace["Fade Speed"].Outro)
[Link] = 0.1
[Link] = 0.1
[Link] = 0.1
wait(Peace["Fade Speed"].Outro)
[Link] = 0.1
[Link] = 0.1
[Link] = 0.1
wait(Peace["Fade Speed"].Outro)

[Link] = 0
[Link] = 0
[Link] = 0
end
end
end
end
)

WTS = (function(Object)
local ObjectVector = Camera:WorldToScreenPoint([Link])
return [Link](ObjectVector.X, ObjectVector.Y)
end)

local Field = {}
[Link], [Link], [Link] = Drawing("Circle"),
Drawing("Circle"), Drawing("Circle")

[Link], [Link] = Drawing("Line"), Drawing("Line")

[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]

[Link] = 3
[Link] = 4

[Link] = 3
[Link] = 0.8
[Link] = [Link]["Redirection"]["Drawing"]["Line Color"]

[Link] = 7
[Link] = 0.4
[Link] = [Link]["Redirection"]["Drawing"]["Line
Outline Color"]

[Link] = true

[Link] = false
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
local GameInfo = [Link]

local LocalPlayer = [Link]


local Mouse = LocalPlayer:GetMouse()

local IgnoreList = {[Link], Camera}

local function PartVisible(Part)


if [Link]["Visible"] and Part and [Link] then
local Hit =
workspace:FindPartOnRayWithIgnoreList(
[Link]([Link], [Link] -
[Link]),
IgnoreList
)
if Hit and Hit:IsDescendantOf(Part) then
return true
end
return false
else
return true
end
end

function ClosestToCursor()
local Closest = nil
local Distance = [Link]
for i, v in pairs(Players:GetPlayers()) do
if
v ~= [Link] and [Link] and
[Link]:FindFirstChild("HumanoidRootPart") and
([Link]["Check"]["Team"] == true and ([Link] ~=
[Link]) or
[Link]["Check"]["Team"] ~= true)
then
local MouseLocation = UIS:GetMouseLocation()

local Vector, IsVisible =


Camera:WorldToViewportPoint([Link])
local Magnitude =
([Link](Vector.X, Vector.Y) -
[Link](MouseLocation.X, MouseLocation.Y)).magnitude

if Magnitude < Distance and IsVisible and


PartVisible([Link]) then
Closest = v
Distance = Magnitude
end
end
end

if GameInfo == 2788229376 and [Link]["Check"]["IsDead"] then


if
Closest and [Link] and not
[Link]:FindFirstChild("GRABBING_CONSTRAINT") and
not [Link]:FindFirstChild("BodyEffects")
["K.O"].Value
then
return Closest
end
return nil
end
if GameInfo ~= 2788229376 and [Link]["Check"]["IsDead"] then
if Closest and [Link] and
[Link] > 0 then
return Closest
end
return nil
end

return Closest
end

local function LineToggle(Value)


[Link] = Value
[Link] = Value
end

local function LineRedirect()


if not [Link]["Redirection"]["Panel"]["Target"].Enabled then
LineToggle(false)
return
end

local Target = [Link]["Redirection"]["Panel"]["Target"].Player


if not Target then
LineToggle(false)
return
end
if not [Link]["Redirection"]["Panel"]["Target"].[Link]
then
return
end
local Vector, IsVisible =

Camera:worldToViewportPoint([Link][[Link]["Redirection"]["HitPart"]
["Target"]].Position)
local TorsoPosition =
Camera:worldToViewportPoint(
[Link][[Link]["Redirection"]["Panel"]
["Target"].[Link]].Position
)

LineToggle(IsVisible)
if not IsVisible then
return
end

[Link] = [Link](TorsoPosition.X, TorsoPosition.Y)


[Link] = [Link](Vector.X, Vector.Y)
[Link] = [Link](TorsoPosition.X, TorsoPosition.Y)
[Link] = [Link](Vector.X, Vector.Y)
end

local Toggle = {}
[Link], [Link], [Link], [Link] = false,
false, false, false

[Link]:Connect(
function(Two, Value)
if not Value then
if [Link] == [Link] then
[Link] = not [Link]
if [Link] then
[Link] = true
[Link] = true
elseif not [Link] then
[Link] = false
[Link] = false
end
end
end
end
)

[Link]:Connect(
function(Two, Value)
if not Value then
if [Link] == [Link]["Redirection"]
["Tab"].Keybind then
[Link] = not [Link]
if [Link] then
[Link]["Redirection"]["Tab"]["Enabled"] = true
elseif not [Link] then
[Link]["Redirection"]["Tab"]["Enabled"] = false
end
end
end
end
)

[Link]:Connect(
function(Two, Value)
if not Value then
if [Link] ==
[Link]["Redirection"].Panel["Target"]["Keybind"] then
[Link] = not [Link]
if [Link] then
[Link]["Redirection"].Panel["Target"].Enabled =
true
[Link]["Redirection"]["Panel"]["Target"].Player =
ClosestToCursor()

RunService:BindToRenderStep("VisualLine", 1,
LineRedirect)
elseif not [Link] then
[Link]["Redirection"].Panel["Target"].Enabled =
false
[Link]["Redirection"]["Panel"]["Target"].Player =
nil
RunService:UnbindFromRenderStep("VisualLine")
[Link]:Wait()
[Link] = false
[Link] = false
end
end
end
end
)

local Mouse = [Link]:GetMouse()

local function ClosestPart()


local MouseToPart
local Distance = 1000
do
for i, v in next, [Link]["Redirection"]["HitPart"]["Validated
Part"] do
local Part = ClosestToCursor().Character:FindFirstChild(v)
if Part then
local Magnitude = (WTS(Part) - [Link](Mouse.X,
Mouse.Y)).magnitude
if Magnitude < Distance then
MouseToPart = Part
Distance = Magnitude
end
end
end
end
return MouseToPart
end

spawn(
function()
pcall(
function()
while wait() do
if ClosestToCursor() ~= nil then
-- Character = ClosestToCursor().Character
[Link]["Redirection"]["HitPart"]["Target"] =
tostring(ClosestPart())
end
end
end
)
end
)

local Aimbot = function()


local Target = [Link]["Aimbot"]["Panel"]["Panel"]["Target"]
if not Target then
Target = ClosestToCursor()
end

if
[Link]["Aimbot"]["Panel"].Enabled and Target and
[Link]["Aimbot"]["Panel"]["HitPart"]["Target"] ~= nil
then
local Part = [Link]["Aimbot"]["Panel"]["HitPart"]["Target"]
local Position, Movement =
[Link](Mouse.X, Mouse.Y),
[Link]["Aimbot"]["Panel"]["Prediction"].Enabled

if [Link]["Aimbot"]["Panel"]["Panel"].Method == "Camera" then


-- , [Link][[Link]["Aimbot"].[Link]] ,
[Link][[Link]]

[Link] =
[Link]:Lerp(
[Link](
[Link],
[Link][Part].Position +
[Link][Part].Velocity /
[Link]["Aimbot"]["Panel"]["Prediction"].Amount
),
[Link]["Aimbot"]["Panel"].[Link] / 1000,
[Link][[Link]["Aimbot"]["Panel"]
["Panel"].[Link]],
[Link][[Link]["Aimbot"]["Panel"]
["Panel"].[Link]]
)
elseif [Link]["Aimbot"]["Panel"]["Panel"].Method == "Mouse"
then
local A =
Camera:WorldToScreenPoint(
[Link][Part].Position +
[Link][Part].Velocity /
[Link]["Aimbot"]["Panel"]["Prediction"].Amount
)
Position =
mousemoverel(
(A.X - Mouse.X) / [Link]["Aimbot"]
["Panel"].[Link],
(A.Y - Mouse.Y) / [Link]["Aimbot"]
["Panel"].[Link]
)
end

if
[Link]["Aimbot"]["Panel"]["HitPart"].[Link]
and
[Link] ==
[Link]
then
Part = [Link]["Aimbot"]["Panel"]
["HitPart"].[Link]
end
end
end

--[[[Link]:Connect(
function(Two, Value)
if not Value then
if [Link] == [Link]["Aimbot"]["Panel"]["Keybind"] then
[Link]["Aimbot"]["Panel"].Enabled = true

RunService:BindToRenderStep("Aimbot", 1, Aimbot)
else
RunService:UnbindFromRenderStep("Aimbot")
[Link]["Aimbot"]["Panel"].Enabled = false
[Link]["Aimbot"]["Panel"]["Target"] = nil
end
end
end
)--]]
--[[[Link]:Connect(function(Input)
if [Link] == [Link]["Aimbot"]["Panel"]["Keybind"] then
[Link]["Aimbot"]["Panel"].Enabled = true
RunService:BindToRenderStep("Aimbot", 1, Aimbot)

end
end)

[Link]:Connect(function(Input)
if [Link] == [Link]["Aimbot"]["Panel"]["Keybind"] then
RunService:UnbindFromRenderStep("Aimbot")
[Link]["Aimbot"]["Panel"].Enabled = false
[Link]["Aimbot"]["Panel"]["Target"] = nil
end
end)--]]
[Link]:Connect(
function(a)
if not (UIS:GetFocusedTextBox()) then
if a == [Link]["Aimbot"]["Panel"]["Keybind"]
["Enabled"]:lower() then
[Link]["Aimbot"]["Panel"].Enabled = true
RunService:BindToRenderStep("Aimbot", 1, Aimbot)
end
end
end
)
[Link]:Connect(
function(a)
if not (UIS:GetFocusedTextBox()) then
if a == [Link]["Aimbot"]["Panel"]["Keybind"]
["Disabled"]:lower() then
RunService:UnbindFromRenderStep("Aimbot")
[Link]["Aimbot"]["Panel"].Enabled = false
[Link]["Aimbot"]["Panel"]["Target"] = nil
end
end
end
)

local Meta = getrawmetatable(game)


local backupindex = Meta.__index
setreadonly(Meta, false)

Meta.__index = function(t, k)
if
k:lower() == "hit" and
([Link] or
[Link]["Redirection"].Panel["Target"].Enabled)
then
local TargetPlayer

if [Link]["Redirection"].Panel["Target"].Enabled then
TargetPlayer =
[Link]["Redirection"].Panel["Target"].Player
else
TargetPlayer = ClosestToCursor()
end

if TargetPlayer and [Link] then


local Chance = [Link] >=
[Link](1, 100)
if not Chance then
return backupindex(t, k)
end

local Part = [Link][[Link]["Redirection"]


["HitPart"].Target]
local Position = [Link]
local Movement = [Link]()
if not [Link] then
Movement = [Link] *
[Link]
else
Movement =
[Link] *
[Link] *
[Link]
end
if Position then
return [Link] + Movement
end
end
end
return backupindex(t, k)
end

[Link]:Connect(
function(message)
if [Link] then
local args = [Link](message, " ")
if args[1] == [Link] and args[2] ~= nil then
[Link] = tonumber(args[2])
end

if [Link] then
local args = [Link](message, " ")
if args[1] == [Link] and args[2] ~= nil then
[Link] =
tonumber(args[2])
end
end
end
end
)

local function UpdateAmbient()


if [Link] then
game:GetService("Lighting").Ambient = [Link]
else
game:GetService("Lighting").Ambient = [Link]()
end
end
[Link]:Connect(UpdateAmbient)
UpdateAmbient()

local function UpdateFog()


if Peace["Visuals"]["Fog Modifications"]["Enabled"] == true then
game:GetService("Lighting").FogColor = Peace["Visuals"]["Fog
Modifications"]["Color"]
game:GetService("Lighting").FogStart = Peace["Visuals"]["Fog
Modifications"]["Start"]
game:GetService("Lighting").FogEnd = Peace["Visuals"]["Fog
Modifications"]["End"]
end
end
[Link]:Connect(UpdateFog)

local function UpdateOutDoor()


if Peace["Visuals"]["OutDoor Ambient"]["Enabled"] == true then
game:GetService("Lighting").OutdoorAmbient = Peace["Visuals"]
["OutDoor Ambient"]["Color"]
end

if Peace["Visuals"]["OutDoor Ambient"]["Enabled"] == false then


game:GetService("Lighting").OutdoorAmbient = [Link](125,
125, 125)
end
end
[Link]:Connect(UpdateOutDoor)

local MouseLoop =
[Link]:Connect(
function()
local MouseLocation = UIS:GetMouseLocation()

local Targeted = ClosestToCursor()


if [Link]["Visual"]["Control"]["Stick To Target"] and
Targeted and [Link] then
local Root = [Link][[Link]["Redirection"]
["HitPart"].Target]
local RootToViewportPoint, IsVisible =
[Link](Camera, [Link])

[Link] = [Link](RootToViewportPoint.X,
RootToViewportPoint.Y)
[Link] = [Link](RootToViewportPoint.X,
RootToViewportPoint.Y)
else
[Link] = [Link](MouseLocation.X,
MouseLocation.Y)
[Link] = [Link](MouseLocation.X,
MouseLocation.Y)
end

if
[Link] and
[Link] and
Targeted and
not [Link]["Redirection"].Panel["Target"].Enabled
then
local Root = [Link][[Link]["Redirection"]
["HitPart"].Target]
local RootToViewportPoint, IsVisible =
[Link](Camera, [Link])
[Link] = [Link]["Redirection"]["Drawing"]
["Indication Color"]
[Link] = 1
[Link] = 0.4
[Link] = false
[Link] = 20
[Link] = true
[Link] = [Link](RootToViewportPoint.X,
RootToViewportPoint.Y)
else
[Link] = [Link]()
[Link] = 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!")
},
},
})

print("Executed Silent Aim")


Rayfield:Notify({
Title = "Binds",
Content = "X Opens GUI",
Duration = 10,
Image = 4483362458,
Actions = { -- Notification Buttons
Ignore = {
Name = "Got it!",
Callback = function()
print("The user tapped Got it!")
},
},
})

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,
})

local Button = AimbotTab:CreateButton({


Name = "ESP",
Callback = function()
local playerGui = [Link]:WaitForChild("PlayerGui")

-- check if the ScreenGui already exists, if it does, destroy it and remove


BillboardGuis
if playerGui:FindFirstChild("TadachiisESP") then
playerGui:FindFirstChild("TadachiisESP"):Destroy()

for _, player in ipairs([Link]:GetPlayers()) do


local billboardGui = [Link] and
[Link]:FindFirstChild("Head") and
[Link]:FindFirstChild("PlayerBillboardGui")
if billboardGui then
billboardGui:Destroy()
end
end
end

-- create ScreenGui
local screenGui = [Link]("ScreenGui")
[Link] = "TadachiisESP"
[Link] = playerGui
[Link] = 1

-- create Frame
local holder = [Link]("Frame")
[Link] = "Holder"
[Link] = screenGui
[Link] = [Link](0, 200, 0, 100) -- size of the frame
[Link] = [Link](0.5, -100, 0.5, -50) -- position of the frame at the
center of the screen
holder.BackgroundColor3 = [Link](1, 1, 1) -- white background
[Link] = 0.5 -- semi-transparent
[Link] = true -- makes the frame draggable
[Link] = true

-- create TextLabel
local titleLabel = [Link]("TextLabel")
[Link] = "TitleLabel"
[Link] = "Tadachii's ESP GUI"
[Link] = true
[Link] = holder
[Link] = [Link](1, 0, 0.5, 0) -- fills half of the frame
titleLabel.BackgroundColor3 = [Link](1, 1, 1) -- white background
titleLabel.TextColor3 = [Link](0, 0, 0) -- black text
[Link] = 0.5 -- semi-transparent

-- create TextLabel for Status


local statusLabel = [Link]("TextLabel")
[Link] = "StatusLabel"
[Link] = ""
[Link] = holder
[Link] = [Link](1, 0, 0.25, 0) -- fills one-fourth of the frame below
the TitleLabel
[Link] = [Link](0, 0, 0.5, 0) -- aligns the text label to the
bottom of the frame
statusLabel.BackgroundColor3 = [Link](1, 1, 1) -- white background
statusLabel.TextColor3 = [Link](0, 0, 0) -- black text
[Link] = 0.5 -- semi-transparent
[Link] = true -- enable text scaling for the status label

-- create TextButton for Status


local statusButton = [Link]("TextButton")
[Link] = "StatusButton"
[Link] = "Off"
[Link] = holder
[Link] = [Link](1, 0, 0.25, 0) -- fills one-fourth of the frame below
the StatusLabel
[Link] = [Link](0, 0, 0.75, 0) -- aligns the button to the bottom
of the frame
statusButton.BackgroundColor3 = [Link](1, 1, 1) -- white background
statusButton.TextColor3 = [Link](0, 0, 0) -- black text
[Link] = 0.5 -- semi-transparent
[Link] = true -- enable text scaling for the button

-- Function to create BillboardGui for a player with name and distance


local function createBillboardGuiForPlayer(player, distance)
local billboardGui = [Link]("BillboardGui")
[Link] = "PlayerBillboardGui"
[Link] = [Link]
[Link] = [Link](0, 100, 0, 50) -- fixed size for the BillboardGui
[Link] = [Link](0, 2, 0) -- adjust the vertical offset
as needed
[Link] = true
[Link] = 1
[Link] = [Link]
[Link] = [Link]

local textLabel = [Link]("TextLabel")


[Link] = "PlayerNameLabel"
[Link] = [Link] .. "\nDistance: " .. [Link](distance)
[Link] = [Link](1, 0, 1, 0)
[Link] = 1 -- transparent background
textLabel.TextColor3 = [Link](1, 0, 0) -- red text for the player's name
[Link] = true
textLabel.TextStrokeColor3 = [Link](0, 0, 0) -- black text stroke
[Link] = 0 -- fully opaque text stroke (visible
through walls)
[Link] = [Link] == "On" -- Hide the text if StatusButton
is "Off"
[Link] = billboardGui
end

-- Function to update player ESP distance


local function updatePlayerESP()
local localCharacter = [Link]
if not localCharacter then
return
end

for _, player in ipairs([Link]:GetPlayers()) do


if player ~= [Link] and [Link] and
[Link]:FindFirstChild("Head") then
local distance = ([Link] -
[Link]).Magnitude
local billboardGui =
[Link]:FindFirstChild("PlayerBillboardGui")
if billboardGui then
[Link] = [Link] .. "\nDistance:
" .. [Link](distance)
[Link].TextColor3 = [Link](1, 0, 0) --
Set the text color to red
[Link] = [Link] == "On" --
Update visibility based on StatusButton
else
createBillboardGuiForPlayer(player, distance)
end
end
end
end

-- Call updatePlayerESP() initially and then schedule it to be called every 0.01


seconds
updatePlayerESP()
game:GetService("RunService").Heartbeat:Connect(function()
updatePlayerESP()
end)

-- Now, you can add functionality to the button, for example:


local function onButtonClicked()
if [Link] == "Off" then
[Link] = "On"
-- Add code to enable the player ESP here
else
[Link] = "Off"
-- Add code to disable the player ESP here

-- Remove BillboardGui for each player's head when disabling the ESP
for _, player in ipairs([Link]:GetPlayers()) do
local billboardGui = [Link] and
[Link]:FindFirstChild("Head") and
[Link]:FindFirstChild("PlayerBillboardGui")
if billboardGui then
billboardGui:Destroy()
end
end
end
-- Update the visibility of BillboardGui elements after clicking the button
for _, player in ipairs([Link]:GetPlayers()) do
local billboardGui = [Link] and
[Link]:FindFirstChild("Head") and
[Link]:FindFirstChild("PlayerBillboardGui")
if billboardGui then
[Link] = [Link] == "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")

You might also like