County Jail Roleplay Script | SILENT AIM & EXTRA SCRIPTS

-- // Services \\ --

local Workspace = game:GetService("Workspace")
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")

-- // Variables \\ --

local plr = Players.LocalPlayer
local char = plr.Character
local cam = Workspace.CurrentCamera

-- // Functions \\ --

local function getClosestPlayer()
    local closestDist = math.huge;
    local closestPlayer = nil;

    for _, v in next, Workspace.GetChildren(Workspace) do
        if v ~= char then
            if game.FindFirstChild(v, "Humanoid") and v.Humanoid.Health > 0 and Players.GetPlayerFromCharacter(Players, v).Team ~= plr.Team then
                local vector, onScreen = cam.worldToScreenPoint(cam, game.WaitForChild(v, "Head", math.huge).Position)
                local distance = (Vector2.new(UIS.GetMouseLocation(UIS).X, UIS.GetMouseLocation(UIS).Y) - Vector2.new(vector.X, vector.Y)).Magnitude
                if distance < closestDist and onScreen then
                    closestDist = distance
                    closestPlayer = v
                end
            end
        end

    end
    return closestPlayer
end

-- // Hooking \\ --

local old; old = hookmetamethod(game, "__namecall", newcclosure(function(self, ...)
    local method = getnamecallmethod()
    if method == "FireServer" and tostring(self) == "MainEvent" then
        local target = getClosestPlayer()
        if target then
            local args = {...}
            args[1] = target.Head.Position
            args[2] = plr.Character.Head.Position
            args[3] = target.Head
            args[4] = Vector3.new(2, 1, 1)
            return old(self, unpack(args))
        end
    end
    return old(self, ...)
end))

Extra scripts I made in 5 mins

Remove all doors

for _, v in next, workspace.Doors:GetChildren() do
    if v:IsA("Model") and v:FindFirstChild("DoorPart") then
        v:FindFirstChild("DoorPart"):Destroy()
    end
end

Instant rope placement

for _, v in next, workspace.Skeleton.Interactions.Prox.Ropes:GetDescendants() do
    if v:IsA("ProximityPrompt") then
        v.HoldDuration = 0
    end
end

Instant collect clothes

for _, obj in workspace.Skeleton.Objects.Clothing:GetDescendants() do
    if obj:IsA("ProximityPrompt") then
        obj.HoldDuration = 0
    end
end
Scroll to Top