---
title: "aimlock by SodaAlexander | Universal Roblox Script - ScriptBlox"
description: "aimlock for any Roblox game: aimlock"
canonical_url: "https://scriptblox.com/script/Universal-Script-aimlock-88176"
meta:
  "og:description": "aimlock for any Roblox game: aimlock"
  "og:image": "https://scriptblox.com/images/script/0-1768887899732.jpg"
  "og:title": "aimlock by SodaAlexander | Universal Roblox Script - ScriptBlox"
  "twitter:description": "aimlock for any Roblox game: aimlock"
  "twitter:image": "https://scriptblox.com/images/script/0-1768887899732.jpg"
  "twitter:title": "aimlock by SodaAlexander | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/0-1768887899732.jpg)

# **aimlock**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![SodaAlexander](https://scriptblox.com/images/photo/68850429f6d2143e95ab5b81-1791953665589.jpg) [SodaAlexander](https://scriptblox.com/u/SodaAlexander)Lv 9Published 10**

11 months ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No reports yet. Tried it? Be the first to say.

Also noticed:

## Description

aimlock

[View Raw](https://scriptblox.com/raw/Universal-Script-aimlock-88176)

```
if not game:GetService("RunService"):IsClient() then return end

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Camera = workspace.CurrentCamera

local LocalPlayer = Players.LocalPlayer
local AimLockEnabled = false
local PredictEnabled = false
local AimPlayers = false -- false = NPC/Bot, true = Player
local LockedPart = nil

local Settings = {
	BulletSpeed = 350,
	MaxDistance = 450
}

-- =================== UTILS ===================
local function isPlayerCharacter(model)
	return Players:GetPlayerFromCharacter(model) ~= nil
end

local rayParams = RaycastParams.new()
rayParams.FilterType = Enum.RaycastFilterType.Blacklist

local function isVisible(part)
	rayParams.FilterDescendantsInstances = {LocalPlayer.Character}
	local origin = Camera.CFrame.Position
	local direction = part.Position - origin
	local result = workspace:Raycast(origin, direction, rayParams)
	return result and result.Instance:IsDescendantOf(part.Parent)
end

local function getAimParts(model)
	local parts = {}
	local head = model:FindFirstChild("Head")
	if head then table.insert(parts, head) end
	local torso = model:FindFirstChild("UpperTorso")
		or model:FindFirstChild("Torso")


```

## **Comments **

**0**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-aimlock-88176)

No comments yet. Be the first!

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-aimlock-88176#script","url":"https://scriptblox.com/script/Universal-Script-aimlock-88176","name":"aimlock","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"SodaAlexander","url":"https://scriptblox.com/u/SodaAlexander"},"datePublished":"2026-01-20T05:44:59.744Z","image":"https://scriptblox.com/images/script/0-1768887899732.jpg","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-aimlock-88176#webpage","@type":"WebPage","description":"aimlock for any Roblox game: aimlock","name":"aimlock by SodaAlexander | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-aimlock-88176","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-aimlock-88176#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-aimlock-88176#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-aimlock-88176"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-aimlock-88176#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"aimlock","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
