Vzurxy

fnf blatant

Feb 27th, 2021 (edited)
1,455
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local point = 0;
  2.  
  3. local function getpos()
  4.     local parts = workspace.Stages:GetDescendants()
  5.     local nearest = nil;
  6.     local closest = 0;
  7.    
  8.     for i,v in pairs(parts) do
  9.         if v.Name:sub(1, 1) == "P" and v:IsA("BasePart") then
  10.             if closest < (root.Position - v.Position).Magnitude then
  11.                 nearest = v
  12.                 closest = (root.Position - v.Position).Magnitude
  13.             end
  14.         end
  15.     end
  16.    
  17.     return nearest.Name:gsub("%D+", "")
  18. end
  19.  
  20. local plr = game:GetService("Players").LocalPlayer
  21. local root = plr.Character.HumanoidRootPart
  22. local rs = game:GetService("ReplicatedStorage")
  23. local ws = game:GetService("Workspace")
  24. local ui = plr.PlayerGui.FNFGame
  25. local handler = ui.FNFMain
  26. local playerKeys = ui.KeySyncP
  27. local remote = rs.Battle
  28. local currentMatch = rs:FindFirstChild(plr.Name, true) or ws:FindFirstChild(plr.Name, true)
  29.  
  30. if currentMatch then
  31.     currentMatch = currentMatch.Parent
  32.     local key = getpos();
  33.     local old = nil;
  34.     local function func(...)
  35.         local args = {...}
  36.         if args[2]:find(key) then
  37.             remote:FireServer(point, currentMatch)
  38.         end
  39.         return old(...)
  40.     end
  41.    
  42.     old = hookfunc(getsenv(handler).Note,function(...)
  43.         return func(...)
  44.     end)
  45. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×