-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.lua
More file actions
255 lines (237 loc) · 11.7 KB
/
script.lua
File metadata and controls
255 lines (237 loc) · 11.7 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
local Library=loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
local Window=Library.CreateLib("Notoriety by Yogtze Menu Key: K","DarkTheme",false)
local CombatTab=Window:NewTab("Combat")
local MovementTab=Window:NewTab("Movement")
local ESPTab=Window:NewTab("ESP")
local BadgeTab=Window:NewTab("Badges")
local CombatSection=CombatTab:NewSection("Combat Options")
local MovementSection=MovementTab:NewSection("Movement Options")
local ESPSection=ESPTab:NewSection("ESP Options")
local BadgeSection=BadgeTab:NewSection("Choose Badge")
local Players=game:GetService("Players")
local RunService=game:GetService("RunService")
local UserInputService=game:GetService("UserInputService")
local ReplicatedStorage=game:GetService("ReplicatedStorage")
local player=Players.LocalPlayer
local workspace=workspace
local flying,infiniteStamina,killAllEnabled,speed,mainHeartbeat=false,false,false,85,nil
local ESP={
Guard={enabled=false,parts={},color=Color3.fromRGB(0,255,0)},
Citizen={enabled=false,parts={},color=Color3.fromRGB(255,255,255)},
Camera={enabled=false,parts={},color=Color3.fromRGB(255,255,0)},
Item={enabled=false,parts={},color=Color3.fromRGB(0,170,255)},
Keycard={enabled=false,parts={},color=Color3.fromRGB(255,128,0)},
SpecialKey={enabled=false,parts={},color=Color3.fromRGB(255,255,0)}
}
local Badges={
["Recruit Thief"]="1",["Pro Thief"]="2",["Very Hard Expert"]="3",["Veteran Thief"]="4",
["Anarchy Expert"]="5",["Master Thief"]="6",["True Criminal"]="7",["Ninja"]="8",
["Entrepreneur"]="9",["Executive"]="10",["CEO"]="11",["Mastermind"]="12",
["Elite"]="13",["Shadow Warrior"]="14",["Spooky"]="15",["Santa"]="16",
["Fighter"]="17",["Killer"]="18",["Destroyer"]="19",["Annihilator"]="20",
["Monster"]="21",["Infected"]="22",["Perfectionist"]="23",["Trick Or Treater"]="24",
["Premium"]="25",["Cheater"]="26",["Sus"]="27",["Virtuoso"]="31",["Pied Piper"]="32",
["Careful"]="33",["Jade's Finest"]="34"
}
local BadgeNames={}
for k in pairs(Badges) do table.insert(BadgeNames,k) end
local function clearESPList(list)
for _,objs in pairs(list) do
for _,obj in pairs(objs) do
if obj and obj.Parent then obj:Destroy() end
end
end
table.clear(list)
end
local function createESPObject(model,label,color)
if not model then return end
local objs={}
local part=model.PrimaryPart or model:FindFirstChildWhichIsA("BasePart")
if not part then return end
local bill=Instance.new("BillboardGui")
bill.Size=UDim2.new(0,80,0,20)
bill.StudsOffset=Vector3.new(0,1.5,0)
bill.AlwaysOnTop=true
bill.Adornee=part
bill.Parent=part
local lbl=Instance.new("TextLabel",bill)
lbl.Size=UDim2.new(1,0,1,0)
lbl.BackgroundTransparency=1
lbl.Text=label
lbl.TextColor3=color
lbl.TextScaled=true
lbl.Font=Enum.Font.Gotham
lbl.TextStrokeTransparency=0.5
table.insert(objs,bill)
local hl=Instance.new("Highlight")
hl.Adornee=model
hl.FillColor=color
hl.OutlineColor=color
hl.DepthMode=Enum.HighlightDepthMode.AlwaysOnTop
hl.Parent=model
table.insert(objs,hl)
return objs
end
CombatSection:NewToggle("Kill All NPCs Loop (Citizens + Guards)","Insta kills all NPCs looped",function(s) killAllEnabled=s end)
MovementSection:NewToggle("Infinite Stamina","Keeps stamina maxed",function(s) infiniteStamina=s end)
MovementSection:NewButton("NoClip / Fly (Y)","Toggle flight with Y",function() end)
ESPSection:NewToggle("Guard ESP","Highlights guards",function(s) ESP.Guard.enabled=s end)
ESPSection:NewToggle("Citizen ESP","Highlights citizens",function(s) ESP.Citizen.enabled=s end)
ESPSection:NewToggle("Camera ESP","Highlights cameras",function(s) ESP.Camera.enabled=s end)
ESPSection:NewToggle("Item ESP","Highlights lootables",function(s) ESP.Item.enabled=s end)
ESPSection:NewToggle("Keycard ESP","Highlights keycards",function(s) ESP.Keycard.enabled=s end)
ESPSection:NewToggle("Special Key ESP","Highlights special keys",function(s) ESP.SpecialKey.enabled=s end)
BadgeSection:NewDropdown("Badge","Apply before joining a lobby",BadgeNames,function(sel)
local id=Badges[sel]
if id then ReplicatedStorage:WaitForChild("SetTitle"):FireServer(id) end
end)
local flightGyro,flightVel,flightNoclip,flightOldCollide=nil,nil,nil,{}
local function startFlight()
if flying then return end
flying=true
local char=player.Character
if not char then return end
local HRP=char:FindFirstChild("HumanoidRootPart")
if not HRP then return end
for _,part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") then flightOldCollide[part]=part.CanCollide part.CanCollide=false end
end
flightNoclip=RunService.Stepped:Connect(function()
for _,part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") then part.CanCollide=false end
end
end)
flightGyro=Instance.new("BodyGyro")
flightGyro.P=9e4
flightGyro.MaxTorque=Vector3.new(9e4,9e4,9e4)
flightGyro.CFrame=HRP.CFrame
flightGyro.Parent=HRP
flightVel=Instance.new("BodyVelocity")
flightVel.MaxForce=Vector3.new(9e9,9e9,9e9)
flightVel.Velocity=Vector3.zero
flightVel.Parent=HRP
RunService:BindToRenderStep("YogtzeFly",Enum.RenderPriority.Character.Value,function()
local cam=workspace.CurrentCamera
local look=cam.CFrame.LookVector
local forward=Vector3.new(look.X,0,look.Z)
if forward.Magnitude>0 then forward=forward.Unit end
local right=Vector3.new(cam.CFrame.RightVector.X,0,cam.CFrame.RightVector.Z)
if right.Magnitude>0 then right=right.Unit end
local up=Vector3.new(0,1,0)
local move=Vector3.zero
if UserInputService:IsKeyDown(Enum.KeyCode.W) then move+=forward end
if UserInputService:IsKeyDown(Enum.KeyCode.S) then move-=forward end
if UserInputService:IsKeyDown(Enum.KeyCode.A) then move-=right end
if UserInputService:IsKeyDown(Enum.KeyCode.D) then move+=right end
if UserInputService:IsKeyDown(Enum.KeyCode.Space) then move+=up end
if UserInputService:IsKeyDown(Enum.KeyCode.LeftShift) then move-=up end
if move.Magnitude>0 then move=move.Unit*speed else move=Vector3.zero end
flightGyro.CFrame=CFrame.new(Vector3.zero,Vector3.new(look.X,0,look.Z))
flightVel.Velocity=move
end)
end
local function stopFlight()
if not flying then return end
flying=false
if flightGyro then flightGyro:Destroy() end
if flightVel then flightVel:Destroy() end
RunService:UnbindFromRenderStep("YogtzeFly")
if flightNoclip then flightNoclip:Disconnect() end
for part,c in pairs(flightOldCollide) do if part and part.Parent then part.CanCollide=c end end
table.clear(flightOldCollide)
end
local function startMainLoop()
if mainHeartbeat then return end
mainHeartbeat=RunService.Heartbeat:Connect(function()
local char=player.Character
if not char then return end
local crim=workspace:FindFirstChild("Criminals") and workspace.Criminals:FindFirstChild(player.Name)
if infiniteStamina and crim then
local m=crim:FindFirstChild("MaxStamina")
local s=crim:FindFirstChild("Stamina")
if m then m.Value=10000 end
if s then s.Value=10000 end
end
if killAllEnabled then
local tool=char:FindFirstChildWhichIsA("Tool")
if tool then
local targets={}
local police=workspace:FindFirstChild("Police")
local citizens=workspace:FindFirstChild("Citizens")
if police then for _,v in ipairs(police:GetChildren()) do table.insert(targets,v) end end
if citizens then for _,v in ipairs(citizens:GetChildren()) do table.insert(targets,v) end end
for _,npc in ipairs(targets) do
local hum=npc:FindFirstChildWhichIsA("Humanoid")
local head=npc:FindFirstChild("Head")
if hum and head and hum.Health>0 then
ReplicatedStorage.RS_Package.Assets.Remotes.Damage:FireServer("Damage",tool,hum,hum.Health,head,tool.Name,head.Position,{})
end
end
end
end
if ESP.Guard.enabled then
clearESPList(ESP.Guard.parts)
for _,g in pairs(workspace:WaitForChild("Police"):GetChildren()) do
if g:IsA("Model") then
local label=g:FindFirstChild("Type") and g.Type.Value or "Guard"
table.insert(ESP.Guard.parts,createESPObject(g,label,ESP.Guard.color))
end
end
else clearESPList(ESP.Guard.parts) end
if ESP.Citizen.enabled then
clearESPList(ESP.Citizen.parts)
for _,c in pairs(workspace:WaitForChild("Citizens"):GetChildren()) do
if c:IsA("Model") then
table.insert(ESP.Citizen.parts,createESPObject(c,"Citizen",ESP.Citizen.color))
end
end
else clearESPList(ESP.Citizen.parts) end
if ESP.Camera.enabled then
clearESPList(ESP.Camera.parts)
for _,cam in pairs(workspace:WaitForChild("Cameras"):GetChildren()) do
if cam:IsA("Model") then table.insert(ESP.Camera.parts,createESPObject(cam,"Camera",ESP.Camera.color)) end
end
else clearESPList(ESP.Camera.parts) end
if ESP.Item.enabled then
clearESPList(ESP.Item.parts)
for _,item in pairs(workspace:WaitForChild("Lootables"):GetChildren()) do
if item:IsA("Model") then table.insert(ESP.Item.parts,createESPObject(item,item.Name,ESP.Item.color)) end
end
else clearESPList(ESP.Item.parts) end
if ESP.Keycard.enabled then
clearESPList(ESP.Keycard.parts)
for _,g in pairs(workspace:WaitForChild("Police"):GetChildren()) do
local l=g:FindFirstChild("Lanyard")
if l then
local k=l:FindFirstChild("PickpocketKeycard")
if k and k:FindFirstChild("Model") then table.insert(ESP.Keycard.parts,createESPObject(k.Model,"Keycard",ESP.Keycard.color)) end
end
end
else clearESPList(ESP.Keycard.parts) end
if ESP.SpecialKey.enabled then
clearESPList(ESP.SpecialKey.parts)
local guard=workspace:FindFirstChild("Police") and workspace.Police:GetChildren()[14]
if guard then
local keyAcc=guard:FindFirstChild("KeyAccessory")
if keyAcc then table.insert(ESP.SpecialKey.parts,createESPObject(keyAcc.Handle,"Guard Key",ESP.SpecialKey.color)) end
end
local map=workspace:FindFirstChild("Map")
if map then
for _,f in pairs(map:GetChildren()) do
if f:IsA("Folder") and f.Name=="Keys" then
for _,k in pairs(f:GetChildren()) do
local part=k:FindFirstChild("Handle") or k
table.insert(ESP.SpecialKey.parts,createESPObject(part,"Map Key",ESP.SpecialKey.color))
end
end
end
end
else clearESPList(ESP.SpecialKey.parts) end
end)
end
UserInputService.InputBegan:Connect(function(input,gp)
if gp then return end
if input.KeyCode==Enum.KeyCode.Y then if flying then stopFlight() else startFlight() end end
if input.KeyCode==Enum.KeyCode.K then Library:ToggleUI() end
end)
startMainLoop()