Advertisement
ZV0K

Primes Anti Source

Aug 17th, 2023
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1. --Aim Viewer
  2. --------------------------------------------------
  3. _G.enable = true
  4. _G.color = Color3.fromRGB(255,0,0)
  5. _G.toggle_keybind = "l" -- enable tracer and disable
  6. _G.swith_nigga = 't' -- press t and u will see a noti on the user ur tracer is on
  7. _G.method = "MousePos" --had a stroke sotkraakdakdakdkadkadkakdakdakdkdakdakdkadkadka
  8. -- ANTI KEYBIND IS Z
  9.  
  10. if game.PlaceId == 2788229376 then
  11. _G.method = "MousePos"
  12. end
  13.  
  14.  
  15.  
  16.  
  17. ---------------------------------------------------------------
  18. local rs = game:GetService("RunService")
  19. local localPlayer = game.Players.LocalPlayer
  20. local mouse = localPlayer:GetMouse()
  21. local target;
  22.  
  23.  
  24.  
  25. function getgun()
  26. for i,v in pairs(target.Character:GetChildren()) do
  27. if v and (v:FindFirstChild('Default') or v:FindFirstChild('Handle') )then
  28. return v
  29. end
  30. end
  31. end
  32.  
  33.  
  34.  
  35. game.StarterGui:SetCore("SendNotification", {
  36. Title = '';
  37. Text = message;
  38. Duration = "1";
  39. })
  40.  
  41.  
  42.  
  43. function get_closet()
  44. local a = math.huge
  45. local b;
  46.  
  47.  
  48.  
  49. for i, v in pairs(game.Players:GetPlayers()) do
  50. if v ~= localPlayer and v.Character and v.Character:FindFirstChild("Head") and v.Character:FindFirstChild("HumanoidRootPart") then
  51. local c = game.Workspace.CurrentCamera:WorldToViewportPoint(v.Character.PrimaryPart.Position)
  52. local d = (Vector2.new(mouse.X, mouse.Y) - Vector2.new(c.X, c.Y)).Magnitude
  53.  
  54. if a > d then
  55. b = v
  56. a = d
  57. end
  58. end
  59. end
  60.  
  61. return b
  62. end
  63.  
  64. ---
  65. mouse.KeyDown:Connect(function(z)
  66. if z == _G.toggle_keybind then
  67. if _G.enable == false then
  68. _G.enable = true
  69. sendnotifi("enabled")
  70. elseif _G.enable == true then
  71. _G.enable = false
  72. sendnotifi("disabled")
  73. end
  74. end
  75. end)
  76.  
  77. mouse.KeyDown:Connect(function(z)
  78. if z == _G.swith_nigga then
  79. target = get_closet()
  80. sendnotifi("targeting: "..tostring(target.Name))
  81. end
  82. end)
  83. ---
  84.  
  85. -- minified it
  86. local a=Instance.new("Beam")a.Segments=1;a.Width0=0.2;a.Width1=0.2;a.Color=ColorSequence.new(_G.color)a.FaceCamera=true;local b=Instance.new("Attachment")local c=Instance.new("Attachment")a.Attachment0=b;a.Attachment1=c;a.Parent=workspace.Terrain;b.Parent=workspace.Terrain;c.Parent=workspace.Terrain
  87.  
  88. task.spawn(function()
  89. rs.RenderStepped:Connect(function()
  90.  
  91. local character = localPlayer.Character
  92. if not character then
  93. a.Enabled = false
  94. return
  95. end
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. if _G.enable and getgun() and target.Character:FindFirstChild("BodyEffects") and target.Character:FindFirstChild("Head") then
  103. a.Enabled = true
  104. b.Position = target.Character:FindFirstChild("Head").Position
  105. c.Position = target.Character.BodyEffects[_G.method].Value ---edit this if some random ass game got some weird ass other name :palingface
  106. else
  107. a.Enabled = false
  108. end
  109.  
  110. end)
  111. end)
  112.  
  113. --Bind
  114. --------------------------------------------------
  115. getgenv().VelocityChanger = false
  116. getgenv().Velocity = Vector3.new(200,700,200)
  117. getgenv().KeyBind = "z"
  118. --Velocity
  119. --------------------------------------------------
  120. local Players = game:GetService("Players")
  121. local RunService = game:GetService("RunService")
  122. local UIS = game:GetService("UserInputService")
  123.  
  124. local LocalPlayer = Players.LocalPlayer
  125. local Character = LocalPlayer.Character
  126. local RootPart = Character:FindFirstChild("HumanoidRootPart")
  127.  
  128.  
  129. local Heartbeat, RStepped, Stepped = RunService.Heartbeat, RunService.RenderStepped, RunService.Stepped
  130.  
  131. LocalPlayer.CharacterAdded:Connect(function(NewCharacter)
  132. Character = NewCharacter
  133. end)
  134.  
  135. local RVelocity, YVelocity = nil, 0.1
  136. --Notify Function
  137. --------------------------------------------------
  138. function sendnotifi(message)
  139.  
  140.  
  141. game.StarterGui:SetCore("SendNotification", {
  142. Title = 'CAUGHT GGS';
  143. Text = message;
  144. Duration = "1";
  145. })
  146. end
  147. --Notify
  148. -------------------------------------------------
  149. UIS.InputBegan:Connect(function(input)
  150. if input.KeyCode == Enum.KeyCode.Z then
  151. if VelocityChanger == false then
  152. sendnotifi("ANTI OFF")
  153. elseif VelocityChanger == true then
  154. sendnotifi("ANTI ON")
  155. end
  156. end
  157. end)
  158.  
  159. --Velocity Function
  160. -------------------------------------------------
  161.  
  162. UIS.InputBegan:Connect(function(input)
  163. if not (UIS:GetFocusedTextBox()) then
  164. if input.KeyCode == Enum.KeyCode.Z then
  165. if VelocityChanger then
  166. VelocityChanger = false
  167. else
  168. VelocityChanger = true
  169. task.spawn(function()
  170. while VelocityChanger do
  171. print("Running")
  172. if (not RootPart) or (not RootPart.Parent) or (not RootPart.Parent.Parent) then
  173. repeat task.wait() RootPart = Character:FindFirstChild("HumanoidRootPart") until RootPart ~= nil
  174. else
  175. RVelocity = RootPart.Velocity
  176.  
  177. RootPart.Velocity = type(Velocity) == "vector" and Velocity or Velocity(RVelocity)
  178.  
  179. RStepped:wait()
  180.  
  181. RootPart.Velocity = RVelocity
  182. end
  183. Heartbeat:wait()
  184. end
  185. end)
  186. end
  187. end
  188. end
  189. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement