Great script maj frend
Lua
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local Window = Rayfield:CreateWindow({
Name = "Velebit's Menu",
Icon = 0,
LoadingTitle = "Credits to Rayfield",
LoadingSubtitle = "by Velebit",
Theme = "Default",
ToggleUIKeybind = "K",
ConfigurationSaving = {
Enabled = true,
FolderName = nil,
FileName = "Big Hub"
},
Discord = {
Enabled = false,
Invite = "noinvitelink",
RememberJoins = true
},
KeySystem = true,
KeySettings = {
Title = "Enter a key",
Subtitle = "Key System",
Note = "The key is subscribes",
FileName = "very unique place to store script",
SaveKey = true,
GrabKeyFromSite = true,
Key = {"https://[Log in to view URL]"}
}
})
local MainTab = Window:CreateTab("Main", nil)
local VisualsTab = Window:CreateTab("Visuals", nil)
Rayfield:Notify({
Title = "You successfully executed the script",
Content = "Have fun!",
Duration = 5,
Image = nil,
})
-- // ESP SYSTEM
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
local espEnabled = false
local espObjects = {}
local function createESP(player)
if player == LocalPlayer then return end
if espObjects[player] then return end
local drawings = {
Name = Drawing.new("Text"),
Lines = {}
}
drawings.Name.Size = 14
drawings.Name.Center = true
drawings.Name.Outline = true
drawings.Name.Color = Color3.fromRGB(0, 255, 0)
drawings.Name.Visible = false
for i = 1, 8 do
local line = Drawing.new("Line")
line.Thickness = 2
line.Color = Color3.fromRGB(255, 255, 255)
line.Visible = false
table.insert(drawings.Lines, line)
end
espObjects[player] = drawings
end
local function removeESP(player)
local drawings = espObjects[player]
if drawings then
drawings.Name:Remove()
for _, line in pairs(drawings.Lines) do
line:Remove()
end
espObjects[player] = nil
end
end
RunService.RenderStepped:Connect(function()
if not espEnabled then
for _, drawings in pairs(espObjects) do
drawings.Name.Visible = false
for _, line in pairs(drawings.Lines) do
line.Visible = false
end
end
return
end
for _, player in pairs(Players:GetPlayers()) do
if player == LocalPlayer then continue end
local character = player.Character
local hrp = character and character:FindFirstChild("HumanoidRootPart")
local head = character and character:FindFirstChild("Head")
if character and hrp and head then
createESP(player)
local drawings = espObjects[player]
local pos, onScreen = workspace.CurrentCamera:WorldToViewportPoint(head.Position + Vector3.new(0, 1.5, 0))
if onScreen then
drawings.Name.Position = Vector2.new(pos.X, pos.Y)
drawings.Name.Text = player.Name
drawings.Name.Visible = true
else
drawings.Name.Visible = false
end
local parts = {
character:FindFirstChild("Head"),
character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"),
character:FindFirstChild("Left Arm") or character:FindFirstChild("LeftUpperArm"),
character:FindFirstChild("Right Arm") or character:FindFirstChild("RightUpperArm"),
character:FindFirstChild("Left Leg") or character:FindFirstChild("LeftUpperLeg"),
character:FindFirstChild("Right Leg") or character:FindFirstChild("RightUpperLeg")
}
local connections = {
{1, 2}, {2, 3}, {2, 4}, {2, 5}, {2, 6}
}
local i = 1
for _, conn in pairs(connections) do
local a, b = parts[conn[1]], parts[conn[2]]
if a and b then
local pos1, onscreen1 = workspace.CurrentCamera:WorldToViewportPoint(a.Position)
local pos2, onscreen2 = workspace.CurrentCamera:WorldToViewportPoint(b.Position)
if onscreen1 and onscreen2 then
local line = drawings.Lines[i]
line.From = Vector2.new(pos1.X, pos1.Y)
line.To = Vector2.new(pos2.X, pos2.Y)
line.Visible = true
else
drawings.Lines[i].Visible = false
end
else
drawings.Lines[i].Visible = false
end
i = i + 1
end
else
removeESP(player)
end
end
end)
Players.PlayerRemoving:Connect(removeESP)
-- Visuals Tab Toggle
local WallhackToggle = VisualsTab:CreateToggle({
Name = "Wallhacks / ESP",
CurrentValue = false,
Flag = "ESP_Toggle",
Callback = function(Value)
espEnabled = Value
end,
})
-- // AIMBOT
local aimbotEnabled = false
local aimPart = "Head"
local aimRadius = 200
local Mouse = LocalPlayer:GetMouse()
local function getClosestPlayer()
local closestPlayer = nil
local shortestDistance = aimRadius
for _, player in ipairs(Players:GetPlayers()) do
if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild(aimPart) then
local part = player.Character[aimPart]
local screenPoint, onScreen = workspace.CurrentCamera:WorldToViewportPoint(part.Position)
if onScreen then
local distance = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(screenPoint.X, screenPoint.Y)).Magnitude
if distance < shortestDistance then
closestPlayer = part
shortestDistance = distance
end
end
end
end
return closestPlayer
end
RunService.RenderStepped:Connect(function()
if aimbotEnabled then
local target = getClosestPlayer()
if target then
workspace.CurrentCamera.CFrame = CFrame.new(workspace.CurrentCamera.CFrame.Position, target.Position)
end
end
end)
-- Aimbot Toggle
local AimbotToggle = MainTab:CreateToggle({
Name = "Aimbot (press E to toggle targeting)",
CurrentValue = false,
Flag = "Aimbot_Toggle",
Callback = function(Value)
aimbotEnabled = Value
end,
})
-- Optional manual toggle with key (E)
game:GetService("UserInputService").InputBegan:Connect(function(input, processed)
if not processed and input.KeyCode == Enum.KeyCode.E then
if AimbotToggle.CurrentValue ~= nil then
AimbotToggle:Set(not AimbotToggle.CurrentValue)
end
end
end)
Output
Embed on website
To embed this program on your website, copy the following code and paste it into your website's HTML:
Comments
This comment belongs to a banned user and is only visible to admins.
This comment belongs to a deleted user and is only visible to admins.