Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getgenv().SelectTargetKey = "E" -- Must be Capital due to UserInputService
- getgenv().AimPart = "Torso" -- Head or Torso, Dont do HumanoidRootPart
- getgenv().AV = 10 -- Sets AimVelocity, if your ping is high make sure its 7-10 / if your ping is low make sure its 4-6
- local Players, Uis, RService = game:GetService("Players"), game:GetService("UserInputService"), game:GetService("RunService")
- local Client, Mouse, Camera, CF = Players.LocalPlayer, Players.LocalPlayer:GetMouse(), workspace.CurrentCamera, CFrame.new;
- local Aimlock, Selecting = true, false
- local StreetsID, PrisonID = tonumber(455366377), tonumber(4669040);
- Uis.InputBegan:Connect(function(Key, Typing)
- if Typing then return end
- if Key.KeyCode == Enum.KeyCode[SelectTargetKey] then
- Selecting = true
- end
- end)
- Uis.InputEnded:Connect(function(Key, Typing)
- if Typing then return end
- if Key.KeyCode == Enum.KeyCode[SelectTargetKey] then
- Selecting = false
- end
- end)
- RService.Stepped:Connect(function()
- if Selecting == true and Mouse.Target.Parent:FindFirstChild("Humanoid") and Mouse.Target.Parent ~= Client.Character then
- AimlockTarget = Players:FindFirstChild(Mouse.Target.Parent.Name)
- Notify("Alert", "Aimlock Target: "..tostring(AimlockTarget), "", 3)
- end
- end)
- getgenv().Notify = function(title, text, icon, time)
- game.StarterGui:SetCore("SendNotification",{
- Title = title;
- Text = text;
- Icon = "rbxassetid://6598908415";
- Duration = time;
- })
- end
- local rm = getrawmetatable(game) or debug.getrawmetatable(game) or getmetatable(game);
- local ncall = rm.__namecall
- setreadonly(rm, false)
- rm.__namecall = newcclosure(function(self, ...)
- local Ag = {...}
- local Method = getnamecallmethod()
- if Method == "FireServer" and Aimlock == true then
- if game.PlaceId ~= (PrisonID) and tostring(self) == "Input" and AimlockTarget ~= nil then
- Ag[2].mousehit = AimlockTarget.Character[AimPart].CFrame + AimlockTarget.Character[AimPart].Velocity/AV
- return ncall(self, unpack(Ag))
- end
- if game.PlaceId == (PrisonID) and tostring(self) == "Fire" and AimlockTarget ~= nil then
- return ncall(self, AimlockTarget.Character[AimPart].CFrame + AimlockTarget.Character[AimPart].Velocity/AV)
- end
- end
- return ncall(self, unpack(Ag))
- end)
- setreadonly(rm, true)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement