Universal Script 📌
16.8k Views
156 Executions

Customizable Camlock

Universal Script 📌
Irdk
Irdk10 followers
2 years ago
Get an 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

Its a "Very Kool" Camlock that you can toggle alot of "Kool" feautures, Definitely one of my favourite scripts :P Some Features are still Expiremental, so it may work sometimes and not. [+] Features [+] --Smooth Transitioning-- [Instead of it instantly switching to the next char, It will switch "smoothly", Best for not being blatant] --Prioritize Low Health-- [If there's a charter with a lower health than you were targetting, it will switch to that char] --FOV-- {Expiremental} --Adjustable Distance-- [Will only lock onto char, in that distance] --Wallcheck-- [It checks if the target is behind any obstacle and if so won't target them, if still targetted, after a couple of seconds it will try to unlock again] --Dynamic Zoom-- [More for fun: it will intantly zoom onto the person your targetting, for more Immersiveness] --Shake On Hit-- --Multiple opponents-- [if they're more than one enemy in close radius, it will try to go somewhere in the middle to hit all three without overlapping] {Expiremental} --Combat State-- [if you take Any Damage Whatsoever, Camlock will automatically switch on] --Highlight Target-- [It will highlight the person you're targetting] {Expiremental} --Flee Mode-- [If your Heaalth Drops below a certain target range, it will lcok for any type of door or escape] {Expiremental} Keybind is L, Have Fun :) Ofc, If you have any sugestions tell me in the comments, or if you want to straight up, take the code and make it better, be my guest, just make sure to credit me :)

View Raw
-- Configuration table
local Config = {
    SmoothTransition = true,
    PriorityLowHealth = true, 
    UseFOVCheck = true, -- {Expiremental}
    AdjustableDistance = true,
    WallCheck = true,
    DynamicZoom = true,
    CameraShakeOnHit = true,
    LockMultipleTargets = true, -- {Expiremental}
    MaxTargets = 3, -- Maximum number of targets to lock onto
    CombatStateToggle = false,
    LockDistance = 100,
    HighlightTarget = true, -- {Expiremental}
    FleeMode = false, -- {Expiremental}
    KeybindToggle = Enum.KeyCode.L, -- Keybind For Camlock
}

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

local locked = false
local currentTargets = {}

-- Based On Config
local function getMultipleTargets()
    local selectedTargets = {}
    for _, player in pairs(Players:GetPlayers()) do
        if player ~= LocalPlayer and player.Team ~= LocalPlayer.Team then
            local character = player.Character
            if character and character:FindFirstChild("Head") and character:FindFirstChild("Humanoid") then
                local distance = (character.Head.Position - Camera.CFrame.Position).Magnitude

                if Config.UseFOVCheck then
                    local direction = (character.Head.Position - Camera.CFrame.Position).Unit
                    local angle = math.acos(Camera.CFrame.LookVector:Dot(direction))
                    if math.deg(angle) > 45 then -- FOV limit of 45 degrees


Comments

2
Log in to join the conversation. Login
Irdk's profile picture
IrdkUploader2 years ago(edited)

@iamsoostupidd Its a basic camlock, so it will only connect to characters that have the basic words, like torso, head etc.

1
iamsoostupidd's profile picture
iamsoostupidd2 years ago(edited)

not working?!?!

1

Tags

More universal scripts

See all
Universal Script 📌
9.8k
60.7k
Bumped 12 minutes ago
Key System
Universal Script 📌
3.9k
10.4k
Bumped 13 minutes ago
Script hub
272.5k
884.6k
Bumped 31 minutes ago
Key System

Script hub

#16 this week

Verified script badgeAxon Hub 60+ Games & 800+ Features

Script hub
30.3k
92.0k
Bumped 5 hours ago
Key System

Script hub

#2 this week

Verified script badgeArcane Hub | 125+ Games & 4000+ Features