1 | local Library = loadstring(game:HttpGet("https://pastebin.com/raw/vff1bQ9F"))() |
2 | local Window = Library.CreateLib("TokwaWare - V3 Premium Version", "Midnight") |
3 | |
4 | local Tab = Window:NewTab("Main") |
5 | local MainSection = Tab:NewSection("Legit Locks") |
6 | |
7 | MainSection:NewButton("Streamable Lock - T", "Super streamable that they would think ur legit", function() |
8 | local hotkey = "t" -- toggle key |
9 | local mouse = game.Players.LocalPlayer:GetMouse() |
10 | |
11 | |
12 | |
13 | mouse.KeyDown:Connect(function(key) |
14 | if key == hotkey then |
15 | if getgenv().ValiantAimHacks.SilentAimEnabled == true then |
16 | getgenv().ValiantAimHacks.SilentAimEnabled = false |
17 | else |
18 | getgenv().ValiantAimHacks.SilentAimEnabled = true |
19 | end |
20 | end |
21 | end) |
22 | |
23 | |
24 | -- // Services |
25 | local Players = game:GetService("Players") |
26 | |
27 | -- // Vars |
28 | local LocalPlayer = Players.LocalPlayer |
29 | local accomidationfactor = 0.12567724521 |
30 | |
31 | -- // Silent Aim Module |
32 | local SilentAim = loadstring(game:HttpGet("https://pastebin.com/raw/2f0mGbMP"))() |
33 | SilentAim.TeamCheck = false |
34 | -- // Metatable vars |
35 | local mt = getrawmetatable(game) |
36 | local backupindex = mt.__index |
37 | setreadonly(mt, false) |
38 | |
39 | -- // Check if player is down |
40 | SilentAim.checkSilentAim = function() |
41 | local checkA = (SilentAim.SilentAimEnabled == true and SilentAim.Selected ~= LocalPlayer) |
42 | local playerCharacter = SilentAim.Selected.Character |
43 | local daHood = (playerCharacter.BodyEffects["K.O"].Value == false or playerCharacter:FindFirstChild("GRABBING_CONSTRAINT") ~= nil) |
44 | |
45 | return (checkA and daHood) |
46 | end |
47 | |
48 | -- // Hook |
49 | mt.__index = newcclosure(function(t, k) |
50 | if (t:IsA("Mouse") and (k == "Hit")) then |
51 | print(t, k) |
52 | local CPlayer = SilentAim.Selected |
53 | if (SilentAim.checkSilentAim()) then |
54 | if (CPlayer.Character:FindFirstChild("HumanoidRootPart")) then |
55 | return {p=(CPlayer.Character.HumanoidRootPart.CFrame.p+(CPlayer.Character.HumanoidRootPart.Velocity*accomidationfactor))} |
56 | end |
57 | end |
58 | end |
59 | return backupindex(t, k) |
60 | end) |
61 | |
62 | -- // Revert |
63 | setreadonly(mt, true) |
64 | getgenv().ValiantAimHacks.FOV = 10 |
65 | end) |
66 | |
67 | MainSection:NewButton("Camlock", "AutoPredicts Shots", function() |
68 | getgenv().Prediction = 0.1248710929171 |
69 | getgenv().AimPart = "HumanoidRootPart" |
70 | getgenv().Key = "Q" |
71 | getgenv().DisableKey = "P" |
72 | |
73 | getgenv().FOV = true |
74 | getgenv().ShowFOV = false |
75 | getgenv().FOVSize = 55 |
76 | |
77 | --// Variables (Service) |
78 | |
79 | local Players = game:GetService("Players") |
80 | local RS = game:GetService("RunService") |
81 | local WS = game:GetService("Workspace") |
82 | local GS = game:GetService("GuiService") |
83 | local SG = game:GetService("StarterGui") |
84 | |
85 | --// Variables (regular) |
86 | |
87 | local LP = Players.LocalPlayer |
88 | local Mouse = LP:GetMouse() |
89 | local Camera = WS.CurrentCamera |
90 | local GetGuiInset = GS.GetGuiInset |
91 | |
92 | local AimlockState = true |
93 | local Locked |
94 | local Victim |
95 | |
96 | local SelectedKey = getgenv().Key |
97 | local SelectedDisableKey = getgenv().DisableKey |
98 | |
99 | --// Notification function |
100 | |
101 | function Notify(tx) |
102 | SG:SetCore("SendNotification", { |
103 | Title = "TokwaWare", |
104 | Text = tx, |
105 | Duration = 5 |
106 | }) |
107 | end |
108 | |
109 | --// Check if aimlock is loaded |
110 | |
111 | if getgenv().Loaded == true then |
112 | Notify("Aimlock is already loaded!") |
113 | return |
114 | end |
115 | |
116 | getgenv().Loaded = true |
117 | |
118 | --// FOV Circle |
119 | |
120 | local fov = Drawing.new("Circle") |
121 | fov.Filled = false |
122 | fov.Transparency = 1 |
123 | fov.Thickness = 1 |
124 | fov.Color = Color3.fromRGB(255, 255, 0) |
125 | fov.NumSides = 1000 |
126 | |
127 | --// Functions |
128 | |
129 | function update() |
130 | if getgenv().FOV == true then |
131 | if fov then |
132 | fov.Radius = getgenv().FOVSize * 2 |
133 | fov.Visible = getgenv().ShowFOV |
134 | fov.Position = Vector2.new(Mouse.X, Mouse.Y + GetGuiInset(GS).Y) |
135 | |
136 | return fov |
137 | end |
138 | end |
139 | end |
140 | |
141 | function WTVP(arg) |
142 | return Camera:WorldToViewportPoint(arg) |
143 | end |
144 | |
145 | function WTSP(arg) |
146 | return Camera.WorldToScreenPoint(Camera, arg) |
147 | end |
148 | |
149 | function getClosest() |
150 | local closestPlayer |
151 | local shortestDistance = math.huge |
152 | |
153 | for i, v in pairs(game.Players:GetPlayers()) do |
154 | local notKO = v.Character:WaitForChild("BodyEffects")["K.O"].Value ~= true |
155 | local notGrabbed = v.Character:FindFirstChild("GRABBING_COINSTRAINT") == nil |
156 | |
157 | if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild(getgenv().AimPart) and notKO and notGrabbed then |
158 | local pos = Camera:WorldToViewportPoint(v.Character.PrimaryPart.Position) |
159 | local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).magnitude |
160 | |
161 | if (getgenv().FOV) then |
162 | if (fov.Radius > magnitude and magnitude < shortestDistance) then |
163 | closestPlayer = v |
164 | shortestDistance = magnitude |
165 | end |
166 | else |
167 | if (magnitude < shortestDistance) then |
168 | closestPlayer = v |
169 | shortestDistance = magnitude |
170 | end |
171 | end |
172 | end |
173 | end |
174 | return closestPlayer |
175 | end |
176 | |
177 | --// Checks if key is down |
178 | |
179 | Mouse.KeyDown:Connect(function(k) |
180 | SelectedKey = SelectedKey:lower() |
181 | SelectedDisableKey = SelectedDisableKey:lower() |
182 | if k == SelectedKey then |
183 | if AimlockState == true then |
184 | Locked = not Locked |
185 | if Locked then |
186 | Victim = getClosest() |
187 | |
188 | Notify("Locked onto: "..tostring(Victim.Character.Humanoid.DisplayName)) |
189 | else |
190 | if Victim ~= nil then |
191 | Victim = nil |
192 | |
193 | Notify("Unlocked!") |
194 | end |
195 | end |
196 | else |
197 | Notify("Aimlock is not enabled!") |
198 | end |
199 | end |
200 | if k == SelectedDisableKey then |
201 | AimlockState = not AimlockState |
202 | end |
203 | end) |
204 | |
205 | --// Loop update FOV and loop camera lock onto target |
206 | |
207 | RS.RenderStepped:Connect(function() |
208 | update() |
209 | if AimlockState == true then |
210 | if Victim ~= nil then |
211 | Camera.CFrame = CFrame.new(Camera.CFrame.p, Victim.Character[getgenv().AimPart].Position + Victim.Character[getgenv().AimPart].Velocity*getgenv().Prediction) |
212 | end |
213 | end |
214 | end) |
215 | while wait() do |
216 | if getgenv().AutoPrediction == true then |
217 | local pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString() |
218 | local split = string.split(pingvalue,'(') |
219 | local ping = tonumber(split[1]) |
220 | if ping < 225 then |
221 | getgenv().Prediction = 1.4 |
222 | elseif ping < 215 then |
223 | getgenv().Prediction = 1.2 |
224 | elseif ping < 205 then |
225 | getgenv().Prediction = 1.0 |
226 | elseif ping < 190 then |
227 | getgenv().Prediction = 0.10 |
228 | elseif ping < 180 then |
229 | getgenv().Prediction = 0.12 |
230 | elseif ping < 170 then |
231 | getgenv().Prediction = 0.15 |
232 | elseif ping < 160 then |
233 | getgenv().Prediction = 0.18 |
234 | elseif ping < 150 then |
235 | getgenv().Prediction = 0.110 |
236 | elseif ping < 140 then |
237 | getgenv().Prediction = 0.113 |
238 | elseif ping < 130 then |
239 | getgenv().Prediction = 0.116 |
240 | elseif ping < 120 then |
241 | getgenv().Prediction = 0.120 |
242 | elseif ping < 110 then |
243 | getgenv().Prediction = 0.124 |
244 | elseif ping < 105 then |
245 | getgenv().Prediction = 0.127 |
246 | elseif ping < 90 then |
247 | getgenv().Prediction = 0.130 |
248 | elseif ping < 80 then |
249 | getgenv().Prediction = 0.133 |
250 | elseif ping < 70 then |
251 | getgenv().Prediction = 0.136 |
252 | elseif ping < 60 then |
253 | getgenv().Prediction = 0.140 |
254 | elseif ping < 50 then |
255 | getgenv().Prediction = 0.143 |
256 | elseif ping < 40 then |
257 | getgenv().Prediction = 0.145 |
258 | elseif ping < 30 then |
259 | getgenv().Prediction = 0.155 |
260 | elseif ping < 20 then |
261 | getgenv().Prediction = 0.157 |
262 | end |
263 | end |
264 | end |
265 | end) |
266 | |
267 | |
268 | local MainSection = Tab:NewSection("Toggle Locks") |
269 | |
270 | |
271 | MainSection:NewButton("Toggle Lock - Q", "If u wanna be blatant then use this", function() |
272 | |
273 | local CC = game:GetService'Workspace'.CurrentCamera |
274 | local Plr |
275 | local enabled = false |
276 | local accomidationfactor = 0.129145 |
277 | local mouse = game.Players.LocalPlayer:GetMouse() |
278 | local placemarker = Instance.new("Part", game.Workspace) |
279 | local guimain = Instance.new("Folder", game.CoreGui) |
280 | |
281 | function makemarker(Parent, Adornee, Color, Size, Size2) |
282 | local e = Instance.new("BillboardGui", Parent) |
283 | e.Name = "PP" |
284 | e.Adornee = Adornee |
285 | e.Size = UDim2.new(Size, Size2, Size, Size2) |
286 | e.AlwaysOnTop = true |
287 | local a = Instance.new("Frame", e) |
288 | a.Size = UDim2.new(1, 0, 1, 0) |
289 | a.BackgroundTransparency = 0.4 |
290 | a.BackgroundColor3 = Color |
291 | local g = Instance.new("UICorner", a) |
292 | g.CornerRadius = UDim.new(30, 30) |
293 | return(e) |
294 | end |
295 | |
296 | local data = game.Players:GetPlayers() |
297 | function noob(player) |
298 | local character |
299 | repeat wait() until player.Character |
300 | local handler = makemarker(guimain, player.Character:WaitForChild("LowerTorso"), Color3.fromRGB(0, 76, 153), 0.0, 0) |
301 | handler.Name = player.Name |
302 | player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild("LowerTorso") end) |
303 | |
304 | local TextLabel = Instance.new("TextLabel", handler) |
305 | TextLabel.BackgroundTransparency = 1 |
306 | TextLabel.Position = UDim2.new(0, 0, 0, -50) |
307 | TextLabel.Size = UDim2.new(0, 100, 0, 100) |
308 | TextLabel.Font = Enum.Font.SourceSansSemibold |
309 | TextLabel.TextSize = 14 |
310 | TextLabel.TextColor3 = Color3.new(1, 1, 1) |
311 | TextLabel.TextStrokeTransparency = 0 |
312 | TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom |
313 | TextLabel.Text = 'Name: '..player.Name |
314 | TextLabel.ZIndex = 10 |
315 | |
316 | spawn(function() |
317 | while wait() do |
318 | if player.Character then |
319 | --TextLabel.Text = player.Name.." | Bounty: "..tostring(player:WaitForChild("leaderstats").Wanted.Value).." | "..tostring(math.floor(player.Character:WaitForChild("Humanoid").Health)) |
320 | end |
321 | end |
322 | end) |
323 | end |
324 | |
325 | for i = 1, #data do |
326 | if data[i] ~= game.Players.LocalPlayer then |
327 | noob(data[i]) |
328 | end |
329 | end |
330 | |
331 | game.Players.PlayerAdded:connect(function(Player) |
332 | noob(Player) |
333 | end) |
334 | |
335 | game.Players.PlayerRemoving:Connect(function(player) |
336 | guimain[player.Name]:Destroy() |
337 | end) |
338 | |
339 | spawn(function() |
340 | placemarker.Anchored = true |
341 | placemarker.CanCollide = false |
342 | placemarker.Size = Vector3.new(0.1, 0.1, 0.1) |
343 | placemarker.Transparency = 10 |
344 | makemarker(placemarker, placemarker, Color3.fromRGB(0, 0, 255), 0.55, 0) |
345 | end) |
346 | |
347 | mouse.KeyDown:Connect(function(k) |
348 | if k ~= "q" then return end |
349 | if enabled then |
350 | enabled = false |
351 | -- guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
352 | else |
353 | enabled = true |
354 | Plr = getClosestPlayerToCursor() |
355 | --guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0) |
356 | end |
357 | end) |
358 | |
359 | function getClosestPlayerToCursor() |
360 | local closestPlayer |
361 | local shortestDistance = math.huge |
362 | |
363 | for i, v in pairs(game.Players:GetPlayers()) do |
364 | if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("Head") then |
365 | local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position) |
366 | local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude |
367 | if magnitude < shortestDistance then |
368 | closestPlayer = v |
369 | shortestDistance = magnitude |
370 | end |
371 | end |
372 | end |
373 | return closestPlayer |
374 | end |
375 | |
376 | game:GetService"RunService".Stepped:connect(function() |
377 | if enabled and Plr.Character and Plr.Character:FindFirstChild("HumanoidRootPart") then |
378 | placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)) |
379 | else |
380 | placemarker.CFrame = CFrame.new(0, 9999, 0) |
381 | end |
382 | end) |
383 | |
384 | local mt = getrawmetatable(game) |
385 | local old = mt.__namecall |
386 | setreadonly(mt, false) |
387 | mt.__namecall = newcclosure(function(...) |
388 | local args = {...} |
389 | if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then |
390 | args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor) |
391 | return old(unpack(args)) |
392 | end |
393 | return old(...) |
394 | end) |
395 | end) |
396 | |
397 | MainSection:NewButton("Tool Lock", "", function() |
398 | local Enabled = true |
399 | local Prediction = 0.1237 |
400 | local Notifications = true |
401 | local AimPart = "HumanoidRootPart" |
402 | |
403 | |
404 | local Tool = Instance.new("Tool") |
405 | Tool.RequiresHandle = false |
406 | Tool.Name = "Tool lock" |
407 | |
408 | |
409 | local Camera = game:GetService("Workspace").CurrentCamera |
410 | local Mouse = game.Players.LocalPlayer:GetMouse() |
411 | local Plr |
412 | |
413 | local Part = Instance.new("Part", game.Workspace) |
414 | |
415 | Part.Anchored = true |
416 | Part.CanCollide = false |
417 | Part.Color = Color3.fromRGB(0, 0, 255) |
418 | Part.Material = Enum.Material.Neon |
419 | Part.Size = Vector3.new(0.93, 0.93, 0.93) |
420 | Part.Shape = Enum.PartType.Block |
421 | |
422 | function FindClosestPlayer() |
423 | local closestPlayer |
424 | local shortestDistance = math.huge |
425 | |
426 | for i, v in pairs(game.Players:GetPlayers()) do |
427 | if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and |
428 | v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") then |
429 | local pos = Camera:WorldToViewportPoint(v.Character.PrimaryPart.Position) |
430 | local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(Mouse.X, Mouse.Y)).magnitude |
431 | if magnitude < shortestDistance then |
432 | closestPlayer = v |
433 | shortestDistance = magnitude |
434 | end |
435 | end |
436 | end |
437 | return closestPlayer |
438 | end |
439 | |
440 | Tool.Activated:Connect(function() |
441 | |
442 | if Enabled == true then |
443 | Enabled = false |
444 | if Notifications == true then |
445 | |
446 | Plr = FindClosestPlayer() |
447 | TargetPlayer = tostring(Plr) |
448 | game.StarterGui:SetCore("SendNotification", { |
449 | Title = "TokwaWareOnTop", |
450 | Text = "Unlocked" |
451 | }) |
452 | end |
453 | |
454 | else |
455 | Plr = FindClosestPlayer() |
456 | TargetPlayer = tostring(Plr) |
457 | |
458 | Enabled = true |
459 | |
460 | if Notifications == true then |
461 | |
462 | Plr = FindClosestPlayer() |
463 | TargetPlayer = tostring(Plr) |
464 | game.StarterGui:SetCore("SendNotification", { |
465 | Title = "TokwaWareOnTop", |
466 | Text = "Locked To : " .. tostring(TargetPlayer) |
467 | }) |
468 | end |
469 | end |
470 | end) |
471 | |
472 | game:GetService("RunService").Stepped:Connect(function() |
473 | if Enabled == true then |
474 | |
475 | Part.Position = game.Players[TargetPlayer].Character.HumanoidRootPart.Position |
476 | else |
477 | Part.CFrame = CFrame.new(0, -9999, 0) |
478 | |
479 | end |
480 | end) |
481 | |
482 | local mt = getrawmetatable(game) |
483 | local old = mt.__namecall |
484 | setreadonly(mt, false) |
485 | mt.__namecall = newcclosure(function(...) |
486 | local args = { ... } |
487 | |
488 | if Enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then |
489 | args[3] = game.Players[TargetPlayer].Character[AimPart].Position + |
490 | |
491 | (game.Players[TargetPlayer].Character[AimPart].Velocity * Prediction) |
492 | |
493 | return old(unpack(args)) |
494 | end |
495 | return old(...) |
496 | end) |
497 | |
498 | Tool.Parent = game.Players.LocalPlayer.Backpack |
499 | end) |
500 | |
501 | MainSection:NewButton("Tokwa toggle Lock - C", "", function() |
502 | local Settings = { |
503 | rewrittenmain = { |
504 | Enabled = true, |
505 | Key = "c", |
506 | DOT = false, |
507 | AIRSHOT = true, |
508 | NOTIF = false, |
509 | AUTOPRED = false, |
510 | FOV = math.huge, |
511 | RESOVLER = false |
512 | } |
513 | } |
514 | |
515 | local SelectedPart = "LowerTorso" |
516 | local Prediction = true |
517 | local PredictionValue = 0.12467245219812 |
518 | |
519 | |
520 | local AnchorCount = 0 |
521 | local MaxAnchor = 50 |
522 | |
523 | local CC = game:GetService"Workspace".CurrentCamera |
524 | local Plr; |
525 | local enabled = false |
526 | local accomidationfactor = 0.1234772452176 |
527 | local mouse = game.Players.LocalPlayer:GetMouse() |
528 | local placemarker = Instance.new("Part", game.Workspace) |
529 | |
530 | function makemarker(Parent, Adornee, Color, Size, Size2) |
531 | local e = Instance.new("BillboardGui", Parent) |
532 | e.Name = "PP" |
533 | e.Adornee = Adornee |
534 | e.Size = UDim2.new(Size, Size2, Size, Size2) |
535 | e.AlwaysOnTop = Settings.rewrittenmain.DOT |
536 | local a = Instance.new("Frame", e) |
537 | if Settings.rewrittenmain.DOT == true then |
538 | a.Size = UDim2.new(1, 0, 1, 0) |
539 | else |
540 | a.Size = UDim2.new(0, 0, 0, 0) |
541 | end |
542 | if Settings.rewrittenmain.DOT == true then |
543 | a.Transparency = 0 |
544 | a.BackgroundTransparency = 0 |
545 | else |
546 | a.Transparency = 1 |
547 | a.BackgroundTransparency = 1 |
548 | end |
549 | a.BackgroundColor3 = Color |
550 | local g = Instance.new("UICorner", a) |
551 | if Settings.rewrittenmain.DOT == false then |
552 | g.CornerRadius = UDim.new(0, 0) |
553 | else |
554 | g.CornerRadius = UDim.new(1, 1) |
555 | end |
556 | return(e) |
557 | end |
558 | |
559 | |
560 | local data = game.Players:GetPlayers() |
561 | function noob(player) |
562 | local character |
563 | repeat wait() until player.Character |
564 | local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(107, 184, 255), 0.3, 3) |
565 | handler.Name = player.Name |
566 | player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end) |
567 | |
568 | |
569 | spawn(function() |
570 | while wait() do |
571 | if player.Character then |
572 | end |
573 | end |
574 | end) |
575 | end |
576 | |
577 | for i = 1, #data do |
578 | if data[i] ~= game.Players.LocalPlayer then |
579 | noob(data[i]) |
580 | end |
581 | end |
582 | |
583 | game.Players.PlayerAdded:connect(function(Player) |
584 | noob(Player) |
585 | end) |
586 | |
587 | spawn(function() |
588 | placemarker.Anchored = true |
589 | placemarker.CanCollide = false |
590 | if Settings.rewrittenmain.DOT == true then |
591 | placemarker.Size = Vector3.new(8, 8, 8) |
592 | else |
593 | placemarker.Size = Vector3.new(0, 0, 0) |
594 | end |
595 | placemarker.Transparency = 0.75 |
596 | if Settings.rewrittenmain.DOT then |
597 | makemarker(placemarker, placemarker, Color3.fromRGB(232, 186, 200), 0.40, 0) |
598 | end |
599 | end) |
600 | |
601 | game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k) |
602 | if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then |
603 | if enabled == true then |
604 | enabled = false |
605 | if Settings.rewrittenmain.NOTIF == true then |
606 | Plr = getClosestPlayerToCursor() |
607 | game.StarterGui:SetCore("SendNotification", { |
608 | Title = "Tokwa is pro", |
609 | Text = "Unlocked", |
610 | Icon = "http://www.roblox.com/asset/?id=8850953349", |
611 | Duration = 1, |
612 | }) |
613 | end |
614 | else |
615 | Plr = getClosestPlayerToCursor() |
616 | enabled = true |
617 | if Settings.rewrittenmain.NOTIF == true then |
618 | |
619 | game.StarterGui:SetCore("SendNotification", { |
620 | Title = "Tokwa is pro", |
621 | Text = "Locked on :"..tostring(Plr.Name); |
622 | Icon = "http://www.roblox.com/asset/?id=8850953349", |
623 | Duration = 1, |
624 | }) |
625 | |
626 | end |
627 | end |
628 | end |
629 | end) |
630 | |
631 | |
632 | |
633 | function getClosestPlayerToCursor() |
634 | local closestPlayer |
635 | local shortestDistance = Settings.rewrittenmain.FOV |
636 | |
637 | for i, v in pairs(game.Players:GetPlayers()) do |
638 | 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 |
639 | local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position) |
640 | local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude |
641 | if magnitude < shortestDistance then |
642 | closestPlayer = v |
643 | shortestDistance = magnitude |
644 | end |
645 | end |
646 | end |
647 | return closestPlayer |
648 | end |
649 | |
650 | local pingvalue = nil; |
651 | local split = nil; |
652 | local ping = nil; |
653 | |
654 | game:GetService"RunService".Stepped:connect(function() |
655 | if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then |
656 | placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)) |
657 | else |
658 | placemarker.CFrame = CFrame.new(0, 9999, 0) |
659 | end |
660 | if Settings.rewrittenmain.AUTOPRED == true then |
661 | pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString() |
662 | split = string.split(pingvalue,'(') |
663 | ping = tonumber(split[1]) |
664 | if ping < 130 then |
665 | PredictionValue = 0.151 |
666 | elseif ping < 125 then |
667 | PredictionValue = 0.149 |
668 | elseif ping < 110 then |
669 | PredictionValue = 0.146 |
670 | elseif ping < 105 then |
671 | PredictionValue = 0.138 |
672 | elseif ping < 90 then |
673 | PredictionValue = 0.136 |
674 | elseif ping < 80 then |
675 | PredictionValue = 0.134 |
676 | elseif ping < 70 then |
677 | PredictionValue = 0.131 |
678 | elseif ping < 60 then |
679 | PredictionValue = 0.1229 |
680 | elseif ping < 50 then |
681 | PredictionValue = 0.1225 |
682 | elseif ping < 40 then |
683 | PredictionValue = 0.1256 |
684 | end |
685 | end |
686 | end) |
687 | |
688 | local mt = getrawmetatable(game) |
689 | local old = mt.__namecall |
690 | setreadonly(mt, false) |
691 | mt.__namecall = newcclosure(function(...) |
692 | local args = {...} |
693 | if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.rewrittenmain.Enabled and Plr.Character ~= nil then |
694 | |
695 | -- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor) |
696 | --[[ |
697 | if Settings.rewrittenmain.AIRSHOT == true then |
698 | if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall |
699 | |
700 | --// Airshot |
701 | args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue) |
702 | |
703 | else |
704 | args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue) |
705 | |
706 | end |
707 | else |
708 | args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue) |
709 | end |
710 | ]] |
711 | if Prediction == true then |
712 | |
713 | args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue) |
714 | |
715 | else |
716 | |
717 | args[3] = Plr.Character[SelectedPart].Position |
718 | |
719 | end |
720 | |
721 | return old(unpack(args)) |
722 | end |
723 | return old(...) |
724 | end) |
725 | |
726 | game:GetService("RunService").RenderStepped:Connect(function() |
727 | if Settings.rewrittenmain.RESOVLER == true and Plr.Character ~= nil and enabled and Settings.rewrittenmain.Enabled then |
728 | if Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~= nil then |
729 | |
730 | if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall |
731 | |
732 | --// Airshot |
733 | |
734 | --// Anchor Check |
735 | |
736 | if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then |
737 | AnchorCount = AnchorCount + 1 |
738 | if AnchorCount >= MaxAnchor then |
739 | Prediction = false |
740 | wait(2) |
741 | AnchorCount = 0; |
742 | end |
743 | else |
744 | Prediction = true |
745 | AnchorCount = 0; |
746 | end |
747 | |
748 | SelectedPart = "LeftFoot" |
749 | |
750 | else |
751 | --// Anchor Check |
752 | |
753 | if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then |
754 | AnchorCount = AnchorCount + 1 |
755 | if AnchorCount >= MaxAnchor then |
756 | Prediction = false |
757 | wait(2) |
758 | AnchorCount = 0; |
759 | end |
760 | else |
761 | Prediction = true |
762 | AnchorCount = 0; |
763 | end |
764 | |
765 | SelectedPart = "HumanoidRootPart" |
766 | |
767 | end |
768 | else |
769 | |
770 | --// Anchor Check |
771 | |
772 | if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then |
773 | AnchorCount = AnchorCount + 1 |
774 | if AnchorCount >= MaxAnchor then |
775 | Prediction = false |
776 | wait(2) |
777 | AnchorCount = 0; |
778 | end |
779 | else |
780 | Prediction = true |
781 | AnchorCount = 0; |
782 | end |
783 | |
784 | SelectedPart = "HumanoidRootPart" |
785 | end |
786 | |
787 | else |
788 | SelectedPart = "HumanoidRootPart" |
789 | end |
790 | end) |
791 | end) |
792 | |
793 | |
794 | local Tab = Window:NewTab("Player") |
795 | local Local PlayerSection = Tab:NewSection("Player") |
796 | |
797 | PlayerSection:NewButton("Tryhard Anims", "", function() |
798 | while true do |
799 | wait(1) |
800 | for i, player in ipairs(game.Players:GetChildren()) do |
801 | local Animate = game.Players.LocalPlayer.Character.Animate |
802 | Animate.idle.Animation1.AnimationId = "http://www.roblox.com/asset/?id=782841498" |
803 | Animate.idle.Animation2.AnimationId = "http://www.roblox.com/asset/?id=782841498" |
804 | Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=616168032" |
805 | Animate.run.RunAnim.AnimationId = "http://www.roblox.com/asset/?id=616163682" |
806 | Animate.jump.JumpAnim.AnimationId = "http://www.roblox.com/asset/?id=1083218792" |
807 | Animate.climb.ClimbAnim.AnimationId = "http://www.roblox.com/asset/?id=1083439238" |
808 | Animate.fall.FallAnim.AnimationId = "http://www.roblox.com/asset/?id=707829716" |
809 | game.Players.LocalPlayer.Character.Humanoid.Jump = false |
810 | end |
811 | end |
812 | end) |
813 | |
814 | PlayerSection:NewButton("Korblox", "", function() |
815 | local ply = game.Players.LocalPlayer |
816 | local chr = ply.Character |
817 | chr.RightLowerLeg.MeshId = "902942093" |
818 | chr.RightLowerLeg.Transparency = "1" |
819 | chr.RightUpperLeg.MeshId = "http://www.roblox.com/asset/?id=902942096" |
820 | chr.RightUpperLeg.TextureID = "http://roblox.com/asset/?id=902843398" |
821 | chr.RightFoot.MeshId = "902942089" |
822 | chr.RightFoot.Transparency = "1" |
823 | end) |
824 | |
825 | PlayerSection:NewButton("Headless", "", function() |
826 | game.Players.LocalPlayer.Character.Head.Transparency = 1 |
827 | game.Players.LocalPlayer.Character.Head.Transparency = 1 |
828 | for i,v in pairs(game.Players.LocalPlayer.Character.Head:GetChildren()) do |
829 | if (v:IsA("Decal")) then |
830 | v.Transparency = 1 |
831 | end |
832 | end |
833 | end) |
834 | |
835 | PlayerSection:NewButton("TrashTalk", "", function() |
836 | local words = { |
837 | 'If i were u i would had quitted this server', |
838 | 'seed', |
839 | 'im not locking ur just bad', |
840 | 'How are you this bad', |
841 | 'sad that u keep on accusing me', |
842 | 'get sonned seedling', |
843 | 'how did u fail to get me', |
844 | } |
845 | |
846 | local player = game.Players.LocalPlayer |
847 | local keybind = 'y' |
848 | |
849 | local event = game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest |
850 | |
851 | player:GetMouse().KeyDown:connect(function(key) |
852 | if key == keybind then |
853 | event:FireServer(words[math.random(#words)], "All") |
854 | end |
855 | end) |
856 | end) |
857 | |
858 | PlayerSection:NewButton("Fake Macro - X", "", function() |
859 | Key = Enum.KeyCode.X -- If you want to change the keybind, change "X" with something else |
860 | loadstring(game:HttpGet("https://pastebin.com/raw/YkYju5rm", true))() |
861 | end) |
862 | |
863 | PlayerSection:NewButton("Teleport GUI (Not Mine)", "", function() |
864 | loadstring(game:HttpGet('https://raw.githubusercontent.com/ProteinOG/scripts/main/Protein%20GUI'))() |
865 | end) |
866 | |