Advertisement
ZV0K

Eras Prediction Ball 🎯

Aug 10th, 2023 (edited)
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.97 KB | None | 0 0
  1. --███████╗██████╗░░█████╗░-- change toggle key on line 11
  2. --██╔════╝██╔══██╗██╔══██╗--
  3. --█████╗░░██████╔╝███████║-- change dot size on line 36
  4. --██╔══╝░░██╔══██╗██╔══██║--
  5. --███████╗██║░░██║██║░░██║-- change dot color on line 83
  6. --╚══════╝╚═╝░░╚═╝╚═╝░░╚═╝--
  7. --enjoy you skid--
  8. getgenv().Settings = {
  9. rewrittenmain = {
  10. Enabled = true,
  11. Key = "q", --CHANGE TOGGLE KEY HERE!!--
  12. DOT = true,
  13. FOV = math.huge,
  14. }
  15. }
  16. local Settings = getgenv().Settings
  17. getgenv().SelectedPart = "HumanoidRootPart"
  18. getgenv().Prediction = true
  19. getgenv().PredictionValue = 0.146
  20. local AnchorCount = 0
  21. local MaxAnchor = 50
  22. local CC = game:GetService"Workspace".CurrentCamera
  23. local Plr;
  24. local enabled = true
  25. local accomidationfactor = 0.139
  26. local mouse = game.Players.LocalPlayer:GetMouse()
  27. local placemarker = Instance.new("Part", game.Workspace)
  28. function makemarker(Parent, Adornee, Color, Size, Size2)
  29. local e = Instance.new("BillboardGui", Parent)
  30. e.Name = "PP"
  31. e.Adornee = Adornee
  32. e.Size = UDim2.new(Size, Size2, Size, Size2)
  33. e.AlwaysOnTop = Settings.rewrittenmain.DOT
  34. local a = Instance.new("Frame", e)
  35. if Settings.rewrittenmain.DOT == true then
  36. a.Size = UDim2.new(2, 2, 2,2) --CHANGE DOT SIZE HERE!!--
  37. else
  38. a.Size = UDim2.new(0, 0, 0, 0)
  39. end
  40. if Settings.rewrittenmain.DOT == true then
  41. a.Transparency = 0
  42. a.BackgroundTransparency = 0
  43. else
  44. a.Transparency = 1
  45. a.BackgroundTransparency = 1
  46. end
  47. a.BackgroundColor3 = Color
  48. local g = Instance.new("UICorner", a)
  49. if Settings.rewrittenmain.DOT == false then
  50. g.CornerRadius = UDim.new(0, 0)
  51. else
  52. g.CornerRadius = UDim.new(1, 1)
  53. end
  54. return(e)
  55. end
  56. local data = game.Players:GetPlayers()
  57. function noob(player)
  58. local character
  59. repeat wait() until player.Character
  60. local handler = makemarker(guimain, player.Character:WaitForChild(SelectedPart), Color3.fromRGB(255,255,0), 0.4, 4)
  61. handler.Name = player.Name
  62. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild(SelectedPart) end)
  63. spawn(function()
  64. while wait() do
  65. if player.Character then
  66. end
  67. end
  68. end)
  69. end
  70. game.Players.PlayerAdded:connect(function(Player)
  71. noob(Player)
  72. end)
  73. spawn(function()
  74. placemarker.Anchored = true
  75. placemarker.CanCollide = false
  76. if Settings.rewrittenmain.DOT == true then
  77. placemarker.Size = Vector3.new(0, 0, 0)
  78. else
  79. placemarker.Size = Vector3.new(0, 0, 0)
  80. end
  81. placemarker.Transparency = 0
  82. if Settings.rewrittenmain.DOT then
  83. makemarker(placemarker, placemarker, Color3.fromRGB(255,255,0), 0.40, 0) --CHANGE DOT COLOR HERE!!--
  84. end
  85. end)
  86. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  87. if k == Settings.rewrittenmain.Key and Settings.rewrittenmain.Enabled then
  88. if enabled == true then
  89. enabled = false
  90. else
  91. Plr = getClosestPlayerToCursor()
  92. enabled = true
  93. if Settings.rewrittenmain.NOTIF == true then
  94. end
  95. end
  96. end
  97. end)
  98. function getClosestPlayerToCursor()
  99. local closestPlayer
  100. local shortestDistance = Settings.rewrittenmain.FOV
  101.  
  102. for i, v in pairs(game.Players:GetPlayers()) do
  103. 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
  104. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  105. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  106. if magnitude < shortestDistance then
  107. closestPlayer = v
  108. shortestDistance = magnitude
  109. end
  110. end
  111. end
  112. return closestPlayer
  113. end
  114. local pingvalue = nil;
  115. local split = nil;
  116. local ping = nil;
  117. game:GetService"RunService".Stepped:connect(function()
  118. if enabled and Plr.Character ~= nil and Plr.Character:FindFirstChild("HumanoidRootPart") then
  119. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  120. else
  121. placemarker.CFrame = CFrame.new(0, 9999, 0)
  122. end
  123. if Settings.rewrittenmain.AUTOPRED == true then
  124. pingvalue = game:GetService("Stats").Network.ServerStatsItem["Data Ping"]:GetValueString()
  125. split = string.split(pingvalue,'(')
  126. ping = tonumber(split[1])
  127. if ping < 130 then
  128. PredictionValue = 0.151
  129. elseif ping < 125 then
  130. PredictionValue = 0.149
  131. elseif ping < 110 then
  132. PredictionValue = 0.146
  133. elseif ping < 105 then
  134. PredictionValue = 0.138
  135. elseif ping < 90 then
  136. PredictionValue = 0.136
  137. elseif ping < 80 then
  138. PredictionValue = 0.134
  139. elseif ping < 70 then
  140. PredictionValue = 0.131
  141. elseif ping < 60 then
  142. PredictionValue = 0.1229
  143. elseif ping < 50 then
  144. PredictionValue = 0.1225
  145. elseif ping < 40 then
  146. PredictionValue = 0.1256
  147. end
  148. end
  149. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement