Aimbot rayfield
Key RequiredUniversal

Aimbot rayfield

Universal Scriptzamzurihamzahzamzurihamzah 2.6K views 393 executesUpdated Dec 27, 2025
Unrated
00
Lua Script•120 lines (2842 chars)
Local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer

-- Rayfield
local Rayfield = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
local Window = Rayfield:CreateWindow({
	Name = "Stare Script",
	ConfigurationSaving = { Enabled = false }
})

-- Tabs
local StareTab = Window:CreateTab("Aimbot")
local UsefulTab = Window:CreateTab("Useful")

-- Variables
local staring = false
local stareConnection
local highlights = {}

-- Get closest player
local function getClosestPlayer()
	local char = LocalPlayer.Character
	if not char then return nil end
	local hrp = char:FindFirstChild("HumanoidRootPart")
	if not hrp then return nil end

	local closestPlayer
	local closestDistance = math.huge

	for _, player in ipairs(Players:GetPlayers()) do
		if player ~= LocalPlayer and player.Character then
			local targetHRP = player.Character:FindFirstChild("HumanoidRootPart")
			if targetHRP then
				local distance = (hrp.Position - targetHRP.Position).Magnitude
				if distance < closestDistance then
					closestDistance = distance
					closestPlayer = player
				end
			end
		end
	end

	return closestPlayer
end

-- Aimbot🎯
local function startStaring()
	if stareConnection then stareConnection:Disconnect() end

	stareConnection = RunService.RenderStepped:Connect(function()
		if not staring then return end

		local char = LocalPlayer.Character
		if not char then return end
		local hrp = char:FindFirstChild("HumanoidRootPart")
		if not hrp then return end

		local closest = getClosestPlayer()
		if closest and closest.Character then
			local targetHRP = closest.Character:FindFirstChild("HumanoidRootPart")
			if targetHRP then
				hrp.CFrame = CFrame.new(hrp.Position, targetHRP.Position)
			end
		end
	end)
end

-- Stop aimbot 
local function stopStaring()
	if stareConnection then stareConnection:Disconnect() end
end

-- Toggle
StareTab:CreateToggle({
	Name = "Stare Closest Player",
	CurrentValue = false,
	Callback = function(value)
		staring = value
		if value then
			startStaring()
		else
			stopStaring()
		end
	end
})

-- Highlight players
local function highlightPlayers()
	for _, player in ipairs(Players:GetPlayers()) do
		if player ~= LocalPlayer and player.Character then
			if not highlights[player] then
				local h = Instance.new("Highlight")
				h.FillTransparency = 1
				h.OutlineTransparency = 0
				h.OutlineColor = Color3.fromRGB(0, 150, 255)
				h.Parent = player.Character
				highlights[player] = h
			end
		end
	end
end

local function removeHighlights()
	for _, h in pairs(highlights) do
		if h then h:Destroy() end
	end
	highlights = {}
end

-- Useful tab buttons
UsefulTab:CreateButton({
	Name = "ESP👀",
	Callback = highlightPlayers
})

UsefulTab:CreateButton({
	Name = "Remove Highlights",
	Callback = removeHighlights
})

Features & Information

Cool bla bla aimbot rayfield

Community Comments (3)

ZamasuZamasuDec 28, 2025

its giving error not unc but error

zamzurihamzahzamzurihamzahDec 31, 2025

sorry,I will fixed that in few days:D

Bloxburglover28Bloxburglover28Aug 23, 2026

How the hell do you use this.

More Scripts for Universal Scripts