M
Description
script for sniper arena roblox, aim, trigger bot, esp.
GAME[FPS] Sniper Arena
UPDATEDOct 10, 2026
ACCESSKeyless
PLATFORMDesktop
Script source Luau
-- [[ BloxScripts Risk Notice ]]
-- This script has not been verified by BloxScripts.fun. Deal with caution.
--
-- Stay safe:
-- • Never log in on unofficial Roblox sites or lookalike domains.
-- • Real Roblox links use roblox.com (check the .com ending).
-- • Treat fake Roblox login / "claim reward" pages as phishing.
-- [[ End BloxScripts Risk Notice ]]
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local VirtualInputManager = game:GetService("VirtualInputManager")
local CoreGui = game:GetService("CoreGui")
local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera
getgenv().RivalsConfig = {
Visuals = {
Boxes = false,
BoxesBot = false,
Names = false,
Distance = false,
BoxColor = Color3.fromRGB(80, 140, 255),
NameColor = Color3.fromRGB(80, 140, 255),
DistanceColor = Color3.fromRGB(80, 140, 255)
},
Combat = {
RageBot = false,
RageDelay = 0,
},
Destruction = { WallBypass = false },
Movements = { Fly = false, FlyMultiplier = 5 },
Options = { MenuKey = Enum.KeyCode.Home }
}
if CoreGui:FindFirstChild("RivalsModernHub") then
CoreGui.RivalsModernHub:Destroy()
end
getgenv().RivalsESPReferences = getgenv().RivalsESPReferences or {}
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "RivalsModernHub"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = CoreGui
local MainFrame = Instance.new("Frame")
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 720, 0, 460)
MainFrame.Position = UDim2.new(0.5, -360, 0.5, -230)
MainFrame.BackgroundColor3 = Color3.fromRGB(10, 11, 15)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.Parent = ScreenGui
Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 10)
local MainStroke = Instance.new("UIStroke", MainFrame)
MainStroke.Color = Color3.fromRGB(30, 100, 220)
MainStroke.Transparency = 0.4
MainStroke.Thickness = 1.5
local TitleBar = Instance.new("Frame", MainFrame)
TitleBar.Size = UDim2.new(1, 0, 0, 45)
TitleBar.BackgroundColor3 = Color3.fromRGB(14, 16, 22)
TitleBar.BorderSizePixel = 0
Instance.new("UICorner", TitleBar).CornerRadius = UDim.new(0, 10)
local TitleFix = Instance.new("Frame", TitleBar)
TitleFix.Size = UDim2.new(1, 0, 0, 10)
TitleFix.Position = UDim2.new(0, 0, 1, -10)
TitleFix.BackgroundColor3 = Color3.fromRGB(14, 16, 22)
TitleFix.BorderSizePixel = 0
local TitleLabel = Instance.new("TextLabel", TitleBar)
TitleLabel.Size = UDim2.new(0, 300, 1, 0)
TitleLabel.Position = UDim2.new(0, 15, 0, 0)
TitleLabel.BackgroundTransparency = 1
TitleLabel.Font = Enum.Font.GothamBold
TitleLabel.Text = "Shard.cc - Stable Hub"
TitleLabel.TextColor3 = Color3.fromRGB(220, 220, 235)
TitleLabel.TextSize = 15
TitleLabel.TextXAlignment = Enum.TextXAlignment.Left
local SubTitleLabel = Instance.new("TextLabel", TitleBar)
SubTitleLabel.Size = UDim2.new(0, 250, 0, 15)
SubTitleLabel.Position = UDim2.new(0, 15, 0, 26)
SubTitleLabel.BackgroundTransparency = 1
SubTitleLabel.Font = Enum.Font.GothamMedium
SubTitleLabel.Text = "Players & Bots Optimized"
SubTitleLabel.TextColor3 = Color3.fromRGB(100, 110, 130)
SubTitleLabel.TextSize = 10
SubTitleLabel.TextXAlignment = Enum.TextXAlignment.Left
local TabBar = Instance.new("ScrollingFrame", MainFrame)
TabBar.Size = UDim2.new(0, 150, 1, -55)
TabBar.Position = UDim2.new(0, 10, 0, 50)
TabBar.BackgroundTransparency = 1
TabBar.CanvasSize = UDim2.new(0, 0, 0, 0)
TabBar.ScrollBarThickness = 0
local TabListLayout = Instance.new("UIListLayout", TabBar)
TabListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
TabListLayout.SortOrder = Enum.SortOrder.LayoutOrder
TabListLayout.Padding = UDim.new(0, 6)
local ContentContainer = Instance.new("Frame", MainFrame)
ContentContainer.Size = UDim2.new(1, -170, 1, -55)
ContentContainer.Position = UDim2.new(0, 165, 0, 50)
ContentContainer.BackgroundTransparency = 1
local panels = {}
local currentTab = nil
local function createPanel(name)
local frame = Instance.new("ScrollingFrame", ContentContainer)
frame.Size = UDim2.new(1, 0, 1, 0)
frame.BackgroundTransparency = 1
frame.CanvasSize = UDim2.new(0, 0, 0, 0)
frame.AutomaticCanvasSize = Enum.AutomaticSize.Y
frame.ScrollBarThickness = 2
frame.ScrollBarImageColor3 = Color3.fromRGB(40, 100, 220)
frame.Visible = false
local layout = Instance.new("UIListLayout", frame)
layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
layout.SortOrder = Enum.SortOrder.LayoutOrder
layout.Padding = UDim.new(0, 8)
panels[name] = frame
if not currentTab then
currentTab = name
frame.Visible = true
end
return frame
end
local function createTabButton(name)
local btn = Instance.new("TextButton", TabBar)
btn.Size = UDim2.new(1, 0, 0, 36)
btn.BackgroundColor3 = Color3.fromRGB(15, 17, 24)
btn.AutoButtonColor = false
btn.Font = Enum.Font.GothamMedium
btn.Text = " " .. name
btn.TextColor3 = Color3.fromRGB(130, 140, 160)
btn.TextSize = 12
btn.TextXAlignment = Enum.TextXAlignment.Left
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
if currentTab == name then
btn.BackgroundColor3 = Color3.fromRGB(24, 30, 48)
btn.TextColor3 = Color3.fromRGB(80, 140, 255)
end
btn.MouseButton1Click:Connect(function()
for tabName, panel in pairs(panels) do
panel.Visible = (tabName == name)
end
for _, child in ipairs(TabBar:GetChildren()) do
if child:IsA("TextButton") then
child.BackgroundColor3 = Color3.fromRGB(15, 17, 24)
child.TextColor3 = Color3.fromRGB(130, 140, 160)
end
end
btn.BackgroundColor3 = Color3.fromRGB(24, 30, 48)
btn.TextColor3 = Color3.fromRGB(80, 140, 255)
end)
end
createTabButton("Visual")
createTabButton("Combat")
createTabButton("Destructions")
createTabButton("Movements")
createTabButton("Settings")
local tabVisual = createPanel("Visual")
local tabCombat = createPanel("Combat")
local tabDestructions = createPanel("Destructions")
local tabMovements = createPanel("Movements")
local tabSettings = createPanel("Settings")
local function addToggle(parent, name, order, callback)
local btn = Instance.new("TextButton", parent)
btn.Size = UDim2.new(1, -10, 0, 36)
btn.BackgroundColor3 = Color3.fromRGB(16, 18, 26)
btn.AutoButtonColor = false
btn.Text = ""
btn.LayoutOrder = order or 1
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
local lbl = Instance.new("TextLabel", btn)
lbl.Size = UDim2.new(1, -50, 1, 0)
lbl.Position = UDim2.new(0, 12, 0, 0)
lbl.BackgroundTransparency = 1
lbl.Font = Enum.Font.GothamMedium
lbl.Text = name
lbl.TextColor3 = Color3.fromRGB(200, 205, 215)
lbl.TextSize = 12
lbl.TextXAlignment = Enum.TextXAlignment.Left
local status = Instance.new("TextLabel", btn)
status.Size = UDim2.new(0, 40, 1, 0)
status.Position = UDim2.new(1, -45, 0, 0)
status.BackgroundTransparency = 1
status.Font = Enum.Font.GothamBold
status.Text = "OFF"
status.TextColor3 = Color3.fromRGB(140, 50, 50)
status.TextSize = 11
status.TextXAlignment = Enum.TextXAlignment.Right
local state = false
btn.MouseButton1Click:Connect(function()
state = not state
status.Text = state and "ON" or "OFF"
status.TextColor3 = state and Color3.fromRGB(80, 140, 255) or Color3.fromRGB(140, 50, 50)
btn.BackgroundColor3 = state and Color3.fromRGB(22, 28, 44) or Color3.fromRGB(16, 18, 26)
callback(state)
end)
return btn
end
local function addDisabledButton(parent, name, order)
local btn = Instance.new("TextButton", parent)
btn.Size = UDim2.new(1, -10, 0, 36)
btn.BackgroundColor3 = Color3.fromRGB(12, 13, 18)
btn.AutoButtonColor = false
btn.Active = false
btn.Text = ""
btn.LayoutOrder = order or 1
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
local lbl = Instance.new("TextLabel", btn)
lbl.Size = UDim2.new(1, -50, 1, 0)
lbl.Position = UDim2.new(0, 12, 0, 0)
lbl.BackgroundTransparency = 1
lbl.Font = Enum.Font.GothamMedium
lbl.Text = name
lbl.TextColor3 = Color3.fromRGB(90, 95, 110)
lbl.TextSize = 12
lbl.TextXAlignment = Enum.TextXAlignment.Left
local status = Instance.new("TextLabel", btn)
status.Size = UDim2.new(0, 50, 1, 0)
status.Position = UDim2.new(1, -55, 0, 0)
status.BackgroundTransparency = 1
status.Font = Enum.Font.GothamBold
status.Text = "SOON"
status.TextColor3 = Color3.fromRGB(90, 95, 110)
status.TextSize = 11
status.TextXAlignment = Enum.TextXAlignment.Right
return btn
end
local function addSlider(parent, name, min, max, default, suffix, order, callback)
local frame = Instance.new("Frame", parent)
frame.Size = UDim2.new(1, -10, 0, 50)
frame.BackgroundColor3 = Color3.fromRGB(16, 18, 26)
frame.LayoutOrder = order or 1
Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 8)
local label = Instance.new("TextLabel", frame)
label.Size = UDim2.new(1, -20, 0, 22)
label.Position = UDim2.new(0, 12, 0, 4)
label.BackgroundTransparency = 1
label.Font = Enum.Font.GothamMedium
label.TextSize = 12
label.TextColor3 = Color3.fromRGB(200, 205, 215)
label.Text = name .. ": " .. tostring(default) .. suffix
label.TextXAlignment = Enum.TextXAlignment.Left
local sliderBar = Instance.new("TextButton", frame)
sliderBar.Size = UDim2.new(1, -24, 0, 6)
sliderBar.Position = UDim2.new(0, 12, 0, 34)
sliderBar.BackgroundColor3 = Color3.fromRGB(26, 32, 48)
sliderBar.AutoButtonColor = false
sliderBar.Text = ""
Instance.new("UICorner", sliderBar).CornerRadius = UDim.new(0, 3)
local fill = Instance.new("Frame", sliderBar)
fill.Size = UDim2.new((default - min) / (max - min), 0, 1, 0)
fill.BackgroundColor3 = Color3.fromRGB(80, 140, 255)
fill.BorderSizePixel = 0
Instance.new("UICorner", fill).CornerRadius = UDim.new(0, 3)
local dragging = false
sliderBar.InputBegan:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = true end
end)
UserInputService.InputEnded:Connect(function(i)
if i.UserInputType == Enum.UserInputType.MouseButton1 then dragging = false end
end)
UserInputService.InputChanged:Connect(function(i)
if dragging and i.UserInputType == Enum.UserInputType.MouseMovement then
local pos = math.clamp((i.Position.X - sliderBar.AbsolutePosition.X) / sliderBar.AbsoluteSize.X, 0, 1)
fill.Size = UDim2.new(pos, 0, 1, 0)
local val = math.floor(min + (max - min) * pos)
label.Text = name .. ": " .. tostring(val) .. suffix
callback(val)
end
end)
return frame
end
local function addButton(parent, name, color, order, callback)
local btn = Instance.new("TextButton", parent)
btn.Size = UDim2.new(1, -10, 0, 32)
btn.BackgroundColor3 = color
btn.AutoButtonColor = false
btn.Font = Enum.Font.GothamBold
btn.Text = " " .. name
btn.TextColor3 = Color3.fromRGB(210, 215, 230)
btn.TextSize = 11
btn.TextXAlignment = Enum.TextXAlignment.Left
btn.LayoutOrder = order or 1
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
btn.MouseButton1Click:Connect(callback)
return btn
end
local colors = {
Color3.fromRGB(80, 140, 255),
Color3.fromRGB(20, 20, 20),
Color3.fromRGB(200, 50, 255),
Color3.fromRGB(50, 220, 100),
Color3.fromRGB(255, 60, 60),
Color3.fromRGB(255, 220, 50)
}
local colorNames = {"Blue", "Black", "Purple", "Green", "Red", "Yellow"}
-- Tab Visual
addToggle(tabVisual, "Boxes ESP", 1, function(v) getgenv().RivalsConfig.Visuals.Boxes = v end)
addToggle(tabVisual, "Boxes ESP Bot", 2, function(v) getgenv().RivalsConfig.Visuals.BoxesBot = v end)
local boxColorIdx = 1
local boxColorBtn
boxColorBtn = addButton(tabVisual, "Box Color [" .. colorNames[1] .. "]", Color3.fromRGB(18, 21, 30), 3, function()
boxColorIdx = boxColorIdx % #colors + 1
getgenv().RivalsConfig.Visuals.BoxColor = colors[boxColorIdx]
boxColorBtn.Text = " Box Color [" .. colorNames[boxColorIdx] .. "]"
end)
addToggle(tabVisual, "Name ESP", 4, function(v) getgenv().RivalsConfig.Visuals.Names = v end)
local nameColorIdx = 1
local nameColorBtn
nameColorBtn = addButton(tabVisual, "Name Color [" .. colorNames[1] .. "]", Color3.fromRGB(18, 21, 30), 5, function()
nameColorIdx = nameColorIdx % #colors + 1
getgenv().RivalsConfig.Visuals.NameColor = colors[nameColorIdx]
nameColorBtn.Text = " Name Color [" .. colorNames[nameColorIdx] .. "]"
end)
addToggle(tabVisual, "Distance ESP", 6, function(v) getgenv().RivalsConfig.Visuals.Distance = v end)
local distColorIdx = 1
local distColorBtn
distColorBtn = addButton(tabVisual, "Distance Color [" .. colorNames[1] .. "]", Color3.fromRGB(18, 21, 30), 7, function()
distColorIdx = distColorIdx % #colors + 1
getgenv().RivalsConfig.Visuals.DistanceColor = colors[distColorIdx]
distColorBtn.Text = " Distance Color [" .. colorNames[distColorIdx] .. "]"
end)
-- Tab Combat
addDisabledButton(tabCombat, "Aimbot", 1)
local rageDelaySlider
addToggle(tabCombat, "Rage Bot", 2, function(v)
getgenv().RivalsConfig.Combat.RageBot = v
if rageDelaySlider then rageDelaySlider.Visible = v end
end)
rageDelaySlider = addSlider(tabCombat, "Rage Delay", 0, 50, 0, "s", 3, function(v)
getgenv().RivalsConfig.Combat.RageDelay = v / 100
end)
rageDelaySlider.Visible = false
addDisabledButton(tabCombat, "Wallhack", 4)
-- Tab Destructions
addToggle(tabDestructions, "Wall Bypass", 1, function(v) getgenv().RivalsConfig.Destruction.WallBypass = v end)
-- Tab Movements
addToggle(tabMovements, "Fly", 1, function(v)
getgenv().RivalsConfig.Movements.Fly = v
flySpeedContainer.Visible = v
end)
local flySpeedContainer = Instance.new("Frame", tabMovements)
flySpeedContainer.Size = UDim2.new(1, -10, 0, 75)
flySpeedContainer.BackgroundColor3 = Color3.fromRGB(16, 18, 26)
flySpeedContainer.Visible = false
flySpeedContainer.LayoutOrder = 2
Instance.new("UICorner", flySpeedContainer).CornerRadius = UDim.new(0, 8)
local flySpeedLabel = Instance.new("TextLabel", flySpeedContainer)
flySpeedLabel.Size = UDim2.new(1, -20, 0, 24)
flySpeedLabel.Position = UDim2.new(0, 12, 0, 6)
flySpeedLabel.BackgroundTransparency = 1
flySpeedLabel.Font = Enum.Font.GothamMedium
flySpeedLabel.Text = "Fly Speed: 5x"
flySpeedLabel.TextColor3 = Color3.fromRGB(200, 205, 215)
flySpeedLabel.TextSize = 12
flySpeedLabel.TextXAlignment = Enum.TextXAlignment.Left
local buttonRow = Instance.new("Frame", flySpeedContainer)
buttonRow.Size = UDim2.new(1, -24, 0, 32)
buttonRow.Position = UDim2.new(0, 12, 0, 35)
buttonRow.BackgroundTransparency = 1
local rowLayout = Instance.new("UIListLayout", buttonRow)
rowLayout.FillDirection = Enum.FillDirection.Horizontal
rowLayout.SortOrder = Enum.SortOrder.LayoutOrder
rowLayout.Padding = UDim.new(0, 6)
local multipliers = {5, 10, 15, 20, 25}
local multButtons = {}
for _, mult in ipairs(multipliers) do
local mBtn = Instance.new("TextButton", buttonRow)
mBtn.Size = UDim2.new(0, 52, 1, 0)
mBtn.BackgroundColor3 = (mult == 5) and Color3.fromRGB(24, 34, 56) or Color3.fromRGB(22, 24, 34)
mBtn.AutoButtonColor = false
mBtn.Font = Enum.Font.GothamBold
mBtn.Text = mult .. "x"
mBtn.TextColor3 = (mult == 5) and Color3.fromRGB(80, 140, 255) or Color3.fromRGB(140, 150, 170)
mBtn.TextSize = 11
Instance.new("UICorner", mBtn).CornerRadius = UDim.new(0, 6)
mBtn.MouseButton1Click:Connect(function()
getgenv().RivalsConfig.Movements.FlyMultiplier = mult
flySpeedLabel.Text = "Fly Speed: " .. mult .. "x"
for _, b in pairs(multButtons) do
b.BackgroundColor3 = Color3.fromRGB(22, 24, 34)
b.TextColor3 = Color3.fromRGB(140, 150, 170)
end
mBtn.BackgroundColor3 = Color3.fromRGB(24, 34, 56)
mBtn.TextColor3 = Color3.fromRGB(80, 140, 255)
end)
table.insert(multButtons, mBtn)
end
-- Tab Settings
addButton(tabSettings, "Destruct Menu", Color3.fromRGB(50, 20, 25), 1, function()
for _, cache in pairs(getgenv().RivalsESPReferences) do
pcall(function() cache.Box:Remove() end)
pcall(function() cache.NameTag:Remove() end)
pcall(function() cache.DistTag:Remove() end)
end
getgenv().RivalsESPReferences = {}
if ScreenGui then ScreenGui:Destroy() end
end)
local keybindBtn
keybindBtn = addButton(
tabSettings,
"Menu Keybinds [" .. getgenv().RivalsConfig.Options.MenuKey.Name .. "]",
Color3.fromRGB(18, 21, 30),
2,
function()
keybindBtn.Text = " [Press any key...]"
local conn
conn = UserInputService.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.Keyboard then
getgenv().RivalsConfig.Options.MenuKey = input.KeyCode
keybindBtn.Text = " Menu Keybinds [" .. input.KeyCode.Name .. "]"
conn:Disconnect()
end
end)
end
)
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if not gameProcessed and input.KeyCode == getgenv().RivalsConfig.Options.MenuKey then
MainFrame.Visible = not MainFrame.Visible
end
end)
local function getTargets()
local list = {}
for _, player in ipairs(Players:GetPlayers()) do
if player ~= LocalPlayer and player.Character then
table.insert(list, {Model = player.Character, Name = player.Name, IsPlayer = true})
end
end
if getgenv().RivalsConfig.Visuals.BoxesBot then
local function scan(parent)
for _, obj in ipairs(parent:GetChildren()) do
if obj:IsA("Model") and obj ~= LocalPlayer.Character then
local hum = obj:FindFirstChildOfClass("Humanoid")
local root = obj:FindFirstChild("HumanoidRootPart") or obj:FindFirstChild("Torso") or obj:FindFirstChild("UpperTorso")
if hum and root and not Players:GetPlayerFromCharacter(obj) then
local alreadyAdded = false
for _, item in ipairs(list) do
if item.Model == obj then
alreadyAdded = true
break
end
end
if not alreadyAdded then
table.insert(list, {Model = obj, Name = obj.Name ~= "" and obj.Name or "Bot", IsPlayer = false})
end
end
end
if obj:IsA("Folder") or obj:IsA("Model") then
scan(obj)
end
end
end
scan(workspace)
end
return list
end
RunService.RenderStepped:Connect(function()
if not ScreenGui or not ScreenGui.Parent then return end
local activeTargets = getTargets()
local activeCacheKeys = {}
for _, targetData in ipairs(activeTargets) do
local char = targetData.Model
local key = char
activeCacheKeys[key] = true
if not getgenv().RivalsESPReferences[key] then
local ref = {
Box = Drawing.new("Square"),
NameTag = Drawing.new("Text"),
DistTag = Drawing.new("Text"),
}
ref.Box.Visible = false
ref.Box.Thickness = 1
ref.NameTag.Visible = false
ref.NameTag.Size = 12
ref.NameTag.Center = true
ref.NameTag.Outline = true
ref.DistTag.Visible = false
ref.DistTag.Size = 11
ref.DistTag.Center = true
ref.DistTag.Outline = true
getgenv().RivalsESPReferences[key] = ref
end
local cache = getgenv().RivalsESPReferences[key]
local localChar = LocalPlayer.Character
local rootPart = char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
local hum = char:FindFirstChildOfClass("Humanoid")
if rootPart and hum and hum.Health > 0 then
local isPlayer = targetData.IsPlayer
local showThisEntity = (isPlayer and getgenv().RivalsConfig.Visuals.Boxes) or ((not isPlayer) and getgenv().RivalsConfig.Visuals.BoxesBot)
local cf, size = char:GetBoundingBox()
local topPosition = (cf + Vector3.new(0, size.Y / 2, 0)).Position
local bottomPosition = (cf - Vector3.new(0, size.Y / 2, 0)).Position
local topVp, topVis = Camera:WorldToViewportPoint(topPosition)
local botVp, botVis = Camera:WorldToViewportPoint(bottomPosition)
if (topVis or botVis) and topVp.Z > 0 then
local height = math.abs(botVp.Y - topVp.Y)
local width = height / 2
local boxPos = Vector2.new(topVp.X - width / 2, topVp.Y)
local localRoot = localChar and (localChar:FindFirstChild("HumanoidRootPart") or localChar:FindFirstChild("Torso"))
local dist = 0
if localRoot then
dist = math.floor((rootPart.Position - localRoot.Position).Magnitude)
end
if showThisEntity then
cache.Box.Visible = true
cache.Box.Size = Vector2.new(width, height)
cache.Box.Position = boxPos
cache.Box.Color = getgenv().RivalsConfig.Visuals.BoxColor
else
cache.Box.Visible = false
end
if (isPlayer and getgenv().RivalsConfig.Visuals.Names) or ((not isPlayer) and getgenv().RivalsConfig.Visuals.BoxesBot and getgenv().RivalsConfig.Visuals.Names) then
cache.NameTag.Visible = true
cache.NameTag.Text = targetData.Name .. (isPlayer and "" or " [Bot]")
cache.NameTag.Position = Vector2.new(topVp.X, topVp.Y - 16)
cache.NameTag.Color = getgenv().RivalsConfig.Visuals.NameColor
else
cache.NameTag.Visible = false
end
if (isPlayer and getgenv().RivalsConfig.Visuals.Distance) or ((not isPlayer) and getgenv().RivalsConfig.Visuals.BoxesBot and getgenv().RivalsConfig.Visuals.Distance) then
cache.DistTag.Visible = true
cache.DistTag.Text = "[" .. dist .. "M]"
cache.DistTag.Position = Vector2.new(botVp.X, botVp.Y + 4)
cache.DistTag.Color = getgenv().RivalsConfig.Visuals.DistanceColor
else
cache.DistTag.Visible = false
end
else
cache.Box.Visible = false
cache.NameTag.Visible = false
cache.DistTag.Visible = false
end
else
cache.Box.Visible = false
cache.NameTag.Visible = false
cache.DistTag.Visible = false
end
end
for key, ref in pairs(getgenv().RivalsESPReferences) do
if not activeCacheKeys[key] then
pcall(function() ref.Box:Remove() end)
pcall(function() ref.NameTag:Remove() end)
pcall(function() ref.DistTag:Remove() end)
getgenv().RivalsESPReferences[key] = nil
end
end
if getgenv().RivalsConfig.Movements.Fly then
local char = LocalPlayer.Character
local hrp = char and (char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso"))
if hrp then
local cam = Camera.CFrame
local mv = Vector3.new()
if UserInputService:IsKeyDown(Enum.KeyCode.W) then mv = mv + cam.LookVector end
if UserInputService:IsKeyDown(Enum.KeyCode.S) then mv = mv - cam.LookVector end
if UserInputService:IsKeyDown(Enum.KeyCode.A) then mv = mv - cam.RightVector end
if UserInputService:IsKeyDown(Enum.KeyCode.D) then mv = mv + cam.RightVector end
local baseSpeed = 50
hrp.Velocity = mv * (baseSpeed * getgenv().RivalsConfig.Movements.FlyMultiplier)
end
end
if getgenv().RivalsConfig.Destruction.WallBypass then
local char = LocalPlayer.Character
if char then
for _, part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.CanCollide = false
end
end
end
end
if getgenv().RivalsConfig.Combat.RageBot then
local mouse = LocalPlayer:GetMouse()
local target = mouse.Target
if target and target.Parent then
local enemyChar = target.Parent
local hum = enemyChar:FindFirstChildOfClass("Humanoid")
if hum and hum.Health > 0 and enemyChar ~= LocalPlayer.Character then
local delay = getgenv().RivalsConfig.Combat.RageDelay
if delay > 0 then task.wait(delay) end
VirtualInputManager:SendMouseButtonEvent(0, 0, 0, true, game, 0)
task.wait()
VirtualInputManager:SendMouseButtonEvent(0, 0, 0, false, game, 0)
end
end
end
end)Review the source before using it. Executions count successful copies, capped at 10 per user and network per script in 24 hours.
Community discussion
0Start the conversation.


Your community, in one place