Facebook
From Wclock, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 139
  1. getgenv().Target = true -- leave this its for the future when i make a ui
  2. getgenv().Prediction = 0.125
  3. getgenv().notification = true -- notificiation mode
  4. getgenv().showdot = true -- turn this on for blatant mode (regular mode is fucking shit idk why u would use it)
  5. getgenv().airshotfunc = false -- idk if u want to use this (use if u want)
  6. getgenv().part = "HumanoidRootPart" -- part (self explanitory)
  7. getgenv().AutoPrediction = false
  8.  
  9. local Tool = Instance.new("Tool")
  10. Tool.RequiresHandle = false
  11. Tool.Name = "Xenon.lua"
  12. Tool.Parent = game.Players.LocalPlayer.Backpack
  13.  
  14. local player = game.Players.LocalPlayer
  15.  
  16. local function connectCharacterAdded()
  17.     player.CharacterAdded:Connect(onCharacterAdded)
  18. end
  19.  
  20. connectCharacterAdded()
  21.  
  22. player.CharacterRemoving:Connect(function()
  23.     Tool.Parent = game.Players.LocalPlayer.Backpack
  24. end)
  25.  
  26.        --
  27.        _G.Types = {
  28.         Ball = Enum.PartType.Ball,
  29.         Block = Enum.PartType.Block,
  30.         Cylinder = Enum.PartType.Cylinder
  31.     }
  32.    
  33.     --variables                
  34.      local Tracer = Instance.new("Part", game.Workspace)
  35.     Tracer.Name = "W"
  36.     Tracer.Anchored = true  
  37.     Tracer.CanCollide = false
  38.     Tracer.Transparency = 0.8
  39.     Tracer.Parent = game.Workspace
  40.     Tracer.Shape = _G.Types.Block
  41.     Tracer.Size = Vector3.new(0)
  42.     Tracer.Color = Color3.fromRGB(0,0,0)
  43.    
  44.     --
  45.     local plr = game.Players.LocalPlayer
  46. local mouse = plr:GetMouse()
  47. local Runserv = game:GetService("RunService")
  48.  
  49. circle = Drawing.new("Circle")
  50. circle.Color = Color3.fromRGB(250,240,230)
  51. circle.Thickness = 0
  52. circle.NumSides = 732
  53. circle.Radius = 120
  54. circle.Thickness = 0
  55. circle.Transparency = 0.7
  56. circle.Visible = false
  57. circle.Filled = false
  58.  
  59. Runserv.RenderStepped:Connect(function()
  60.     circle.Position = Vector2.new(mouse.X,mouse.Y+35)
  61. end)
  62.    
  63.      local guimain = Instance.new("Folder", game.CoreGui)
  64.      local CC = game:GetService"Workspace".CurrentCamera
  65.     local LocalMouse = game.Players.LocalPlayer:GetMouse()
  66.      local Locking = false
  67.    
  68.      
  69.     --
  70.     if getgenv().valiansh == true then
  71.         game.StarterGui:SetCore("SendNotification", {
  72.    Title = "W",
  73.    Text = "Xenon Loaded!",
  74.    Duration = 5
  75.  
  76.    })
  77. return
  78. end
  79.    
  80.     getgenv().valiansh = true
  81.    
  82.         local UserInputService = game:GetService("UserInputService")
  83.  
  84.              Tool.Activated:Connect(function()
  85.                if getgenv().Target == true then
  86.                Locking = not Locking
  87.                
  88.                if Locking then
  89.                Plr =  getClosestPlayerToCursor()
  90.                if getgenv().notification then
  91.        game.StarterGui:SetCore("SendNotification", {
  92.         Title = "Xenon";
  93.         Text = "Fucking: "..tostring(Plr.Character.Humanoid.DisplayName);
  94.         Icon = "https://www.roblox.com/library/11061449202/OZIE-THE-CLOWN";
  95.    
  96.     })
  97.     end
  98.     elseif not Locking then
  99.         if getgenv().notification then
  100.                         game.StarterGui:SetCore("SendNotification", {
  101.                    Title = "Xenon",
  102.                    Text = "Unlocked",
  103.                    Icon = "https://www.roblox.com/library/11061449202/OZIE-THE-CLOWN";
  104.                    Duration = 5
  105.                })
  106.            elseif getgenv().Target == false then
  107.                         game.StarterGui:SetCore("SendNotification", {
  108.                    Title = "Xenon",
  109.                    Text = "Target isn't enabled",
  110.                    Duration = 5
  111.      
  112.                    })
  113.                
  114.                end
  115.                  
  116.  
  117.  
  118. end
  119. end
  120. end)
  121.  
  122.  function getClosestPlayerToCursor()
  123.   local closestPlayer
  124.   local shortestDistance = circle.Radius
  125.  
  126.   for i, v in pairs(game.Players:GetPlayers()) do
  127.    if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("LowerTorso") then
  128.     local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  129.     local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(LocalMouse.X, LocalMouse.Y)).magnitude
  130.     if magnitude < shortestDistance then
  131.      closestPlayer = v
  132.      shortestDistance = magnitude
  133.     end
  134.    end
  135.   end
  136.   return closestPlayer
  137.  end
  138. --
  139. if getgenv().showdot == true then
  140.  game:GetService"RunService".Stepped:connect(function()
  141.   if Locking and Plr.Character and Plr.Character:FindFirstChild("LowerTorso") then
  142.    Tracer.CFrame = CFrame.new(Plr.Character.LowerTorso.Position+(Plr.Character.LowerTorso.Velocity*Prediction))
  143.   else
  144.    Tracer.CFrame = CFrame.new(0, 9999, 0)
  145.  
  146.   end
  147.  end)
  148. end
  149.  
  150.    
  151.    
  152.     --
  153.  local rawmetatable = getrawmetatable(game)
  154.  local old = rawmetatable.__namecall
  155.  setreadonly(rawmetatable, false)
  156.  rawmetatable.__namecall = newcclosure(function(...)
  157.   local args = {...}
  158.   if Locking and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  159.    args[3] = Plr.Character[getgenv().part].Position+(Plr.Character[getgenv().part].Velocity*Prediction)
  160.    return old(unpack(args))
  161.   end
  162.   return old(...)
  163.  end)
  164.     if getgenv().airshotfunc == true then
  165.  
  166.         if Plr.Character.Humanoid.Jump == true and Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  167.             getgenv().part = "RightFoot"
  168.         else
  169.             Plr.Character:WaitForChild("Humanoid").StateChanged:Connect(function(old,new)
  170.                 if new == Enum.HumanoidStateType.Freefall then
  171.                 getgenv().part = "RightFoot"
  172.                 else
  173.                     getgenv().part = "LowerTorso"
  174.                 end
  175.             end)
  176.         end
  177.     end
  178.  
  179.  
  180.  if getgenv().AutoPredicti true then
  181.     wait(5.2)
  182.         local pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  183.         local split = string.split(pingvalue,'(')
  184.         local ping = tonumber(split[1])
  185.             local PingNumber = pingValue[1]
  186.  
  187.  if  ping < 250 then
  188.          getgenv().Predicti
  189.         elseif ping < 150 then
  190.              getgenv().Predicti
  191.         elseif ping < 130 then
  192.              getgenv().Predicti
  193.         elseif ping < 120 then
  194.              getgenv().Predicti
  195.         elseif ping < 110 then
  196.              getgenv().Predicti
  197.         elseif ping < 105 then
  198.              getgenv().Predicti
  199.         elseif ping < 90 then
  200.              getgenv().Predicti
  201.         elseif ping < 80 then
  202.              getgenv().Predicti
  203.         elseif ping < 70 then
  204.              getgenv().Predicti
  205.         elseif ping < 60 then
  206.              getgenv().Predicti
  207.         elseif ping < 50 then
  208.              getgenv().Predicti
  209.         elseif ping < 40 then
  210.              getgenv().Predicti
  211.         end
  212.     end