Basic but good script for rivals (not the full prototype)
Lua
local Rayfield = loadstring(game:HttpGet('https://[Log in to view URL]'))()
local Window = Rayfield:CreateWindow({
Name = "Velebit's menu",
LoadingTitle = "Credits to Rayfield for GUI",
LoadingSubtitle = "by Velebit",
Theme = "Default",
ToggleUIKeybind = "K",
ConfigurationSaving = {
Enabled = true,
FileName = "Big Hub"
},
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]" }
}
})
Rayfield:Notify({
Title = "Script Loaded!",
Content = "ESP + Fixed Aimbot Enabled",
Duration = 5,
})
local MainTab = Window:CreateTab("Main", nil)
-- === Aimbot Settings ===
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local aimPart = "Head"
local aimRadius = 200
local aimbotEnabled = false
local smoothing = 4 -- Adjust for smoother/faster tracking
-- Find closest enemy to crosshair
local function getClosestPlayer()
local mouseLocation = UserInputService:GetMouseLocation()
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(screenPoint.X, screenPoint.Y) - Vector2.new(mouseLocation.X, mouseLocation.Y)).Magnitude
if distance < shortestDistance then
closestPlayer = part
shortestDistance = distance
end
end
end
end
return closestPlayer
end
-- Aimbot loop
RunService.RenderStepped:Connect(function()
if aimbotEnabled then
local target = getClosestPlayer()
if target then
local mouseLocation = UserInputService:GetMouseLocation()
local screenPoint = workspace.CurrentCamera:WorldToViewportPoint(target.Position)
local delta = Vector2.new(screenPoint.X, screenPoint.Y) - Vector2.new(mouseLocation.X, mouseLocation.Y)
-- Move mouse toward target (requires executor support)
mousemoverel(delta.X / smoothing, delta.Y / smoothing)
end
end
end)
-- Create toggle in GUI
MainTab:CreateToggle({
Name = "Aimbot",
CurrentValue = false,
Flag = "AimbotToggle",
Callback = function(Value)
aimbotEnabled = Value
Rayfield:Notify({
Title = "Aimbot Toggled",
Content = Value and "Aimbot Enabled (E to toggle lock)" or "Aimbot Disabled",
Duration = 3,
})
end,
})
-- Keybind to toggle targeting within aim session
UserInputService.InputBegan:Connect(function(input, processed)
if not processed and input.KeyCode == Enum.KeyCode.E then
if aimbotEnabled then
print("Aimbot targeting toggled manually with [E]") -- Optional: You can build a toggle lock feature here
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.