Universal Script 📌
918 Views
7.3k Executions

Auto Lock On (KEYLESS)

Universal Script 📌
camledaj
camledajFirst script
1 month ago · Updated

Reviewed by QueueSpeedDemonPaid revieweron How review works

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

Basically an auto lock on with a smoothness bar (psst press C for a suprise)

View Raw
--[[
	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

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
52
0
Approved 38 minutes ago
Universal Script 📌
534
699
Bumped 58 minutes ago
Script hub
1.6M
2.1M
Bumped 8 hours ago
Key System

Script hub

#12 this week

Verified script badgeSnowy Hub 500+ Games & 25600+ Features

Script hub
269.3k
121.2k
Bumped 9 hours ago
Key System
Script hub
171.5k
1.4M
Bumped 12 hours ago
Key System
Script hub
16.8k
3.3k
Bumped 14 hours ago
Key System
Paid
Script hub
17.5k
89.5k
Bumped 14 hours ago