
universal silent aim
Guest 1.3K 27th Feb, 2023
Loading Please wait...
x
520
1
universal silent aim
2
-- loader
3
if not game:IsLoaded() then
4
game.Loaded:Wait()
5
end
6
7
if not syn or not protectgui then
8
getgenv().protectgui = function() end
9
end
10
11
local SilentAimSettings = {
12
Enabled = true,
13
universal silent aim How to use it? universal silent aim
14
15
ClassName = "Universal Silent Aim - Project Redacted",
16
ToggleKey = "RightAlt",
17
18
TeamCheck = true,
19
VisibleCheck = false,
20
TargetPart = "HumanoidRootPart",
21
SilentAimMethod = "Raycast",
22
23
FOVRadius = 200,
24
universal silent aim How to get it for free? universal silent aim
25
FOVVisible = false,
26
ShowSilentAimTarget = false,
27
28
MouseHitPrediction = false,
29
MouseHitPredictionAmount = 0.165,
30
HitChance = 100
31
}
32
33
-- variables
34
getgenv().SilentAimSettings = Settings
35
universal silent aim PasteShr universal silent aim
36
local MainFileName = "UniversalSilentAim"
37
local SelectedFile, FileToSave = "", ""
38
39
local Camera = workspace.CurrentCamera
40
local Players = game:GetService("Players")
41
local RunService = game:GetService("RunService")
42
local GuiService = game:GetService("GuiService")
43
local UserInputService = game:GetService("UserInputService")
44
local HttpService = game:GetService("HttpService")
45
46
universal silent aim How to get it for free? universal silent aim
47
local LocalPlayer = Players.LocalPlayer
48
local Mouse = LocalPlayer:GetMouse()
49
50
local GetChildren = game.GetChildren
51
local GetPlayers = Players.GetPlayers
52
local WorldToScreen = Camera.WorldToScreenPoint
53
local WorldToViewportPoint = Camera.WorldToViewportPoint
54
local GetPartsObscuringTarget = Camera.GetPartsObscuringTarget
55
local FindFirstChild = game.FindFirstChild
56
local RenderStepped = RunService.RenderStepped
57
universal silent aim How to use it? universal silent aim
58
local GuiInset = GuiService.GetGuiInset
59
local GetMouseLocation = UserInputService.GetMouseLocation
60
61
local resume = coroutine.resume
62
local create = coroutine.create
63
64
local ValidTargetParts = {"Head", "HumanoidRootPart"}
65
local PredictionAmount = 0.165
66
67
local mouse_box = Drawing.new("Square")
68
universal silent aim How to get it? universal silent aim
69
mouse_box.Visible = true
70
mouse_box.ZIndex = 999
71
mouse_box.Color = Color3.fromRGB(54, 57, 241)
72
mouse_box.Thickness = 20
73
mouse_box.Size = Vector2.new(20, 20)
74
mouse_box.Filled = true
75
76
local fov_circle = Drawing.new("Circle")
77
fov_circle.Thickness = 1
78
fov_circle.NumSides = 100
79
universal silent aim PasteShr universal silent aim
80
fov_circle.Radius = 180
81
fov_circle.Filled = false
82
fov_circle.Visible = false
83
fov_circle.ZIndex = 999
84
fov_circle.Transparency = 1
85
fov_circle.Color = Color3.fromRGB(54, 57, 241)
86
87
local ExpectedArguments = {
88
FindPartOnRayWithIgnoreList = {
89
ArgCountRequired = 3,
90
universal silent aim How to dowload it? universal silent aim
91
Args = {
92
"Instance", "Ray", "table", "boolean", "boolean"
93
}
94
},
95
FindPartOnRayWithWhitelist = {
96
ArgCountRequired = 3,
97
Args = {
98
"Instance", "Ray", "table", "boolean"
99
}
100
},
101
universal silent aim PasteShr universal silent aim
102
FindPartOnRay = {
103
ArgCountRequired = 2,
104
Args = {
105
"Instance", "Ray", "Instance", "boolean", "boolean"
106
}
107
},
108
Raycast = {
109
ArgCountRequired = 3,
110
Args = {
111
"Instance", "Vector3", "Vector3", "RaycastParams"
112
universal silent aim How to use it? universal silent aim
113
}
114
}
115
}
116
117
function CalculateChance(Percentage)
118
-- // Floor the percentage
119
Percentage = math.floor(Percentage)
120
121
-- // Get the chance
122
local chance = math.floor(Random.new().NextNumber(Random.new(), 0, 1) * 100) / 100
123
universal silent aim How to get it? universal silent aim
124
125
-- // Return
126
return chance <= Percentage / 100
127
end
128
129
130
--[[file handling]] do
131
if not isfolder(MainFileName) then
132
makefolder(MainFileName);
133
end
134
universal silent aim How to dowload it? universal silent aim
135
136
if not isfolder(string.format("%s/%s", MainFileName, tostring(game.PlaceId))) then
137
makefolder(string.format("%s/%s", MainFileName, tostring(game.PlaceId)))
138
end
139
end
140
141
local Files = listfiles(string.format("%s/%s", "UniversalSilentAim", tostring(game.PlaceId)))
142
143
-- functions
144
local function GetFiles() -- credits to the linoria lib for this function, listfiles returns the files full path and its annoying
145
universal silent aim How to dowload it? universal silent aim
146
local out = {}
147
for i = 1, #Files do
148
local file = Files[i]
149
if file:sub(-4) == '.lua' then
150
-- i hate this but it has to be done ...
151
152
local pos = file:find('.lua', 1, true)
153
local start = pos
154
155
local char = file:sub(pos, pos)
156
universal silent aim How to use it? universal silent aim
157
while char ~= '/' and char ~= '\\' and char ~= '' do
158
pos = pos - 1
159
char = file:sub(pos, pos)
160
end
161
162
if char == '/' or char == '\\' then
163
table.insert(out, file:sub(pos + 1, start - 1))
164
end
165
end
166
end
167
universal silent aim How to get it for free? universal silent aim
168
169
return out
170
end
171
172
local function UpdateFile(FileName)
173
assert(FileName or FileName == "string", "oopsies");
174
writefile(string.format("%s/%s/%s.lua", MainFileName, tostring(game.PlaceId), FileName), HttpService:JSONEncode(SilentAimSettings))
175
end
176
177
local function LoadFile(FileName)
178
universal silent aim How to dowload it? universal silent aim
179
assert(FileName or FileName == "string", "oopsies");
180
181
local File = string.format("%s/%s/%s.lua", MainFileName, tostring(game.PlaceId), FileName)
182
local ConfigData = HttpService:JSONDecode(readfile(File))
183
for Index, Value in next, ConfigData do
184
SilentAimSettings[Index] = Value
185
end
186
end
187
188
local function getPositionOnScreen(Vector)
189
universal silent aim How to get it? universal silent aim
190
local Vec3, OnScreen = WorldToScreen(Camera, Vector)
191
return Vector2.new(Vec3.X, Vec3.Y), OnScreen
192
end
193
194
local function ValidateArguments(Args, RayMethod)
195
local Matches = 0
196
if #Args < RayMethod.ArgCountRequired then
197
return false
198
end
199
for Pos, Argument in next, Args do
200
universal silent aim How to get it for free? universal silent aim
201
if typeof(Argument) == RayMethod.Args[Pos] then
202
Matches = Matches + 1
203
end
204
end
205
return Matches >= RayMethod.ArgCountRequired
206
end
207
208
local function getDirection(Origin, Position)
209
return (Position - Origin).Unit * 1000
210
end
211
universal silent aim How to dowload it? universal silent aim
212
213
local function getMousePosition()
214
return GetMouseLocation(UserInputService)
215
end
216
217
local function IsPlayerVisible(Player)
218
local PlayerCharacter = Player.Character
219
local LocalPlayerCharacter = LocalPlayer.Character
220
221
if not (PlayerCharacter or LocalPlayerCharacter) then return end
222
universal silent aim PasteShr universal silent aim
223
224
local PlayerRoot = FindFirstChild(PlayerCharacter, Options.TargetPart.Value) or FindFirstChild(PlayerCharacter, "HumanoidRootPart")
225
226
if not PlayerRoot then return end
227
228
local CastPoints, IgnoreList = {PlayerRoot.Position, LocalPlayerCharacter, PlayerCharacter}, {LocalPlayerCharacter, PlayerCharacter}
229
local ObscuringObjects = #GetPartsObscuringTarget(Camera, CastPoints, IgnoreList)
230
231
return ((ObscuringObjects == 0 and true) or (ObscuringObjects > 0 and false))
232
end
233
universal silent aim How to get it? universal silent aim
234
235
local function getClosestPlayer()
236
if not Options.TargetPart.Value then return end
237
local Closest
238
local DistanceToMouse
239
for _, Player in next, GetPlayers(Players) do
240
if Player == LocalPlayer then continue end
241
if Toggles.TeamCheck.Value and Player.Team == LocalPlayer.Team then continue end
242
243
local Character = Player.Character
244
universal silent aim PasteShr universal silent aim
245
if not Character then continue end
246
247
if Toggles.VisibleCheck.Value and not IsPlayerVisible(Player) then continue end
248
249
local HumanoidRootPart = FindFirstChild(Character, "HumanoidRootPart")
250
local Humanoid = FindFirstChild(Character, "Humanoid")
251
if not HumanoidRootPart or not Humanoid or Humanoid and Humanoid.Health <= 0 then continue end
252
253
local ScreenPosition, OnScreen = getPositionOnScreen(HumanoidRootPart.Position)
254
if not OnScreen then continue end
255
universal silent aim How to get it? universal silent aim
256
257
local Distance = (getMousePosition() - ScreenPosition).Magnitude
258
if Distance <= (DistanceToMouse or Options.Radius.Value or 2000) then
259
Closest = ((Options.TargetPart.Value == "Random" and Character[ValidTargetParts[math.random(1, #ValidTargetParts)]]) or Character[Options.TargetPart.Value])
260
DistanceToMouse = Distance
261
end
262
end
263
return Closest
264
end
265
266
universal silent aim How to get it for free? universal silent aim
267
-- ui creating & handling
268
local Library = loadstring(game:HttpGet(" "))()
269
270
local Window = Library:CreateWindow("Universal Silent Aim, by Project Redacted")
271
local GeneralTab = Window:AddTab("General")
272
local MainBOX = GeneralTab:AddLeftTabbox("Main") do
273
local Main = MainBOX:AddTab("Main")
274
275
Main:AddToggle("aim_Enabled", {Text = "Enabled"}):AddKeyPicker("aim_Enabled_KeyPicker", {Default = "RightAlt", SyncToggleState = true, Mode = "Toggle", Text = "Enabled", NoUI = false});
276
Options.aim_Enabled_KeyPicker:OnClick(function()
277
universal silent aim How to get it? universal silent aim
278
SilentAimSettings.Enabled = not SilentAimSettings.Enabled
279
280
Toggles.aim_Enabled.Value = SilentAimSettings.Enabled
281
Toggles.aim_Enabled:SetValue(SilentAimSettings.Enabled)
282
283
mouse_box.Visible = SilentAimSettings.Enabled
284
end)
285
286
Main:AddToggle("TeamCheck", {Text = "Team Check", Default = SilentAimSettings.TeamCheck}):OnChanged(function()
287
SilentAimSettings.TeamCheck = Toggles.TeamCheck.Value
288
universal silent aim How to dowload it? universal silent aim
289
end)
290
Main:AddToggle("VisibleCheck", {Text = "Visible Check", Default = SilentAimSettings.VisibleCheck}):OnChanged(function()
291
SilentAimSettings.VisibleCheck = Toggles.VisibleCheck.Value
292
end)
293
Main:AddDropdown("TargetPart", {Text = "Target Part", Default = SilentAimSettings.TargetPart, Values = {"Head", "HumanoidRootPart", "Random"}}):OnChanged(function()
294
SilentAimSettings.TargetPart = Options.TargetPart.Value
295
end)
296
Main:AddDropdown("Method", {Text = "Silent Aim Method", Default = SilentAimSettings.SilentAimMethod, Values = {
297
"Raycast","FindPartOnRay",
298
"FindPartOnRayWithWhitelist",
299
universal silent aim How to dowload it? universal silent aim
300
"FindPartOnRayWithIgnoreList",
301
"Mouse.Hit/Target"
302
}}):OnChanged(function()
303
SilentAimSettings.SilentAimMethod = Options.Method.Value
304
end)
305
Main:AddSlider('HitChance', {
306
Text = 'Hit chance',
307
Default = 100,
308
Min = 0,
309
Max = 100,
310
universal silent aim How to use it? universal silent aim
311
Rounding = 1,
312
313
Compact = false,
314
})
315
Options.HitChance:OnChanged(function()
316
SilentAimSettings.HitChance = Options.HitChance.Value
317
end)
318
end
319
320
local MiscellaneousBOX = GeneralTab:AddLeftTabbox("Miscellaneous")
321
universal silent aim PasteShr universal silent aim
322
local FieldOfViewBOX = GeneralTab:AddLeftTabbox("Field Of View") do
323
local Main = FieldOfViewBOX:AddTab("Visuals")
324
325
Main:AddToggle("Visible", {Text = "Show FOV Circle"}):AddColorPicker("Color", {Default = Color3.fromRGB(54, 57, 241)}):OnChanged(function()
326
fov_circle.Visible = Toggles.Visible.Value
327
SilentAimSettings.FOVVisible = Toggles.Visible.Value
328
end)
329
Main:AddSlider("Radius", {Text = "FOV Circle Radius", Min = 0, Max = 360, Default = 130, Rounding = 0}):OnChanged(function()
330
fov_circle.Radius = Options.Radius.Value
331
SilentAimSettings.FOVRadius = Options.Radius.Value
332
universal silent aim How to dowload it? universal silent aim
333
end)
334
Main:AddToggle("MousePosition", {Text = "Show Silent Aim Target"}):AddColorPicker("MouseVisualizeColor", {Default = Color3.fromRGB(54, 57, 241)}):OnChanged(function()
335
mouse_box.Visible = Toggles.MousePosition.Value
336
SilentAimSettings.ShowSilentAimTarget = Toggles.MousePosition.Value
337
end)
338
local PredictionTab = MiscellaneousBOX:AddTab("Prediction")
339
PredictionTab:AddToggle("Prediction", {Text = "Mouse.Hit/Target Prediction"}):OnChanged(function()
340
SilentAimSettings.MouseHitPrediction = Toggles.Prediction.Value
341
end)
342
PredictionTab:AddSlider("Amount", {Text = "Prediction Amount", Min = 0.165, Max = 1, Default = 0.165, Rounding = 3}):OnChanged(function()
343
universal silent aim How to use it? universal silent aim
344
PredictionAmount = Options.Amount.Value
345
SilentAimSettings.MouseHitPredictionAmount = Options.Amount.Value
346
end)
347
end
348
349
local CreateConfigurationBOX = GeneralTab:AddRightTabbox("Create Configuration") do
350
local Main = CreateConfigurationBOX:AddTab("Create Configuration")
351
352
Main:AddInput("CreateConfigTextBox", {Default = "", Numeric = false, Finished = false, Text = "Create Configuration to Create", Tooltip = "Creates a configuration file containing settings you can save and load", Placeholder = "File Name here"}):OnChanged(function()
353
if Options.CreateConfigTextBox.Value and string.len(Options.CreateConfigTextBox.Value) ~= "" then
354
universal silent aim How to dowload it? universal silent aim
355
FileToSave = Options.CreateConfigTextBox.Value
356
end
357
end)
358
359
Main:AddButton("Create Configuration File", function()
360
if FileToSave ~= "" or FileToSave ~= nil then
361
UpdateFile(FileToSave)
362
end
363
end)
364
end
365
universal silent aim PasteShr universal silent aim
366
367
local SaveConfigurationBOX = GeneralTab:AddRightTabbox("Save Configuration") do
368
local Main = SaveConfigurationBOX:AddTab("Save Configuration")
369
Main:AddDropdown("SaveConfigurationDropdown", {Values = GetFiles(), Text = "Choose Configuration to Save"})
370
Main:AddButton("Save Configuration", function()
371
if Options.SaveConfigurationDropdown.Value then
372
UpdateFile(Options.SaveConfigurationDropdown.Value)
373
end
374
end)
375
end
376
universal silent aim How to get it for free? universal silent aim
377
378
local LoadConfigurationBOX = GeneralTab:AddRightTabbox("Load Configuration") do
379
local Main = LoadConfigurationBOX:AddTab("Load Configuration")
380
381
Main:AddDropdown("LoadConfigurationDropdown", {Values = GetFiles(), Text = "Choose Configuration to Load"})
382
Main:AddButton("Load Configuration", function()
383
if table.find(GetFiles(), Options.LoadConfigurationDropdown.Value) then
384
LoadFile(Options.LoadConfigurationDropdown.Value)
385
386
Toggles.TeamCheck:SetValue(SilentAimSettings.TeamCheck)
387
universal silent aim How to get it? universal silent aim
388
Toggles.VisibleCheck:SetValue(SilentAimSettings.VisibleCheck)
389
Options.TargetPart:SetValue(SilentAimSettings.TargetPart)
390
Options.Method:SetValue(SilentAimSettings.SilentAimMethod)
391
Toggles.Visible:SetValue(SilentAimSettings.FOVVisible)
392
Options.Radius:SetValue(SilentAimSettings.FOVRadius)
393
Toggles.MousePosition:SetValue(SilentAimSettings.ShowSilentAimTarget)
394
Toggles.Prediction:SetValue(SilentAimSettings.MouseHitPrediction)
395
Options.Amount:SetValue(SilentAimSettings.MouseHitPredictionAmount)
396
Options.HitChance:SetValue(SilentAimSettings.HitChance)
397
end
398
universal silent aim How to use it? universal silent aim
399
end)
400
end
401
402
resume(create(function()
403
RenderStepped:Connect(function()
404
if Toggles.MousePosition.Value and Toggles.aim_Enabled.Value then
405
if getClosestPlayer() then
406
local Root = getClosestPlayer().Parent.PrimaryPart or getClosestPlayer()
407
local RootToViewportPoint, IsOnScreen = WorldToViewportPoint(Camera, Root.Position);
408
-- using PrimaryPart instead because if your Target Part is "Random" it will flicker the square between the Target's Head and HumanoidRootPart (its annoying)
409
universal silent aim How to use it? universal silent aim
410
411
mouse_box.Visible = IsOnScreen
412
mouse_box.Position = Vector2.new(RootToViewportPoint.X, RootToViewportPoint.Y)
413
else
414
mouse_box.Visible = false
415
mouse_box.Position = Vector2.new()
416
end
417
end
418
419
if Toggles.Visible.Value then
420
universal silent aim How to dowload it? universal silent aim
421
fov_circle.Visible = Toggles.Visible.Value
422
fov_circle.Color = Options.Color.Value
423
fov_circle.Position = getMousePosition()
424
end
425
end)
426
end))
427
428
-- hooks
429
local oldNamecall
430
oldNamecall = hookmetamethod(game, "__namecall", newcclosure(function(...)
431
universal silent aim How to dowload it? universal silent aim
432
local Method = getnamecallmethod()
433
local Arguments = {...}
434
local self = Arguments[1]
435
local chance = CalculateChance(SilentAimSettings.HitChance)
436
if Toggles.aim_Enabled.Value and self == workspace and not checkcaller() and chance == true then
437
if Method == "FindPartOnRayWithIgnoreList" and Options.Method.Value == Method then
438
if ValidateArguments(Arguments, ExpectedArguments.FindPartOnRayWithIgnoreList) then
439
local A_Ray = Arguments[2]
440
441
local HitPart = getClosestPlayer()
442
universal silent aim How to use it? universal silent aim
443
if HitPart then
444
local Origin = A_Ray.Origin
445
local Direction = getDirection(Origin, HitPart.Position)
446
Arguments[2] = Ray.new(Origin, Direction)
447
448
return oldNamecall(unpack(Arguments))
449
end
450
end
451
elseif Method == "FindPartOnRayWithWhitelist" and Options.Method.Value == Method then
452
if ValidateArguments(Arguments, ExpectedArguments.FindPartOnRayWithWhitelist) then
453
universal silent aim PasteShr universal silent aim
454
local A_Ray = Arguments[2]
455
456
local HitPart = getClosestPlayer()
457
if HitPart then
458
local Origin = A_Ray.Origin
459
local Direction = getDirection(Origin, HitPart.Position)
460
Arguments[2] = Ray.new(Origin, Direction)
461
462
return oldNamecall(unpack(Arguments))
463
end
464
universal silent aim PasteShr universal silent aim
465
end
466
elseif (Method == "FindPartOnRay" or Method == "findPartOnRay") and Options.Method.Value:lower() == Method:lower() then
467
if ValidateArguments(Arguments, ExpectedArguments.FindPartOnRay) then
468
local A_Ray = Arguments[2]
469
470
local HitPart = getClosestPlayer()
471
if HitPart then
472
local Origin = A_Ray.Origin
473
local Direction = getDirection(Origin, HitPart.Position)
474
Arguments[2] = Ray.new(Origin, Direction)
475
universal silent aim PasteShr universal silent aim
476
477
return oldNamecall(unpack(Arguments))
478
end
479
end
480
elseif Method == "Raycast" and Options.Method.Value == Method then
481
if ValidateArguments(Arguments, ExpectedArguments.Raycast) then
482
local A_Origin = Arguments[2]
483
484
local HitPart = getClosestPlayer()
485
if HitPart then
486
universal silent aim PasteShr universal silent aim
487
Arguments[3] = getDirection(A_Origin, HitPart.Position)
488
489
return oldNamecall(unpack(Arguments))
490
end
491
end
492
end
493
end
494
return oldNamecall(...)
495
end))
496
497
universal silent aim PasteShr universal silent aim
498
local oldIndex = nil
499
oldIndex = hookmetamethod(game, "__index", newcclosure(function(self, Index)
500
if self == Mouse and not checkcaller() and Toggles.aim_Enabled.Value and Options.Method.Value == "Mouse.Hit/Target" and getClosestPlayer() then
501
local HitPart = getClosestPlayer()
502
503
if Index == "Target" or Index == "target" then
504
return HitPart
505
elseif Index == "Hit" or Index == "hit" then
506
return ((Toggles.Prediction.Value and (HitPart.CFrame + (HitPart.Velocity * PredictionAmount))) or (not Toggles.Prediction.Value and HitPart.CFrame))
507
elseif Index == "X" or Index == "x" then
508
universal silent aim How to dowload it? universal silent aim
509
return self.X
510
elseif Index == "Y" or Index == "y" then
511
return self.Y
512
elseif Index == "UnitRay" then
513
return Ray.new(self.Origin, (self.Hit - self.Origin).Unit)
514
end
515
end
516
517
return oldIndex(self, Index)
518
end))
519
universal silent aim How to get it for free? universal silent aim
520
universal silent aim
Description
universal silent aim
To share this paste please copy this url and send to your friends
RAW Paste Data
Recent Pastes
- camwhores bypass 2024
Plaintext | 57.5K | 4 months ago
- lupus caning
Plaintext | 2.3K | 4 months ago
- girlsdoporn 411
Plaintext | 3.3K | 4 months ago
- 090816-252
Plaintext | 2.6K | 4 months ago
- glory quest mad
Plaintext | 2.1K | 4 months ago
- nina star sessions
Plaintext | 3.3K | 4 months ago
- foto kontol afrika
Plaintext | 2.2K | 4 months ago