local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
-- anti cheat bypass/anti ban
getgenv().SecureMode = true
local Window = Rayfield:CreateWindow({
Name = "SecureHub",
LoadingTitle = "SecureHub aimbot",
LoadingSubtitle = "by Sirius",
ConfigurationSaving = {
Enabled = true,
FolderName = Jumpscarescript, -- Create a custom folder for your hub/game
FileName = "Big Hub"
},
Discord = {
Enabled = false,
Invite = "noinvitelink", -- The Discord invite code, do not include discord.gg/. E.g. discord.gg/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 AimbotTab = Window:CreateTab("Aimbot", 4483362458) -- Title, Image
local Button = Tab:CreateButton({
Name = "Pro Aimbot",
Callback = function()
local teamCheck = true
local fov = 150
local smoothing = 1
local RunService = game:GetService("RunService")
local FOVring = Drawing.new("Circle")
FOVring.Visible = true
FOVring.Thickness = 1.5
FOVring.Radius = fov
FOVring.Transparency = 1
FOVring.Color = Color3.fromRGB(255, 128, 128)
FOVring.Position = workspace.CurrentCamera.ViewportSize/2
local function getClosest(cframe)
local ray = Ray.new(cframe.Position, cframe.LookVector).Unit
local target = nil
local mag = math.huge
for i,v in pairs(game.Players:GetPlayers()) do
if v.Character and v.Character:FindFirstChild("Head") and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("HumanoidRootPart") and v ~= game.Players.LocalPlayer and (v.Team ~= game.Players.LocalPlayer.Team or (not teamCheck)) then
local magBuf = (v.Character.Head.Position - ray:ClosestPoint(v.Character.Head.Position)).Magnitude
if magBuf < mag then
mag = magBuf
target = v
end
end
end
return target
end
loop = RunService.RenderStepped:Connect(function()
local UserInputService = game:GetService("UserInputService")
local pressed = --[[UserInputService:IsKeyDown(Enum.KeyCode.E)]] UserInputService:IsMouseButtonPressed(Enum.UserInputType.MouseButton2) --Enum.UserInputType.MouseButton2
local localPlay = game.Players.localPlayer.Character
local cam = workspace.CurrentCamera
local zz = workspace.CurrentCamera.ViewportSize/2
if pressed then
local Line = Drawing.new("Line")
local curTar = getClosest(cam.CFrame)
local ssHeadPoint = cam:WorldToScreenPoint(curTar.Character.Head.Position)
ssHeadPoint = Vector2.new(ssHeadPoint.X, ssHeadPoint.Y)
if (ssHeadPoint - zz).Magnitude < fov then
workspace.CurrentCamera.CFrame = workspace.CurrentCamera.CFrame:Lerp(CFrame.new(cam.CFrame.Position, curTar.Character.Head.Position), smoothing)
end
end
if UserInputService:IsKeyDown(Enum.KeyCode.Delete) then
loop:Disconnect()
FOVring:Remove()
end
end)
end,
})
To embed this project on your website, copy the following code and paste it into your website's HTML: