-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetout.lua
More file actions
433 lines (382 loc) · 14 KB
/
getout.lua
File metadata and controls
433 lines (382 loc) · 14 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
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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
-- Draggable GUI with Tabs
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")
local Lighting = game:GetService("Lighting")
local Camera = workspace.CurrentCamera
local LocalPlayer = Players.LocalPlayer
-- ========================
-- GUI SETUP
-- ========================
local Gui = Instance.new("ScreenGui")
Gui.Name = "MenuGui"
Gui.ResetOnSpawn = false
Gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Gui.Parent = LocalPlayer:WaitForChild("PlayerGui")
local Window = Instance.new("Frame")
Window.Size = UDim2.new(0, 280, 0, 280)
Window.Position = UDim2.new(0.5, -140, 0.5, -140)
Window.BackgroundColor3 = Color3.fromRGB(18, 18, 24)
Window.BorderSizePixel = 0
Window.Parent = Gui
Instance.new("UICorner", Window).CornerRadius = UDim.new(0, 10)
local Shadow = Instance.new("ImageLabel")
Shadow.Size = UDim2.new(1, 30, 1, 30)
Shadow.Position = UDim2.new(0, -15, 0, -15)
Shadow.BackgroundTransparency = 1
Shadow.Image = "rbxassetid://5554236805"
Shadow.ImageColor3 = Color3.new(0, 0, 0)
Shadow.ImageTransparency = 0.5
Shadow.ScaleType = Enum.ScaleType.Slice
Shadow.SliceCenter = Rect.new(23, 23, 277, 277)
Shadow.ZIndex = 0
Shadow.Parent = Window
local TitleBar = Instance.new("Frame")
TitleBar.Size = UDim2.new(1, 0, 0, 36)
TitleBar.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
TitleBar.BorderSizePixel = 0
TitleBar.Parent = Window
Instance.new("UICorner", TitleBar).CornerRadius = UDim.new(0, 10)
local TitleFix = Instance.new("Frame")
TitleFix.Size = UDim2.new(1, 0, 0, 10)
TitleFix.Position = UDim2.new(0, 0, 1, -10)
TitleFix.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
TitleFix.BorderSizePixel = 0
TitleFix.Parent = TitleBar
local TitleLabel = Instance.new("TextLabel")
TitleLabel.Size = UDim2.new(1, -40, 1, 0)
TitleLabel.Position = UDim2.new(0, 12, 0, 0)
TitleLabel.BackgroundTransparency = 1
TitleLabel.Text = "✦ Menu"
TitleLabel.TextColor3 = Color3.fromRGB(220, 220, 255)
TitleLabel.Font = Enum.Font.GothamBold
TitleLabel.TextSize = 14
TitleLabel.TextXAlignment = Enum.TextXAlignment.Left
TitleLabel.Parent = TitleBar
local HideBtn = Instance.new("TextButton")
HideBtn.Size = UDim2.new(0, 24, 0, 24)
HideBtn.Position = UDim2.new(1, -30, 0.5, -12)
HideBtn.BackgroundColor3 = Color3.fromRGB(60, 60, 80)
HideBtn.TextColor3 = Color3.new(1,1,1)
HideBtn.Text = "—"
HideBtn.Font = Enum.Font.GothamBold
HideBtn.TextSize = 14
HideBtn.Parent = TitleBar
Instance.new("UICorner", HideBtn).CornerRadius = UDim.new(0, 6)
local MenuBtn = Instance.new("TextButton")
MenuBtn.Size = UDim2.new(0, 80, 0, 30)
MenuBtn.Position = UDim2.new(0, 10, 0, 10)
MenuBtn.BackgroundColor3 = Color3.fromRGB(12, 12, 18)
MenuBtn.TextColor3 = Color3.fromRGB(220, 220, 255)
MenuBtn.Text = "✦ Menu"
MenuBtn.Font = Enum.Font.GothamBold
MenuBtn.TextSize = 13
MenuBtn.Visible = false
MenuBtn.Parent = Gui
Instance.new("UICorner", MenuBtn).CornerRadius = UDim.new(0, 8)
HideBtn.MouseButton1Click:Connect(function()
Window.Visible = false
MenuBtn.Visible = true
end)
MenuBtn.MouseButton1Click:Connect(function()
Window.Visible = true
MenuBtn.Visible = false
end)
-- ========================
-- ПЕРЕТАСКИВАНИЕ ОКНА
-- ========================
local dragging, dragStart, startPos = false, nil, nil
TitleBar.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = input.Position
startPos = Window.Position
end
end)
TitleBar.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = false
end
end)
UserInputService.InputChanged:Connect(function(input)
if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
local delta = input.Position - dragStart
Window.Position = UDim2.new(
startPos.X.Scale, startPos.X.Offset + delta.X,
startPos.Y.Scale, startPos.Y.Offset + delta.Y
)
end
end)
-- ========================
-- ПЕРЕТАСКИВАНИЕ КНОПКИ MENU
-- ========================
local draggingBtn, btnDragStart, btnStartPos = false, nil, nil
MenuBtn.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
draggingBtn = true
btnDragStart = input.Position
btnStartPos = MenuBtn.Position
end
end)
MenuBtn.InputEnded:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
draggingBtn = false
end
end)
UserInputService.InputChanged:Connect(function(input)
if draggingBtn and input.UserInputType == Enum.UserInputType.MouseMovement then
local delta = input.Position - btnDragStart
MenuBtn.Position = UDim2.new(
btnStartPos.X.Scale, btnStartPos.X.Offset + delta.X,
btnStartPos.Y.Scale, btnStartPos.Y.Offset + delta.Y
)
end
end)
-- ========================
-- ВКЛАДКИ
-- ========================
local TabBar = Instance.new("Frame")
TabBar.Size = UDim2.new(1, -16, 0, 30)
TabBar.Position = UDim2.new(0, 8, 0, 42)
TabBar.BackgroundTransparency = 1
TabBar.Parent = Window
local TabLayout = Instance.new("UIListLayout")
TabLayout.FillDirection = Enum.FillDirection.Horizontal
TabLayout.Padding = UDim.new(0, 6)
TabLayout.Parent = TabBar
local Content = Instance.new("Frame")
Content.Size = UDim2.new(1, -16, 1, -90)
Content.Position = UDim2.new(0, 8, 0, 80)
Content.BackgroundTransparency = 1
Content.Parent = Window
local tabs = {}
local tabPages = {}
local function createTab(name, icon)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0, 80, 1, 0)
btn.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
btn.TextColor3 = Color3.fromRGB(160, 160, 190)
btn.Text = icon .. " " .. name
btn.Font = Enum.Font.GothamBold
btn.TextSize = 12
btn.Parent = TabBar
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 7)
local page = Instance.new("Frame")
page.Size = UDim2.new(1, 0, 1, 0)
page.BackgroundTransparency = 1
page.Visible = false
page.Parent = Content
local pageLayout = Instance.new("UIListLayout")
pageLayout.Padding = UDim.new(0, 8)
pageLayout.Parent = page
tabs[name] = btn
tabPages[name] = page
btn.MouseButton1Click:Connect(function()
for n, b in pairs(tabs) do
b.BackgroundColor3 = Color3.fromRGB(30, 30, 40)
b.TextColor3 = Color3.fromRGB(160, 160, 190)
tabPages[n].Visible = false
end
btn.BackgroundColor3 = Color3.fromRGB(0, 140, 255)
btn.TextColor3 = Color3.new(1,1,1)
page.Visible = true
end)
return page
end
local function createToggle(parent, text, callback)
local row = Instance.new("Frame")
row.Size = UDim2.new(1, 0, 0, 36)
row.BackgroundColor3 = Color3.fromRGB(28, 28, 38)
row.BorderSizePixel = 0
row.Parent = parent
Instance.new("UICorner", row).CornerRadius = UDim.new(0, 8)
local lbl = Instance.new("TextLabel")
lbl.Size = UDim2.new(1, -56, 1, 0)
lbl.Position = UDim2.new(0, 12, 0, 0)
lbl.BackgroundTransparency = 1
lbl.Text = text
lbl.TextColor3 = Color3.fromRGB(210, 210, 230)
lbl.Font = Enum.Font.Gotham
lbl.TextSize = 13
lbl.TextXAlignment = Enum.TextXAlignment.Left
lbl.Parent = row
local state = false
local toggleBg = Instance.new("Frame")
toggleBg.Size = UDim2.new(0, 40, 0, 22)
toggleBg.Position = UDim2.new(1, -50, 0.5, -11)
toggleBg.BackgroundColor3 = Color3.fromRGB(60, 60, 75)
toggleBg.BorderSizePixel = 0
toggleBg.Parent = row
Instance.new("UICorner", toggleBg).CornerRadius = UDim.new(1, 0)
local dot = Instance.new("Frame")
dot.Size = UDim2.new(0, 16, 0, 16)
dot.Position = UDim2.new(0, 3, 0.5, -8)
dot.BackgroundColor3 = Color3.new(1,1,1)
dot.BorderSizePixel = 0
dot.Parent = toggleBg
Instance.new("UICorner", dot).CornerRadius = UDim.new(1, 0)
local clickBtn = Instance.new("TextButton")
clickBtn.Size = UDim2.new(1, 0, 1, 0)
clickBtn.BackgroundTransparency = 1
clickBtn.Text = ""
clickBtn.Parent = row
clickBtn.MouseButton1Click:Connect(function()
state = not state
toggleBg.BackgroundColor3 = state and Color3.fromRGB(0,140,255) or Color3.fromRGB(60,60,75)
dot.Position = state and UDim2.new(1,-19,0.5,-8) or UDim2.new(0,3,0.5,-8)
callback(state)
end)
end
-- ========================
-- СТРАНИЦЫ
-- ========================
local espPage = createTab("ESP", "👁")
local miscPage = createTab("Misc", "⚙")
tabs["ESP"].BackgroundColor3 = Color3.fromRGB(0, 140, 255)
tabs["ESP"].TextColor3 = Color3.new(1,1,1)
tabPages["ESP"].Visible = true
-- ========================
-- ESP ЛОГИКА
-- ========================
local ESP = { Enabled = false, Color = Color3.fromRGB(0,255,0), Cache = {} }
local function createESPEntry()
local lines = table.create(4)
for i = 1,4 do
local l = Drawing.new("Line")
l.Color = ESP.Color
l.Thickness = 2
l.Visible = false
lines[i] = l
end
local label = Drawing.new("Text")
label.Color = ESP.Color
label.Size = 14
label.Center = true
label.Outline = true
label.OutlineColor = Color3.new(0,0,0)
label.Font = Drawing.Fonts.UI
label.Visible = false
return { lines = lines, label = label }
end
local function removeESPEntry(e)
for _, l in ipairs(e.lines) do l:Remove() end
e.label:Remove()
end
local function setESPVisible(e, v)
for _, l in ipairs(e.lines) do l.Visible = v end
e.label.Visible = v
end
local function tryRegister(obj)
if not obj:IsA("Model") then return end
if ESP.Cache[obj] then return end
local hum = obj:FindFirstChildWhichIsA("Humanoid")
if not hum then return end
local root = obj:FindFirstChild("HumanoidRootPart") or obj:FindFirstChildWhichIsA("BasePart")
if not root then return end
if obj == LocalPlayer.Character then return end
local entry = createESPEntry()
entry.humanoid = hum
entry.root = root
ESP.Cache[obj] = entry
obj.AncestryChanged:Connect(function(_, parent)
if parent == nil and ESP.Cache[obj] then
removeESPEntry(ESP.Cache[obj])
ESP.Cache[obj] = nil
end
end)
end
for _, obj in ipairs(workspace:GetDescendants()) do tryRegister(obj) end
workspace.DescendantAdded:Connect(tryRegister)
LocalPlayer.CharacterAdded:Connect(function(char)
if ESP.Cache[char] then
removeESPEntry(ESP.Cache[char])
ESP.Cache[char] = nil
end
end)
createToggle(espPage, "ESP Boxes", function(state)
ESP.Enabled = state
if not state then
for _, e in pairs(ESP.Cache) do setESPVisible(e, false) end
end
end)
-- ========================
-- MISC ЛОГИКА
-- ========================
-- Сохраняем оригинальные значения
local origValues = {
Brightness = Lighting.Brightness,
ClockTime = Lighting.ClockTime,
FogEnd = Lighting.FogEnd,
GlobalShadows = Lighting.GlobalShadows,
Ambient = Lighting.Ambient,
OutdoorAmbient = Lighting.OutdoorAmbient,
}
local origEffects = {}
for _, e in ipairs(Lighting:GetChildren()) do
if e:IsA("BlurEffect") or e:IsA("ColorCorrectionEffect")
or e:IsA("SunRaysEffect") or e:IsA("BloomEffect")
or e:IsA("DepthOfFieldEffect") then
origEffects[e] = e.Enabled
end
end
local function applyFullbright(state)
if state then
Lighting.Brightness = 2
Lighting.ClockTime = 14
Lighting.FogEnd = 1e9
Lighting.GlobalShadows = false
Lighting.Ambient = Color3.fromRGB(178, 178, 178)
Lighting.OutdoorAmbient = Color3.fromRGB(178, 178, 178)
for e, _ in pairs(origEffects) do
e.Enabled = false
end
else
Lighting.Brightness = origValues.Brightness
Lighting.ClockTime = origValues.ClockTime
Lighting.FogEnd = origValues.FogEnd
Lighting.GlobalShadows = origValues.GlobalShadows
Lighting.Ambient = origValues.Ambient
Lighting.OutdoorAmbient = origValues.OutdoorAmbient
for e, orig in pairs(origEffects) do
e.Enabled = orig
end
end
end
createToggle(miscPage, "Fullbright", applyFullbright)
-- ========================
-- ESP RENDER LOOP
-- ========================
local corners = table.create(8)
RunService.RenderStepped:Connect(function()
for model, entry in pairs(ESP.Cache) do
if not ESP.Enabled or entry.humanoid.Health <= 0 then
setESPVisible(entry, false)
continue
end
local ok, cf, size = pcall(model.GetBoundingBox, model)
if not ok then setESPVisible(entry, false) continue end
local hx,hy,hz = size.X*.5, size.Y*.5, size.Z*.5
corners[1]=cf*Vector3.new(-hx, hy,-hz) corners[2]=cf*Vector3.new( hx, hy,-hz)
corners[3]=cf*Vector3.new( hx, hy, hz) corners[4]=cf*Vector3.new(-hx, hy, hz)
corners[5]=cf*Vector3.new(-hx,-hy,-hz) corners[6]=cf*Vector3.new( hx,-hy,-hz)
corners[7]=cf*Vector3.new( hx,-hy, hz) corners[8]=cf*Vector3.new(-hx,-hy, hz)
local minX,minY,maxX,maxY = math.huge,math.huge,-math.huge,-math.huge
local vis = true
for i=1,8 do
local sp,on = Camera:WorldToViewportPoint(corners[i])
if not on then vis=false break end
if sp.X<minX then minX=sp.X end if sp.Y<minY then minY=sp.Y end
if sp.X>maxX then maxX=sp.X end if sp.Y>maxY then maxY=sp.Y end
end
if not vis then setESPVisible(entry,false) continue end
local ls = entry.lines
ls[1].From=Vector2.new(minX,minY) ls[1].To=Vector2.new(maxX,minY)
ls[2].From=Vector2.new(minX,maxY) ls[2].To=Vector2.new(maxX,maxY)
ls[3].From=Vector2.new(minX,minY) ls[3].To=Vector2.new(minX,maxY)
ls[4].From=Vector2.new(maxX,minY) ls[4].To=Vector2.new(maxX,maxY)
entry.label.Text = model.Name.." ["..math.floor(entry.humanoid.Health).."hp]"
entry.label.Position = Vector2.new((minX+maxX)*.5, minY-18)
setESPVisible(entry, true)
end
end)
print("Menu loaded")