-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathUntitled Hood
323 lines (278 loc) · 13.1 KB
/
Untitled Hood
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
local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
local Window = OrionLib:MakeWindow({Name = "Space Hub | Untitled Hoods", HidePremium = false, SaveConfig = true, ConfigFolder = "Untitled Hood"})
local main = Window:MakeTab({
Name = "Main",
Icon = "rbxassetid://4483345998",
PremiumOnly = false
})
local Teleports = Window:MakeTab({
Name = "Teleports",
Icon = "rbxassetid://4483345998",
PremiumOnly = false
})
OrionLib:MakeNotification({
Name = "Space Hub",
Content = "Space Hub Has Loaded!",
Image = "rbxassetid://4483345998",
Time = 5
})
main:AddButton({
Name = "Aimlock",
Callback = function()
local Settings = {
rewrittenmain = {
Enabled = true,
Key = "q",
DOT = true,
AIRSHOT = true,
NOTIF = true,
AUTOPRED = false,
FOV = math.huge,
RESOVLER = false
}
}
local SelectedPart = "HumanoidRootPart"
local Prediction = true
local PredictionValue = 0.146
local AnchorCount = 0
local MaxAnchor = 50
local CC = game:GetService"Workspace".CurrentCamera
local Plr;
local enabled = false
local accomidationfactor = 0.139
local mouse = game.Players.LocalPlayer:GetMouse()
local placemarker = Instance.new("Part", game.Workspace)
function makemarker(Parent, Adornee, Color, Size, Size2)
local e = Instance.new("BillboardGui", Parent)
e.Name = "PP"
e.Adornee = Adornee
e.Size = UDim2.new(Size, Size2, Size, Size2)
e.AlwaysOnTop = Settings.rewrittenmain.DOT
local a = Instance.new("Frame", e)
if Settings.rewrittenmain.DOT == true then
a.Size = UDim2.new(1, 0, 1, 0)
else
a.Size = UDim2.new(0, 0, 0, 0)
end
if Settings.rewrittenmain.DOT == true then
a.Transparency = 0
a.BackgroundTransparency = 0
else
a.Transparency = 1
a.BackgroundTransparency = 1
end
a.BackgroundColor3 = Color
local g = Instance.new("UICorner", a)
if Settings.rewrittenmain.DOT == false then
g.CornerRadius = UDim.new(0, 0)
else
g.CornerRadius = UDim.new(1, 1)
end
return(e)
end
local data = game.Players:GetPlayers()
function noob(player)
local character
repeat wait() until player.Character
local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(107, 184, 255), 0.3, 3)
handler.Name = player.Name
player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
spawn(function()
while wait() do
if player.Character then
end
end
end)
end
for i = 1, #data do
if data[i] ~= game.Players.LocalPlayer then
noob(data[i])
end
end
game.Players.PlayerAdded:connect(function(Player)
noob(Player)
end)
spawn(function()
placemarker.Anchored = true
placemarker.CanCollide = false
if Settings.rewrittenmain.DOT == true then
placemarker.Size = Vector3.new(8, 8, 8)
else
placemarker.Size = Vector3.new(0, 0, 0)
end
placemarker.Transparency = 0.75
if Settings.rewrittenmain.DOT then
makemarker(placemarker, placemarker, Color3.fromRGB(232, 186, 200), 0.40, 0)
end
end)
game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then
if enabled == true then
enabled = false
if Settings.rewrittenmain.NOTIF == true then
Plr = getClosestPlayerToCursor()
game.StarterGui:SetCore("SendNotification", {
Title = "";
Text = "Unlocked :)",
Duration = 5
})
end
else
Plr = getClosestPlayerToCursor()
enabled = true
if Settings.rewrittenmain.NOTIF == true then
game.StarterGui:SetCore("SendNotification", {
Title = "";
Text = "Target: "..tostring(Plr.Character.Humanoid.DisplayName),
Duration = 5
})
end
end
end
end)
function getClosestPlayerToCursor()
local closestPlayer
local shortestDistance = Settings.rewrittenmain.FOV
for i, v in pairs(game.Players:GetPlayers()) do
if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then
local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
if magnitude < shortestDistance then
closestPlayer = v
shortestDistance = magnitude
end
end
end
return closestPlayer
end
local pingvalue = nil;
local split = nil;
local ping = nil;
game:GetService"RunService".Stepped:connect(function()
if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
else
placemarker.CFrame = CFrame.new(0, 9999, 0)
end
if Settings.rewrittenmain.AUTOPRED == true then
pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
split = string.split(pingvalue,'(')
ping = tonumber(split[1])
if ping < 130 then
PredictionValue = 0.151
elseif ping < 125 then
PredictionValue = 0.149
elseif ping < 110 then
PredictionValue = 0.146
elseif ping < 105 then
PredictionValue = 0.138
elseif ping < 90 then
PredictionValue = 0.136
elseif ping < 80 then
PredictionValue = 0.134
elseif ping < 70 then
PredictionValue = 0.131
elseif ping < 60 then
PredictionValue = 0.1229
elseif ping < 50 then
PredictionValue = 0.1225
elseif ping < 40 then
PredictionValue = 0.1256
end
end
end)
local mt = getrawmetatable(game)
local old = mt.__namecall
setreadonly(mt, false)
mt.__namecall = newcclosure(function(...)
local args = {...}
if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.rewrittenmain.Enabled and Plr.Character ~= nil then
-- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
--[[
if Settings.rewrittenmain.AIRSHOT == true then
if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
--// Airshot
args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)
else
args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
end
else
args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
end
]]
if Prediction == true then
args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)
else
args[3] = Plr.Character[SelectedPart].Position
end
return old(unpack(args))
end
return old(...)
end)
game:GetService("RunService").RenderStepped:Connect(function()
if Settings.rewrittenmain.RESOVLER == true and Plr.Character ~= nil and enabled and Settings.rewrittenmain.Enabled then
if Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~= nil then
if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
--// Airshot
--// Anchor Check
if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
AnchorCount = AnchorCount + 1
if AnchorCount >= MaxAnchor then
Prediction = false
wait(2)
AnchorCount = 0;
end
else
Prediction = true
AnchorCount = 0;
end
SelectedPart = "LeftFoot"
else
--// Anchor Check
if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
AnchorCount = AnchorCount + 1
if AnchorCount >= MaxAnchor then
Prediction = false
wait(2)
AnchorCount = 0;
end
else
Prediction = true
AnchorCount = 0;
end
SelectedPart = "HumanoidRootPart"
end
else
--// Anchor Check
if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
AnchorCount = AnchorCount + 1
if AnchorCount >= MaxAnchor then
Prediction = false
wait(2)
AnchorCount = 0;
end
else
Prediction = true
AnchorCount = 0;
end
SelectedPart = "HumanoidRootPart"
end
else
SelectedPart = "HumanoidRootPart"
end
end)
end
})
Teleports:AddButton({
Name = "Gun Store",
Callback = function()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(461.9927978515625, 57.32850646972656, -1315.7518310546875)
end
})
Teleports:AddButton({
Name = "Gun Store",
Callback = function()
game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(224.04603576660156, 57.052799224853516, -1152.4306640625)
end
})
OrionLib:Init()