-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy patharesnal
386 lines (328 loc) · 12.7 KB
/
aresnal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
local Window = OrionLib:MakeWindow({Name = "Space Hub | Arsenal", HidePremium = false, IntroEnabled = false, SaveConfig = true, IntroText = "SpaceHub", IntroIcon = "rbxassetid://4483362748", Icon = "rbxassetid://4483362748", ConfigFolder = "Loader"})
-- Functions
-- Tabs
local Aimbot = Window:MakeTab({
Name = "Aimbot",
Icon = "rbxassetid://4483362748",
PremiumOnly = false
})
local gunmods = Window:MakeTab({
Name = "Gun Mods",
Icon = "rbxassetid://4384396122",
PremiumOnly = false
})
local Player = Window:MakeTab({
Name = "Player",
Icon = "rbxassetid://4335480896",
PremiumOnly = false
})
--Buttons
Aimbot:AddButton({
Name = "Aimbot",
Callback = function()
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local GuiService = game:GetService("GuiService")
local LocalPlayer = Players.LocalPlayer
local Mouse = LocalPlayer:GetMouse()
local Camera = workspace.CurrentCamera
local sc = Vector2.new(Camera.ViewportSize.X / 2, Camera.ViewportSize.Y / 2)
local Down = false
local Inset = GuiService:GetGuiInset()
--// Options \\--
getgenv().Options = {
Enabled = true,
TeamCheck = true,
Triggerbot = true,
Smoothness = true,
AimPart = "Head",
FOV = 150
}
--// Functions \\--
local gc = function()
local nearest = math.huge
local nearplr
for i, v in pairs(game:GetService("Players"):GetPlayers()) do
if v ~= game:GetService("Players").LocalPlayer and v.Character and v.Character:FindFirstChild(Options.AimPart) then
if Options.TeamCheck then
if game:GetService("Players").LocalPlayer.Team ~= v.Team then
local pos = Camera:WorldToScreenPoint(v.Character[Options.AimPart].Position)
local diff = math.sqrt((pos.X - sc.X) ^ 2 + (pos.Y + Inset.Y - sc.Y) ^ 2)
if diff < nearest and diff < Options.FOV then
nearest = diff
nearplr = v
end
end
else
local pos = Camera:WorldToScreenPoint(v.Character[Options.AimPart].Position)
local diff = math.sqrt((pos.X - sc.X) ^ 2 + (pos.Y + Inset.Y - sc.Y) ^ 2)
if diff < nearest and diff < Options.FOV then
nearest = diff
nearplr = v
end
end
end
end
return nearplr
end -- google chrome made this but i modified it for it to use teamcheck
function Circle()
local circ = Drawing.new('Circle')
circ.Transparency = 1
circ.Thickness = 1.5
circ.Visible = true
circ.Color = Color3.fromRGB(255,255,255)
circ.Filled = false
circ.NumSides = 150
circ.Radius = Options.FOV
return circ
end
curc = Circle()
--// Main \\--
UserInputService.InputBegan:Connect(function( input )
if input.UserInputType == Enum.UserInputType.MouseButton2 then
Down = true
end
end)
UserInputService.InputEnded:Connect(function( input )
if input.UserInputType == Enum.UserInputType.MouseButton2 then
Down = false
end
end)
RunService.RenderStepped:Connect(function( ... )
if Options.Enabled then
if Down then
if gc() ~= nil and gc().Character:FindFirstChild(Options.AimPart) then
if Options.Smoothness then
pcall(function( ... )
local Info = TweenInfo.new(0.05,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
game:GetService("TweenService"):Create(Camera,Info,{
CFrame = CFrame.new(Camera.CFrame.p,gc().Character[Options.AimPart].CFrame.p)
}):Play()
end)
else
pcall(function()
Camera.CFrame = CFrame.new(Camera.CFrame.p,gc().Character[Options.AimPart].CFrame.p)
end)
end
end
end
curc.Visible = true
curc.Position = Vector2.new(Mouse.X, Mouse.Y+Inset.Y)
curc.Radius = Options.FOV
else
-- do nothing except remove the fov
curc.Visible = false
end
end)
end
})
gunmods:AddButton({
Name = "No Recoil",
Callback = function()
while true do
wait(5)
getgenv().Toggle = true
getgenv().ValueCheck = true
local FunctionCount = 0
local ValueCount = 0
local hookrecoil = function(func)
local hookrecoil; hookrecoil = hookfunction(func, function(...)
local args = {...}
if getgenv().Toggle then
return 0 or nil
end
return hookrecoil(unpack(args))
end)
end
for _, func in next, getgc(true) do
if typeof(func) == "function" and string.find(string.lower(debug.getinfo(func).name), "recoil") then
FunctionCount = FunctionCount + 1
hookrecoil(func)
elseif typeof(func) == "table" then
for i, v in next, func do
if typeof(v) == "function" and string.find(string.lower(debug.getinfo(v).name), "recoil") then
FunctionCount = FunctionCount + 1
hookrecoil(v)
elseif getgenv().ValueCheck and typeof(i) == "string" and string.find(i, "%a+") and rawget(func, i) then
for char in string.gmatch(i, "%a+") do
if string.find(string.lower(char), "recoil") then
ValueCount = ValueCount + 1
if typeof(v) == "number" then
rawset(func, i, 0)
elseif typeof(v) == "string" and tonumber(v) then
rawset(func, i, "0")
elseif typeof(v) == "Vector3" then
rawset(func, i, Vector3.new(0,0,0))
elseif typeof(v) == "CFrame" then
rawset(func, i, CFrame.new(0,0,0))
end
end
end
end
end
end
end
end
end
})
gunmods:AddButton({
Name = "One Shot Everybody",
Callback = function()
local settings = {repeatamount = 4, inclusions = {"SayMessageRequest"}}
local mt = getrawmetatable(game)
local old = mt.__namecall
setreadonly(mt, false)
local function isincluded(uh)
for i,o in next, settings.inclusions do
if uh.Name == o then
return true
end
end
return false
end
mt.__namecall = function(uh, ...)
local args = {...}
local method = getnamecallmethod()
if method == "FireServer" or method == "InvokeServer" and isincluded(uh) then
for i = 1,settings.repeatamount do
old(uh, ...)
end
end
return old(uh, ...)
end
setreadonly(mt, true)
end
})
gunmods:AddButton({
Name = "Inf Ammo",
Callback = function()
for i,v in next, game.ReplicatedStorage.Weapons:GetChildren() do
for i,c in next, v:GetChildren() do -- for some reason, using GetDescendants dsent let you modify weapon ammo, so I do this instead
for i,x in next, getconnections(c.Changed) do
x:Disable() -- probably not needed
end
if c.Name == "Ammo" or c.Name == "StoredAmmo" then
c.Value = 300 -- don't set this above 300 or else your guns wont work
end
end
end
end
})
gunmods:AddButton({
Name = "Instant Reload",
Callback = function()
for i,v in next, game.ReplicatedStorage.Weapons:GetChildren() do
for i,c in next, v:GetChildren() do -- for some reason, using GetDescendants dsent let you modify weapon ammo, so I do this instead
for i,x in next, getconnections(c.Changed) do
x:Disable() -- probably not needed
end
if c.Name == "AReload" or c.Name == "RecoilControl" or c.Name == "EReload" or c.Name == "SReload" or c.Name == "ReloadTime" or c.Name == "EquipTime" then
c.Value = 0
end
end
end
end
})
gunmods:AddButton({
Name = "Inf Range",
Callback = function()
for i,v in next, game.ReplicatedStorage.Weapons:GetChildren() do
for i,c in next, v:GetChildren() do -- for some reason, using GetDescendants dsent let you modify weapon ammo, so I do this instead
for i,x in next, getconnections(c.Changed) do
x:Disable() -- probably not needed
end
if c.Name == "Range" then
c.Value = 9e9
end
end
end
end
})
gunmods:AddButton({
Name = "Full Auto",
Callback = function()
for i,v in next, game.ReplicatedStorage.Weapons:GetChildren() do
for i,c in next, v:GetChildren() do -- for some reason, using GetDescendants dsent let you modify weapon ammo, so I do this instead
for i,x in next, getconnections(c.Changed) do
x:Disable() -- probably not needed
end
if c.Name == "Auto" then
c.Value = true
end
end
end
end
})
gunmods:AddButton({
Name = "DMG Mode",
Callback = function()
for i,v in next, game.ReplicatedStorage.Weapons:GetChildren() do
for i,c in next, v:GetChildren() do -- for some reason, using GetDescendants dsent let you modify weapon ammo, so I do this instead
for i,x in next, getconnections(c.Changed) do
x:Disable() -- probably not needed
end
if c.Name == "DMG" then
c.Value = 1010
end
end
end
end
})
gunmods:AddButton({
Name = "Rapid Fire",
Callback = function()
for i,v in next, game.ReplicatedStorage.Weapons:GetChildren() do
for i,c in next, v:GetChildren() do -- for some reason, using GetDescendants dsent let you modify weapon ammo, so I do this instead
for i,x in next, getconnections(c.Changed) do
x:Disable() -- probably not needed
end
if c.Name == "FireRate" or c.Name == "BFireRate" then
c.Value = 0.05 -- don't set this lower than 0.02 or else your game will crash
end
end
end
end
})
gunmods:AddButton({
Name = "Spread Mods",
Callback = function()
for i,v in next, game.ReplicatedStorage.Weapons:GetChildren() do
for i,c in next, v:GetChildren() do -- for some reason, using GetDescendants dsent let you modify weapon ammo, so I do this instead
for i,x in next, getconnections(c.Changed) do
x:Disable() -- probably not needed
end
if c.Name == "Spread" then
c.Value = 0
elseif c.Name == "MaxSpread" then
c.Value = 0
end
end
end
end
})
Player:AddSlider({
Name = "WalkSpeed",
Min = 16,
Max = 500,
Default = 16,
Color = Color3.fromRGB(155, 66, 245),
Increment = 1,
ValueName = "Walk Speed",
Callback = function(ws)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = ws
end
})
Player:AddSlider({
Name = "Jump Power",
Min = 50,
Max = 500,
Default = 50,
Color = Color3.fromRGB(155, 66, 245),
Increment = 1,
ValueName = "Jump Power",
Callback = function(jp)
game.Players.LocalPlayer.Character.Humanoid.JumpPower = jp
end
})