Advertisement
NukeVsCity

Basically FNF Hack

Feb 27th, 2021
28,378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.76 KB | None | 0 0
  1. loadstring(game:HttpGet('https://raw.githubusercontent.com/Wohxx/bruh/main/fnfauto'))()
  2.  
  3. ------------------------------------------------------------------------------
  4.  
  5. INFINITE POINTS SCRIPT ABOVE !!!!!!!!!!!!!!!!!!!!!!!!!!
  6.  
  7.  
  8.  
  9.  
  10. AUTO PLAYER GUI BELOW
  11. ------------------------------------------------------------------------------------
  12. local getcontext = syn and syn.get_thread_identity or getthreadcontext
  13. local setcontext = syn and syn.set_thread_identity or setthreadcontext
  14. local material = loadstring(game:HttpGet("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua"))()
  15. local wait = wait;
  16. local cowrap = coroutine.wrap;
  17.  
  18. local del = 0.2
  19.  
  20. local ui = material.Load({
  21. Title = "fnf auto player | no",
  22. Style = 1,
  23. SizeX = 400,
  24. SizeY = 400,
  25. Theme = "Dark"
  26. })
  27.  
  28. local main = ui.New({
  29. Title = "Main"
  30. })
  31.  
  32. local delspeed = main.Slider({
  33. Text = "Del Speed (Divide By 100)",
  34. Callback = function(value)
  35. del = value / 100
  36. end,
  37. Min = 1,
  38. Max = 100,
  39. Def = 20
  40. })
  41.  
  42. local vim = game:GetService("VirtualInputManager")
  43. local plr = game:GetService("Players").LocalPlayer
  44. local root = plr.Character.HumanoidRootPart
  45.  
  46. local function getpos()
  47. local parts = workspace.Stages:GetDescendants()
  48. local nearest = nil;
  49. local closest = 0;
  50.  
  51. for i,v in pairs(parts) do
  52. if v.Name:sub(1, 1) == "P" and v:IsA("BasePart") then
  53. if closest < (root.Position - v.Position).Magnitude then
  54. nearest = v
  55. closest = (root.Position - v.Position).Magnitude
  56. end
  57. end
  58. end
  59.  
  60. return nearest.Name:gsub("%D+", "")
  61. end
  62.  
  63. local keymap = {
  64. ["U"] = Enum.KeyCode.W,
  65. ["D"] = Enum.KeyCode.S,
  66. ["L"] = Enum.KeyCode.A,
  67. ["R"] = Enum.KeyCode.D
  68. }
  69.  
  70. local player = game:GetService("Players").LocalPlayer
  71. local gui = player.PlayerGui
  72.  
  73. local function hit(key, await)
  74. wait(2 / await - del)
  75. vim:SendKeyEvent(true, keymap[key], false, game)
  76. end
  77.  
  78. gui.ChildAdded:Connect(function(ui)
  79. if ui.Name == "FNFMode" then
  80. local scr = ui:WaitForChild("FNFMain")
  81. local succ, env = pcall(getsenv, scr)
  82.  
  83. if not succ then
  84. wait(2)
  85. succ, env = pcall(getsenv, scr)
  86. end
  87.  
  88. local orig = env.Note
  89. local our = getpos();
  90.  
  91. env.Note = function(key, opp, await)
  92. local old = getcontext()
  93. setcontext(7)
  94.  
  95. local turn = opp:gsub("%D+", "")
  96. if tonumber(our) == tonumber(turn) then
  97. cowrap(hit)(key, await)
  98. end
  99.  
  100. setcontext(old)
  101.  
  102. return orig(key, opp, await)
  103. end
  104. end
  105. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement