Facebook
From Ample Crane, 1 Year ago, written in Lua.
This paste is a reply to Dimag acerus x scirpt from Credit to dimag - view diff
Embed
Download Paste or View Raw
Hits: 194
  1. loadstring(game:HttpGet('https://raw.githubusercontent.com/dawn-spec/main/main/dimagx.lua', true))()local Settings = {
  2.     rewrittenmain = {
  3.         Enabled = true,
  4.         Key = "q",
  5.         DOT = true,
  6.         AIRSHOT = true,
  7.         NOTIF = false,
  8.         AUTOPRED = false,
  9.         FOV = math.huge,
  10.         RESOVLER = false
  11.     }
  12. }
  13.  
  14. local SelectedPart = "LowerTorso"
  15. local Prediction = true
  16. local PredictionValue = 0.12467245219812
  17.  
  18.  
  19.     local AnchorCount = 0
  20.     local MaxAnchor = 50
  21.  
  22.     local CC = game:GetService"Workspace".CurrentCamera
  23.     local Plr;
  24.     local enabled = false
  25.     local accomidationfactor = 0.1234772452176
  26.     local mouse = game.Players.LocalPlayer:GetMouse()
  27.     local placemarker = Instance.new("Part", game.Workspace)
  28.  
  29.     function makemarker(Parent, Adornee, Color, Size, Size2)
  30.         local e = Instance.new("BillboardGui", Parent)
  31.         e.Name = "PP"
  32.         e.Adornee = Adornee
  33.         e.Size = UDim2.new(Size, Size2, Size, Size2)
  34.         e.AlwaysOnTop = Settings.rewrittenmain.DOT
  35.         local a = Instance.new("Frame", e)
  36.         if Settings.rewrittenmain.DOT == true then
  37.         a.Size = UDim2.new(1, 0, 1, 0)
  38.         else
  39.         a.Size = UDim2.new(0, 0, 0, 0)
  40.         end
  41.         if Settings.rewrittenmain.DOT == true then
  42.         a.Transparency = 0
  43.         a.BackgroundTransparency = 0
  44.         else
  45.         a.Transparency = 1
  46.         a.BackgroundTransparency = 1
  47.         end
  48.         a.BackgroundColor3 = Color
  49.         local g = Instance.new("UICorner", a)
  50.         if Settings.rewrittenmain.DOT == false then
  51.         g.CornerRadius = UDim.new(0, 0)
  52.         else
  53.         g.CornerRadius = UDim.new(1, 1)
  54.         end
  55.         return(e)
  56.     end
  57.  
  58.  
  59.     local data = game.Players:GetPlayers()
  60.     function noob(player)
  61.         local character
  62.         repeat wait() until player.Character
  63.         local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(107, 184, 255), 0.3, 3)
  64.         handler.Name = player.Name
  65.         player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
  66.  
  67.  
  68.         spawn(function()
  69.             while wait() do
  70.                 if player.Character then
  71.                 end
  72.             end
  73.         end)
  74.     end
  75.  
  76.     for i = 1, #data do
  77.         if data[i] ~= game.Players.LocalPlayer then
  78.             noob(data[i])
  79.         end
  80.     end
  81.  
  82.     game.Players.PlayerAdded:connect(function(Player)
  83.         noob(Player)
  84.     end)
  85.  
  86.     spawn(function()
  87.         placemarker.Anchored = true
  88.         placemarker.CanCollide = false
  89.         if Settings.rewrittenmain.DOT == true then
  90.         placemarker.Size = Vector3.new(8, 8, 8)
  91.         else
  92.         placemarker.Size = Vector3.new(0, 0, 0)
  93.         end
  94.         placemarker.Transparency = 0.75
  95.         if Settings.rewrittenmain.DOT then
  96.         makemarker(placemarker, placemarker, Color3.fromRGB(232, 186, 200), 0.40, 0)
  97.         end
  98.     end)
  99.  
  100.     game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  101.         if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then
  102.             if enabled == true then
  103.                 enabled = false
  104.                 if Settings.rewrittenmain.NOTIF == true then
  105.                     Plr = getClosestPlayerToCursor()
  106.                 game.StarterGui:SetCore("SendNotification", {
  107.                                                 Title = "6akan Locking Alert",
  108.                                                 Text = "Unlocked",
  109.                                                 Icon = "http://www.roblox.com/asset/?id=8850953349",
  110.                                                 Duration = 1,
  111. })
  112.             end
  113.             else
  114.                 Plr = getClosestPlayerToCursor()
  115.                 enabled = true
  116.                 if Settings.rewrittenmain.NOTIF == true then
  117.  
  118.                     game.StarterGui:SetCore("SendNotification", {
  119.                                                 Title = "6akan Locking Alert",
  120.                                                 Text = "Locked on :"..tostring(Plr.Name);
  121.                                                 Icon = "http://www.roblox.com/asset/?id=8850953349",
  122.                                                 Duration = 1,
  123. })
  124.  
  125.                 end
  126.             end
  127.         end
  128.     end)
  129.  
  130.  
  131.  
  132.     function getClosestPlayerToCursor()
  133.         local closestPlayer
  134.         local shortestDistance = Settings.rewrittenmain.FOV
  135.  
  136.         for i, v in pairs(game.Players:GetPlayers()) do
  137.             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
  138.                 local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  139.                 local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  140.                 if magnitude < shortestDistance then
  141.                     closestPlayer = v
  142.                     shortestDistance = magnitude
  143.                 end
  144.             end
  145.         end
  146.         return closestPlayer
  147.     end
  148.  
  149.     local pingvalue = nil;
  150.     local split = nil;
  151.     local ping = nil;
  152.  
  153.     game:GetService"RunService".Stepped:connect(function()
  154.         if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
  155.             placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  156.         else
  157.             placemarker.CFrame = CFrame.new(0, 9999, 0)
  158.         end
  159.         if Settings.rewrittenmain.AUTOPRED == true then
  160.              pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  161.              split = string.split(pingvalue,'(')
  162.              ping = tonumber(split[1])
  163.             if ping < 130 then
  164.                 PredictionValue = 0.151
  165.             elseif ping < 125 then
  166.                 PredictionValue = 0.149
  167.             elseif ping < 110 then
  168.                 PredictionValue = 0.146
  169.             elseif ping < 105 then
  170.                 PredictionValue = 0.138
  171.             elseif ping < 90 then
  172.                 PredictionValue = 0.136
  173.             elseif ping < 80 then
  174.                 PredictionValue = 0.134
  175.             elseif ping < 70 then
  176.                 PredictionValue = 0.131
  177.             elseif ping < 60 then
  178.                 PredictionValue = 0.1229
  179.             elseif ping < 50 then
  180.                 PredictionValue = 0.1225
  181.             elseif ping < 40 then
  182.                 PredictionValue = 0.1256
  183.             end
  184.         end
  185.     end)
  186.  
  187.     local mt = getrawmetatable(game)
  188.     local old = mt.__namecall
  189.     setreadonly(mt, false)
  190.     mt.__namecall = newcclosure(function(...)
  191.         local args = {...}
  192.         if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" and Settings.rewrittenmain.Enabled and Plr.Character ~= nil then
  193.  
  194.             -- args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  195.             --[[
  196.             if Settings.rewrittenmain.AIRSHOT == true then
  197.                 if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  198.  
  199.                     --// Airshot
  200.                     args[3] = Plr.Character.LeftFoot.Position+(Plr.Character.LeftFoot.Velocity*PredictionValue)
  201.  
  202.                 else
  203.                     args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  204.  
  205.                 end
  206.             else
  207.                     args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*PredictionValue)
  208.             end
  209.             ]]
  210.             if Prediction == true then
  211.  
  212.             args[3] = Plr.Character[SelectedPart].Position+(Plr.Character[SelectedPart].Velocity*PredictionValue)
  213.  
  214.             else
  215.  
  216.             args[3] = Plr.Character[SelectedPart].Position
  217.  
  218.             end
  219.  
  220.             return old(unpack(args))
  221.         end
  222.         return old(...)
  223.     end)
  224.  
  225.     game:GetService("RunService").RenderStepped:Connect(function()
  226.         if Settings.rewrittenmain.RESOVLER == true and Plr.Character ~= nil and enabled and Settings.rewrittenmain.Enabled then
  227.         if Settings.rewrittenmain.AIRSHOT == true and enabled and Plr.Character ~= nil then
  228.  
  229.             if game.Workspace.Players[Plr.Name].Humanoid:GetState() == Enum.HumanoidStateType.Freefall then -- Plr.Character:WaitForChild("Humanoid"):GetState() == Enum.HumanoidStateType.Freefall
  230.  
  231.                 --// Airshot
  232.  
  233.                 --// Anchor Check
  234.  
  235.                 if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  236.                     AnchorCount = AnchorCount + 1
  237.                     if AnchorCount >= MaxAnchor then
  238.                         Prediction = false
  239.                         wait(2)
  240.                         AnchorCount = 0;
  241.                     end
  242.                 else
  243.                     Prediction = true
  244.                     AnchorCount = 0;
  245.                 end
  246.  
  247.                 SelectedPart = "LeftFoot"
  248.  
  249.             else
  250.                 --// Anchor Check
  251.  
  252.                 if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  253.                     AnchorCount = AnchorCount + 1
  254.                     if AnchorCount >= MaxAnchor then
  255.                         Prediction = false
  256.                         wait(2)
  257.                         AnchorCount = 0;
  258.                     end
  259.                 else
  260.                     Prediction = true
  261.                     AnchorCount = 0;
  262.                 end
  263.  
  264.                 SelectedPart = "HumanoidRootPart"
  265.  
  266.             end
  267.             else
  268.  
  269.                 --// Anchor Check
  270.  
  271.                 if Plr.Character ~= nil and Plr.Character.HumanoidRootPart.Anchored == true then
  272.                     AnchorCount = AnchorCount + 1
  273.                     if AnchorCount >= MaxAnchor then
  274.                         Prediction = false
  275.                         wait(2)
  276.                         AnchorCount = 0;
  277.                     end
  278.                 else
  279.                     Prediction = true
  280.                     AnchorCount = 0;
  281.                 end
  282.  
  283.                 SelectedPart = "HumanoidRootPart"
  284.             end
  285.  
  286.         else
  287.                 SelectedPart = "HumanoidRootPart"
  288.         end
  289.     end)
  290.  

Replies to Re: Dimag acerus x scirpt rss

Title Name Language When
Re: Re: Dimag acerus x scirpt Edgy Human lua 1 Year ago.