
620 Views
308 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
aimlock
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
0Log in to join the conversation. Login
No comments yet. Be the first!








