Prokri43

Blue dot

Jul 17th, 2023
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. -- 69- 0.11934
  2. local CC = game:GetService'Workspace'.CurrentCamera
  3. local Plr
  4. local enabled = false
  5. local accomidationfactor = 0.129145
  6. local mouse = game.Players.LocalPlayer:GetMouse()
  7. local placemarker = Instance.new("Part", game.Workspace)
  8. local guimain = Instance.new("Folder", game.CoreGui)
  9.  
  10. function makemarker(Parent, Adornee, Color, Size, Size2)
  11. local e = Instance.new("BillboardGui", Parent)
  12. e.Name = "PP"
  13. e.Adornee = Adornee
  14. e.Size = UDim2.new(Size, Size2, Size, Size2)
  15. e.AlwaysOnTop = true
  16. local a = Instance.new("Frame", e)
  17. a.Size = UDim2.new(1, 0, 1, 0)
  18. a.BackgroundTransparency = 0.4
  19. a.BackgroundColor3 = Color
  20. local g = Instance.new("UICorner", a)
  21. g.CornerRadius = UDim.new(30, 30)
  22. return(e)
  23. end
  24.  
  25. local data = game.Players:GetPlayers()
  26. function noob(player)
  27. local character
  28. repeat wait() until player.Character
  29. local handler = makemarker(guimain, player.Character:WaitForChild("LowerTorso"), Color3.fromRGB(0, 76, 153), 0.0, 0)
  30. handler.Name = player.Name
  31. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild("LowerTorso") end)
  32.  
  33. local TextLabel = Instance.new("TextLabel", handler)
  34. TextLabel.BackgroundTransparency = 1
  35. TextLabel.Position = UDim2.new(0, 0, 0, -50)
  36. TextLabel.Size = UDim2.new(0, 100, 0, 100)
  37. TextLabel.Font = Enum.Font.SourceSansSemibold
  38. TextLabel.TextSize = 14
  39. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  40. TextLabel.TextStrokeTransparency = 0
  41. TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
  42. TextLabel.Text = 'Name: '..player.Name
  43. TextLabel.ZIndex = 10
  44.  
  45. spawn(function()
  46. while wait() do
  47. if player.Character then
  48. --TextLabel.Text = player.Name.." | Bounty: "..tostring(player:WaitForChild("leaderstats").Wanted.Value).." | "..tostring(math.floor(player.Character:WaitForChild("Humanoid").Health))
  49. end
  50. end
  51. end)
  52. end
  53.  
  54. for i = 1, #data do
  55. if data[i] ~= game.Players.LocalPlayer then
  56. noob(data[i])
  57. end
  58. end
  59.  
  60. game.Players.PlayerAdded:connect(function(Player)
  61. noob(Player)
  62. end)
  63.  
  64. game.Players.PlayerRemoving:Connect(function(player)
  65. guimain[player.Name]:Destroy()
  66. end)
  67.  
  68. spawn(function()
  69. placemarker.Anchored = true
  70. placemarker.CanCollide = false
  71. placemarker.Size = Vector3.new(0.1, 0.1, 0.1)
  72. placemarker.Transparency = 10
  73. makemarker(placemarker, placemarker, Color3.fromRGB(0, 0, 255), 0.55, 0)
  74. end)
  75.  
  76. mouse.KeyDown:Connect(function(k)
  77. if k ~= "q" then return end
  78. if enabled then
  79. enabled = false
  80. -- guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  81. else
  82. enabled = true
  83. Plr = getClosestPlayerToCursor()
  84. --guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  85. end
  86. end)
  87.  
  88. function getClosestPlayerToCursor()
  89. local closestPlayer
  90. local shortestDistance = math.huge
  91.  
  92. for i, v in pairs(game.Players:GetPlayers()) do
  93. if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("Head") then
  94. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  95. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  96. if magnitude < shortestDistance then
  97. closestPlayer = v
  98. shortestDistance = magnitude
  99. end
  100. end
  101. end
  102. return closestPlayer
  103. end
  104.  
  105. game:GetService"RunService".Stepped:connect(function()
  106. if enabled and Plr.Character and Plr.Character:FindFirstChild("HumanoidRootPart") then
  107. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  108. else
  109. placemarker.CFrame = CFrame.new(0, 9999, 0)
  110. end
  111. end)
  112.  
  113. local mt = getrawmetatable(game)
  114. local old = mt.__namecall
  115. setreadonly(mt, false)
  116. mt.__namecall = newcclosure(function(...)
  117. local args = {...}
  118. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  119. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  120. return old(unpack(args))
  121. end
  122. return old(...)
  123. end)
Add Comment
Please, Sign In to add comment