Advertisement
ZV0K

Mario Lock ☀️

Aug 10th, 2023 (edited)
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. getgenv().Silent = {
  2. Key = "Q",
  3. Prediction = 0.12984,
  4. Airshot = true,
  5. Part = "LowerTorso",
  6. Radius = 120
  7. }
  8. local Image = {
  9. Enabled = true,
  10. Url = "http://assets.stickpng.com/images/584df3ad6a5ae41a83ddee08.png"
  11. }
  12. local Dot = {
  13. Enabled = false,
  14. Color = Color3.fromRGB(255,255,255),
  15. Transparency = 1,
  16. Thickness = 2
  17. }
  18. local CC = game:GetService("Workspace").CurrentCamera
  19. local LocalMouse = game.Players.LocalPlayer:GetMouse()
  20. local Locking = false
  21. local cc = game:GetService("Workspace").CurrentCamera
  22. local gs = game:GetService("GuiService")
  23. local ggi = gs.GetGuiInset
  24. local lp = game:GetService("Players").LocalPlayer
  25. local mouse = lp:GetMouse()
  26.  
  27. local Tracer = Drawing.new("Image")
  28. Tracer.Data = game:HttpGet(Image.Url)
  29. Tracer.Size = Vector2.new(45, 45)
  30. local Circle = Drawing.new("Circle")
  31. Circle.Color = Dot.Color
  32. Circle.Thickness = Dot.Thickness
  33. Circle.Radius = 5.5
  34. Circle.Visible = Dot.Enabled
  35. Circle.Filled = true
  36. Circle.Transparency = Dot.Transparency
  37. function x(tx)
  38. game.StarterGui:SetCore(
  39. "SendNotification",
  40. {
  41. Title = "Silent",
  42. Text = tx,
  43. Duration = 3.6
  44. }
  45. )
  46. end
  47.  
  48. x("Loaded")
  49.  
  50. if getgenv().flashyes == true then
  51. x("Already Loaded")
  52. return
  53. end
  54. getgenv().flashyes = true
  55.  
  56.  
  57. game:GetService("UserInputService").InputBegan:Connect(
  58. function(keygo, ok)
  59. if (not ok) then
  60. if (keygo.KeyCode.Name == getgenv().Silent.Key) then
  61. Locking = not Locking
  62. if Locking then
  63. Plr = getClosestPlayerToCursor()
  64. pcall(function()
  65. x(Plr.Character.Humanoid.DisplayName)
  66. end)
  67. elseif not Locking then
  68. if Plr then
  69. Plr = nil
  70. x("Unlocked")
  71. end
  72. end
  73. end
  74. end
  75. end
  76. )
  77. function getClosestPlayerToCursor()
  78. local closestPlayer
  79. local shortestDistance = getgenv().Silent.Radius
  80.  
  81. for i, v in pairs(game.Players:GetPlayers()) do
  82. if
  83. v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("Humanoid") and
  84. v.Character.Humanoid.Health ~= 0 and
  85. v.Character:FindFirstChild("LowerTorso")
  86. then
  87. local pos = CC:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  88. local magnitude = (Vector2.new(pos.X, pos.Y) - Vector2.new(LocalMouse.X, LocalMouse.Y)).magnitude
  89. if magnitude < shortestDistance then
  90. closestPlayer = v
  91. shortestDistance = magnitude
  92. end
  93. end
  94. end
  95. return closestPlayer
  96. end
  97.  
  98. local rawmetatable = getrawmetatable(game)
  99. local old = rawmetatable.__namecall
  100. setreadonly(rawmetatable, false)
  101. rawmetatable.__namecall =
  102. newcclosure(
  103. function(...)
  104. local args = {...}
  105. if Plr ~= nil and getnamecallmethod() == "FireServer" and args[2] == "UpdateMousePos" then
  106. args[3] =
  107. Plr.Character[getgenv().Silent.Part].Position +
  108. (Plr.Character[getgenv().Silent.Part].Velocity * Silent.Prediction)
  109. return old(unpack(args))
  110. end
  111. return old(...)
  112. end
  113. )
  114.  
  115. game:GetService("RunService").RenderStepped:connect(
  116. function()
  117. if getgenv().Silent.Airshot == true then
  118. if
  119. Plr ~= nil and Plr.Character.Humanoid.Jump == true and
  120. Plr.Character.Humanoid.FloorMaterial == Enum.Material.Air
  121. then
  122. getgenv().Silent.Part = "RightFoot"
  123. else
  124. Plr.Character:WaitForChild("Humanoid").StateChanged:Connect(
  125. function(old, new)
  126. if new == Enum.HumanoidStateType.Freefall then
  127. getgenv().Silent.Part = "RightFoot"
  128. else
  129. getgenv().Silent.Part = "LowerTorso"
  130. end
  131. end
  132. )
  133. end
  134. end
  135.  
  136. if Image.Enabled == true and Plr ~= nil then
  137. local Vector, OnScreen = cc:worldToViewportPoint(Plr.Character[getgenv().Silent.Part].Position)
  138. Tracer.Visible = true
  139. Tracer.Position = Vector2.new(Vector.X, Vector.Y)
  140. else
  141. Tracer.Visible = false
  142. end
  143.  
  144. if Dot.Enabled == true and Plr ~= nil then
  145. local Vector, OnScreen = cc:worldToViewportPoint(Plr.Character[getgenv().Silent.Part].Position)
  146. Circle.Visible = true
  147. Circle.Position = Vector2.new(Vector.X, Vector.Y)
  148. else
  149. Circle.Visible = false
  150. end
  151. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement