ZV0K

Yellow Dot Lock 🟡

Aug 10th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.70 KB | None | 0 0
  1. -- Mattys
  2.  
  3. --- configuration
  4.  
  5.  
  6. getgenv().Mattyy = true
  7. getgenv().Matty = true
  8.  
  9. --- variables
  10.  
  11. local CC = game:GetService'Workspace'.CurrentCamera
  12. local Plr
  13. local enabled = false
  14. local accomidationfactor = 0.131 -- 0.13123 --0.1572
  15. local mouse = game.Players.LocalPlayer:GetMouse()
  16. local placemarker = Instance.new("Part", game.Workspace)
  17. local guimain = Instance.new("Folder", game.CoreGui)
  18.  
  19. function makemarker(Parent, Adornee, Color, Size, Size2)
  20. local e = Instance.new("BillboardGui", Parent)
  21. e.Name = "PP"
  22. e.Adornee = Adornee
  23. e.Size = UDim2.new(Size, Size2, Size, Size2)
  24. e.AlwaysOnTop = true
  25. local a = Instance.new("Frame", e)
  26. a.Size = UDim2.new(1, 0, 1, 0)
  27. a.BackgroundTransparency = 0.4
  28. a.BackgroundColor3 = Color
  29. local g = Instance.new("UICorner", a)
  30. g.CornerRadius = UDim.new(30, 30)
  31. return(e)
  32. end
  33.  
  34. local data = game.Players:GetPlayers()
  35. function noob(player)
  36. local character
  37. repeat wait() until player.Character
  38. local handler = makemarker(guimain, player.Character:WaitForChild("LowerTorso"), Color3.fromRGB(0, 76, 153), 0.0, 0)
  39. handler.Name = player.Name
  40. player.CharacterAdded:connect(function(Char) handler.Adornee = Char:WaitForChild("LowerTorso") end)
  41.  
  42. local TextLabel = Instance.new("TextLabel", handler)
  43. TextLabel.BackgroundTransparency = 1
  44. TextLabel.Position = UDim2.new(0, 0, 0, -50)
  45. TextLabel.Size = UDim2.new(0, 100, 0, 100)
  46. TextLabel.Font = Enum.Font.SourceSansSemibold
  47. TextLabel.TextSize = 14
  48. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  49. TextLabel.TextStrokeTransparency = 0
  50. TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
  51. TextLabel.Text = 'Name: '..player.Name
  52. TextLabel.ZIndex = 10
  53.  
  54. spawn(function()
  55. while wait() do
  56. if player.Character then
  57. --TextLabel.Text = player.Name.." | Bounty: "..tostring(player:WaitForChild("leaderstats").Wanted.Value).." | "..tostring(math.floor(player.Character:WaitForChild("Humanoid").Health))
  58. end
  59. end
  60. end)
  61. end
  62.  
  63. for i = 1, #data do
  64. if data[i] ~= game.Players.LocalPlayer then
  65. noob(data[i])
  66. end
  67. end
  68.  
  69. game.Players.PlayerAdded:connect(function(Player)
  70. noob(Player)
  71. end)
  72.  
  73. game.Players.PlayerRemoving:Connect(function(player)
  74. guimain[player.Name]:Destroy()
  75. end)
  76.  
  77. spawn(function()
  78. placemarker.Anchored = true
  79. placemarker.CanCollide = false
  80. placemarker.Size = Vector3.new(0.1, 0.1, 0.1)
  81. placemarker.Transparency = 10
  82. makemarker(placemarker, placemarker, Color3.fromRGB(231, 255, 65), 0.55, 0)
  83. end)
  84.  
  85. mouse.KeyDown:Connect(function(k)
  86. if k ~= "q" then return end
  87. if enabled then
  88. enabled = false
  89. -- guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  90. else
  91. enabled = true
  92. Plr = getClosestPlayerToCursor()
  93. --guimain[Plr.Name].Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  94. end
  95. end)
  96.  
  97. function getClosestPlayerToCursor()
  98. local closestPlayer
  99. local shortestDistance = math.huge
  100.  
  101. for i, v in pairs(game.Players:GetPlayers()) do
  102. 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
  103. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  104. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(mouse.X, mouse.Y)).magnitude
  105. if magnitude < shortestDistance then
  106. closestPlayer = v
  107. shortestDistance = magnitude
  108. end
  109. end
  110. end
  111. return closestPlayer
  112. end
  113.  
  114. game:GetService"RunService".Stepped:connect(function()
  115. if enabled and Plr.Character and Plr.Character:FindFirstChild("UpperTorso") then
  116. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  117. else
  118. placemarker.CFrame = CFrame.new(0, 9999, 0)
  119. end
  120. end)
  121.  
  122. local mt = getrawmetatable(game)
  123. local old = mt.__namecall
  124. setreadonly(mt, false)
  125. mt.__namecall = newcclosure(function(...)
  126. local args = {...}
  127. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  128. args[3] = Plr.Character.UpperTorso.Position+(Plr.Character.UpperTorso.Velocity*accomidationfactor)
  129. return old(unpack(args))
  130. end
  131. return old(...)
  132. end)
  133. if getgenv.Mattyy == true then
  134. if Plr.Character.Humanoid.Jump == true and Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  135. game:GetService"RunService".Stepped:connect(function()
  136. if enabled and Plr.Character and Plr.Character:FindFirstChild("HumanoidRootPart") then
  137. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  138. else
  139. placemarker.CFrame = CFrame.new(0, 9999, 0)
  140. end
  141. end)
  142.  
  143. local mt = getrawmetatable(game)
  144. local old = mt.__namecall
  145. setreadonly(mt, false)
  146. mt.__namecall = newcclosure(function(...)
  147. local args = {...}
  148. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  149. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  150. return old(unpack(args))
  151. end
  152. return old(...)
  153. end)
  154. else
  155. game:GetService"RunService".Stepped:connect(function()
  156. if enabled and Plr.Character and Plr.Character:FindFirstChild("UpperTorso") then
  157. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  158. else
  159. placemarker.CFrame = CFrame.new(0, 9999, 0)
  160. end
  161. end)
  162. local mt = getrawmetatable(game)
  163. local old = mt.__namecall
  164. setreadonly(mt, false)
  165. mt.__namecall = newcclosure(function(...)
  166. local args = {...}
  167. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  168. args[3] = Plr.Character.UpperTorso.Position+(Plr.Character.UpperTorso.Velocity*accomidationfactor)
  169. return old(unpack(args))
  170. end
  171. return old(...)
  172. end)
  173. if getgenv.Matty == true then
  174. if Plr.Character.Humanoid.Fall == true and Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air then
  175. game:GetService"RunService".Stepped:connect(function()
  176. if enabled and Plr.Character and Plr.Character:FindFirstChild("UpperTorso") then
  177. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  178. else
  179. placemarker.CFrame = CFrame.new(0, 9999, 0)
  180. end
  181. end)
  182. local mt = getrawmetatable(game)
  183. local old = mt.__namecall
  184. setreadonly(mt, false)
  185. mt.__namecall = newcclosure(function(...)
  186. local args = {...}
  187. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  188. args[3] = Plr.Character.UpperTorso.Position+(Plr.Character.UpperTorso.Velocity*accomidationfactor)
  189. return old(unpack(args))
  190. end
  191. return old(...)
  192. end)
  193. else
  194. game:GetService"RunService".Stepped:connect(function()
  195. if enabled and Plr.Character and Plr.Character:FindFirstChild("HumanoidRootPart") then
  196. placemarker.CFrame = CFrame.new(Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor))
  197. else
  198. placemarker.CFrame = CFrame.new(0, 9999, 0)
  199. end
  200. end)
  201. local mt = getrawmetatable(game)
  202. local old = mt.__namecall
  203. setreadonly(mt, false)
  204. mt.__namecall = newcclosure(function(...)
  205. local args = {...}
  206. if enabled and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  207. args[3] = Plr.Character.HumanoidRootPart.Position+(Plr.Character.HumanoidRootPart.Velocity*accomidationfactor)
  208. return old(unpack(args))
  209. end
  210. return old(...)
  211. end)
  212. end
  213. end
  214. end
  215. end
Add Comment
Please, Sign In to add comment