Universal Script πŸ“Œ
6 Views
0 Executions

Lock on

Universal Script πŸ“Œ
REALGOURDYHOLLOWAY
REALGOURDYHOLLOWAYFirst script
15 hours ago

Reviewed by QueueSherlockPaid 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

CAM lock on kinda buggy so don’t use it maybe

View Raw
-- HRP PREDICTIVE LOCK-ON (RAW + SHIFTLOCK)
-- StarterPlayer > StarterPlayerScripts
-- Roblox Studio LocalScript
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")

local Settings = {
	Prediction = 0.22,
	MaxPrediction = 0.65,
	SearchRadius = 120,
	RequireLineOfSight = true,
	UsePrediction = true, -- set to false for pure raw HRP aim
}

local State = {
	Mode = "Idle",
	Selected = nil,
	Target = nil,
	Connection = nil,
}

-- SHIFTLOCK CONTROL
local function shiftLockOn()
	UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
	UserInputService.MouseIconEnabled = false
end

local function shiftLockOff()
	UserInputService.MouseBehavior = Enum.MouseBehavior.Default
	UserInputService.MouseIconEnabled = true
end

-- GUI
local Gui = Instance.new("ScreenGui")
Gui.Name = "HRPLockOn"
Gui.ResetOnSpawn = false
Gui.Parent = PlayerGui


Comments

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