
918 Views
7.3k Executions
Auto Lock On (KEYLESS)
Universal Script 📌
1 month ago · Updated
Reviewed by QueueSpeedDemonPaid revieweron How review works
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Basically an auto lock on with a smoothness bar (psst press C for a suprise)
--[[
Lock-On — LocalScript for YOUR game
Place in: StarterPlayer → StarterPlayerScripts
]]
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local GuiService = game:GetService("GuiService")
local player = Players.LocalPlayer
local camera = workspace.CurrentCamera
local BIND_NAME = "LockOnCamera"
local MAX_RANGE = 400
local CAMERA_DISTANCE = 10
local CAMERA_HEIGHT = 3.2
local smoothness = 0.35
pcall(function()
RunService:UnbindFromRenderStep(BIND_NAME)
end)
local oldGui = player:FindFirstChild("PlayerGui") and player.PlayerGui:FindFirstChild("LockOnGui")
if oldGui then
oldGui:Destroy()
end
local humanoidRootPart = nil
local humanoid = nil
local savedAutoRotate = true
local function onCharacterAdded(character)
humanoidRootPart = character:WaitForChild("HumanoidRootPart", 10)
humanoid = character:WaitForChild("Humanoid", 10)
if humanoid then
savedAutoRotate = humanoid.AutoRotate
end
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!






