-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.lua
More file actions
347 lines (306 loc) · 11.1 KB
/
Copy pathtest.lua
File metadata and controls
347 lines (306 loc) · 11.1 KB
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
-- [[ Steal an Egg — Custom Modern Hub ]] --
local OrionLib = loadstring(game:HttpGet(('https://raw.githubusercontent.com/shlexware/Orion/main/source')))()
local Window = OrionLib:MakeWindow({
Name = "⚡ STEAL AN EGG | Premium Hub",
HidePremium = false,
SaveConfig = true,
ConfigFolder = "StealAnEggConfig",
IntroEnabled = true,
IntroText = "Скрипт Загружен!",
IntroIcon = "rbxassetid://4483345998"
})
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local LocalPlayer = Players.LocalPlayer
-- Функция поиска игрока по части имени
local function GetPlayerByName(name)
if name == "" then return nil end
name = string.lower(name)
for _, player in pairs(Players:GetPlayers()) do
if player ~= LocalPlayer then
if string.find(string.lower(player.Name), name) or string.find(string.lower(player.DisplayName), name) then
return player
end
end
end
return nil
end
-- ================= ЛОГИКА ПОЛЕТА (FLY) =================
local flying = false
local flySpeed = 50
local bodyVel, bodyGyro
local renderConnection
local function setFly(state)
flying = state
local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local root = char:FindFirstChild("HumanoidRootPart")
local humanoid = char:FindFirstChildOfClass("Humanoid")
if not root or not humanoid then return end
if flying then
humanoid.PlatformStand = true
bodyVel = Instance.new("BodyVelocity")
bodyVel.MaxForce = Vector3.new(1e9, 1e9, 1e9)
bodyVel.Velocity = Vector3.zero
bodyVel.Parent = root
bodyGyro = Instance.new("BodyGyro")
bodyGyro.MaxTorque = Vector3.new(1e9, 1e9, 1e9)
bodyGyro.P = 9e4
bodyGyro.CFrame = root.CFrame
bodyGyro.Parent = root
renderConnection = RunService.RenderStepped:Connect(function()
if not flying or not root or not humanoid then return end
local camera = workspace.CurrentCamera
local moveDir = humanoid.MoveDirection
bodyGyro.CFrame = camera.CFrame
if moveDir.Magnitude > 0 then
local flyDir = (camera.CFrame.LookVector * -moveDir.Z + camera.CFrame.RightVector * moveDir.X).Unit
bodyVel.Velocity = flyDir * flySpeed
else
bodyVel.Velocity = Vector3.zero
end
end)
else
if renderConnection then renderConnection:Disconnect() end
if bodyVel then bodyVel:Destroy() end
if bodyGyro then bodyGyro:Destroy() end
humanoid.PlatformStand = false
end
end
LocalPlayer.CharacterAdded:Connect(function()
if flying then setFly(false) end
end)
-- ================= ВКЛАДКА 1: ПОЛЕТ (FLY) =================
local FlyTab = Window:MakeTab({
Name = "🚀 Полет (Fly)",
Icon = "rbxassetid://4483345998",
PremiumOnly = false
})
FlyTab:AddSection({ Name = "Управление полетом" })
FlyTab:AddToggle({
Name = "Включить Fly (Без лагов)",
Default = false,
Callback = function(Value)
setFly(Value)
end
})
FlyTab:AddSlider({
Name = "Скорость полета",
Min = 20,
Max = 300,
Default = 50,
Color = Color3.fromRGB(255, 170, 0),
Increment = 5,
ValueName = "Скорость",
Callback = function(Value)
flySpeed = Value
end
})
-- ================= ВКЛАДКА 2: ИГРОКИ (PLAYER TP) =================
local PlayerTab = Window:MakeTab({
Name = "👤 Игроки",
Icon = "rbxassetid://4483345998",
PremiumOnly = false
})
PlayerTab:AddSection({ Name = "Управление и Телепорты к Игрокам" })
local targetPlayerName = ""
PlayerTab:AddTextbox({
Name = "Никнейм игрока (или часть ника)",
Default = "",
TextDisappear = false,
Callback = function(Value)
targetPlayerName = Value
end
})
PlayerTab:AddButton({
Name = "Телепортироваться К игроку",
Callback = function()
local target = GetPlayerByName(targetPlayerName)
if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
local myChar = LocalPlayer.Character
if myChar and myChar:FindFirstChild("HumanoidRootPart") then
myChar.HumanoidRootPart.CFrame = target.Character.HumanoidRootPart.CFrame * CFrame.new(0, 3, 0)
OrionLib:MakeNotification({
Name = "Успешно!",
Content = "Вы телепортированы к " .. target.Name,
Image = "rbxassetid://4483345998",
Time = 3
})
end
else
OrionLib:MakeNotification({
Name = "Ошибка",
Content = "Игрок не найден!",
Image = "rbxassetid://4483345998",
Time = 3
})
end
end
})
PlayerTab:AddButton({
Name = "Притянуть игрока К СЕБЕ",
Callback = function()
local target = GetPlayerByName(targetPlayerName)
if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
local myChar = LocalPlayer.Character
if myChar and myChar:FindFirstChild("HumanoidRootPart") then
task.spawn(function()
for i = 1, 15 do
if target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
target.Character.HumanoidRootPart.CFrame = myChar.HumanoidRootPart.CFrame * CFrame.new(0, 0, -3)
end
task.wait(0.05)
end
end)
end
end
end
})
_G.BringLoop = false
PlayerTab:AddToggle({
Name = "Постоянно держать игрока у себя",
Default = false,
Callback = function(Value)
_G.BringLoop = Value
while _G.BringLoop do
task.wait(0.1)
if targetPlayerName ~= "" then
local target = GetPlayerByName(targetPlayerName)
local myChar = LocalPlayer.Character
if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") and myChar and myChar:FindFirstChild("HumanoidRootPart") then
target.Character.HumanoidRootPart.CFrame = myChar.HumanoidRootPart.CFrame * CFrame.new(0, 0, -3)
end
end
end
end
})
-- ================= ВКЛАДКА 3: РЕДКИЕ ЯЙЦА =================
local EggTab = Window:MakeTab({
Name = "🥚 Крутые яйца",
Icon = "rbxassetid://4483345998",
PremiumOnly = false
})
EggTab:AddSection({ Name = "Поиск и ТП к Ценным Яйцам" })
local rareKeywords = {"gold", "diamond", "void", "mythic", "secret", "legendary", "huge", "rare", "dragon", "dark"}
local function isRareEgg(objName)
local nameLower = string.lower(objName)
if not string.find(nameLower, "egg") then return false end
for _, kw in pairs(rareKeywords) do
if string.find(nameLower, kw) then return true end
end
return false
end
local function tpToBestEgg()
local char = LocalPlayer.Character
if not char or not char:FindFirstChild("HumanoidRootPart") then return end
local targetEgg = nil
for _, v in pairs(workspace:GetDescendants()) do
if (v:IsA("Model") or v:IsA("BasePart")) and isRareEgg(v.Name) then
targetEgg = v
break
end
end
if not targetEgg then
for _, v in pairs(workspace:GetDescendants()) do
if (v:IsA("Model") or v:IsA("BasePart")) and string.find(string.lower(v.Name), "egg") then
targetEgg = v
break
end
end
end
if targetEgg then
local eggPos = targetEgg:IsA("Model") and targetEgg:GetPivot() or targetEgg.CFrame
char.HumanoidRootPart.CFrame = eggPos * CFrame.new(0, 3, 0)
OrionLib:MakeNotification({
Name = "Яйцо найдено!",
Content = "Телепорт к: " .. targetEgg.Name,
Image = "rbxassetid://4483345998",
Time = 3
})
else
OrionLib:MakeNotification({
Name = "Ошибка",
Content = "Редких яиц на карте не найдено",
Image = "rbxassetid://4483345998",
Time = 3
})
end
end
EggTab:AddButton({
Name = "ТП к самому крутому яйцу",
Callback = function()
pcall(tpToBestEgg)
end
})
_G.AutoTpRare = false
EggTab:AddToggle({
Name = "Авто-ТП к редким яйцам",
Default = false,
Callback = function(Value)
_G.AutoTpRare = Value
while _G.AutoTpRare do
task.wait(1.5)
pcall(tpToBestEgg)
end
end
})
-- ================= ВКЛАДКА 4: НАСТРОЙКИ ИГРОКА =================
local CharTab = Window:MakeTab({
Name = "⚙️ Персонаж & База",
Icon = "rbxassetid://4483345998",
PremiumOnly = false
})
CharTab:AddSection({ Name = "Параметры игрока" })
CharTab:AddSlider({
Name = "Скорость бега (WalkSpeed)",
Min = 16,
Max = 250,
Default = 16,
Color = Color3.fromRGB(0, 255, 127),
Increment = 2,
ValueName = "Скорость",
Callback = function(Value)
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
LocalPlayer.Character.Humanoid.WalkSpeed = Value
end
end
})
CharTab:AddSlider({
Name = "Высота прыжка (JumpPower)",
Min = 50,
Max = 200,
Default = 50,
Color = Color3.fromRGB(0, 191, 255),
Increment = 5,
ValueName = "Сила",
Callback = function(Value)
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") then
LocalPlayer.Character.Humanoid.JumpPower = Value
end
end
})
CharTab:AddSection({ Name = "Телепорты базы" })
CharTab:AddButton({
Name = "Сохранить точку базы",
Callback = function()
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
_G.BaseCFrame = LocalPlayer.Character.HumanoidRootPart.CFrame
OrionLib:MakeNotification({
Name = "База сохранена",
Content = "Точка успешно установлена!",
Image = "rbxassetid://4483345998",
Time = 3
})
end
end
})
CharTab:AddButton({
Name = "Телепортироваться на базу",
Callback = function()
if _G.BaseCFrame and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
LocalPlayer.Character.HumanoidRootPart.CFrame = _G.BaseCFrame
end
end
})
-- Инициализация меню
OrionLib:Init()