Advertisement
isakk12

Mortem Metallum, Crossbow aimbot

Jul 17th, 2021 (edited)
10,136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.47 KB | None | 0 0
  1. --This script works for crossbow
  2. --Click on people that stand still without the crossbow equipped.
  3. --The esp is on people who are not moving
  4.  
  5.  
  6. local mouse = game:GetService("Players").LocalPlayer:GetMouse()
  7. local lplr = game:GetService("Players").LocalPlayer
  8. local plr
  9.  
  10. mouse.Button1Down:Connect(function()
  11.     if game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent) then
  12.         plr = game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent)
  13.         lplr.Backpack.Crossbow.Parent = lplr.Character
  14.         wait(.01)
  15.         game:GetService("Players").LocalPlayer.Character.Crossbow.mouse:FireServer(plr.Character.Head.Position)
  16.     end
  17. end)
  18.  
  19. game:GetService("RunService").RenderStepped:Connect(function()
  20.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  21.         if v ~= lplr and v.Character.HumanoidRootPart.Velocity.Magnitude < 1 and v.Character.Humanoid.Health ~= 0 then
  22.             if not v.Character:FindFirstChild("ESP") then
  23.                 local esp = Instance.new("BoxHandleAdornment",v.Character)
  24.                 esp.Name = "ESP"
  25.                 esp.Adornee = v.Character.Head
  26.                 esp.AlwaysOnTop = true
  27.                 esp.ZIndex = 10
  28.                 esp.Color3 = Color3.fromRGB(255, 0, 12)
  29.                 esp.Size = Vector3.new(2,1,1)
  30.             end
  31.            
  32.         elseif v.Character.HumanoidRootPart.Velocity.Magnitude > 1 and v.Character:FindFirstChild("ESP") or v.Character:FindFirstChild("ESP") and v.Character.Humanoid.Health == 0 then
  33.             v.Character:FindFirstChild("ESP"):Destroy()
  34.         end
  35.     end
  36.    
  37.     lplr.Character.JumpCooldown.Disabled = true
  38. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement