Profile Picture


Reputation: 0 [rate]

Joined: Dec, 2022

Last online:


Send Message

Threads List
Possible Alts

Activity Feed

Replied to thread : [REQ] Fix this aimbot

the code is incomplete and contains syntax issues its hard to provide a fix version of this.

try updating the VISIBLE function to calculate the correct direction of the ray 

local function Visible(pos, part)
    local params =
    params.FilterDescendantsInstances = {player.Character, part.Parent}
    params.FilterType = Enum.RaycastFilterType.Blacklist

    -- Calculate the direction of the ray
    local direction = (pos - player.Character.HumanoidRootPart.Position)

    local Result = workspace:Raycast(player.Character.HumanoidRootPart.Position, direction.unit * direction.magnitude, params)
    if Result ~= nil then
        return false
    return true

The updated VISIBLE function that i provided should fix the issue with the original code, but there might be other issues with the code that im not aware of.

Let me know how it goes :)