[TITLE UNAVAILABLE]
14.8k Views
60 Executions

imLock

Roblox
2 years ago
Please login to perform these actions:

imLock is a Roblox script, uploaded to ScriptBlox on Oct 8, 2024.

Does it work?

No reports yet

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

Also noticed:

Description

Locks on player

Updates

  1. Script edited: Create script

View Raw
loadstring([[
local Players, UserInputService, Camera = game:GetService("Players"), game:GetService("UserInputService"), workspace.CurrentCamera
local player = Players.LocalPlayer

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if not gameProcessed and input.KeyCode == Enum.KeyCode.Q then
        local others = {}
        for _, p in ipairs(Players:GetPlayers()) do
            if p ~= player then table.insert(others, p) end
        end
        if #others > 0 then
            local target = others[math.random(1, #others)]
            if target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
                local pos = target.Character.HumanoidRootPart.Position
                Camera.CameraType = Enum.CameraType.Scriptable
                Camera.CFrame = CFrame.new(pos + Vector3.new(0, 5, 10), pos)
                print("Locked on " .. target.Name)
            end
        end
    end
end)

player.CharacterAdded:Connect(function() Camera.CameraType = Enum.CameraType.Custom end)
Players.PlayerRemoving:Connect(function(p) if p == player then Camera.CameraType = Enum.CameraType.Custom end end)
]])



Comments

1
Log in to join the conversation. Login
ReplicatedFirst's profile picture
ReplicatedFirst2 years ago(edited)

loadstring 😜✍️🔥

1