Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This script works for crossbow
- --Click on people that stand still without the crossbow equipped.
- --The esp is on people who are not moving
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()
- local lplr = game:GetService("Players").LocalPlayer
- local plr
- mouse.Button1Down:Connect(function()
- if game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent) then
- plr = game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent)
- lplr.Backpack.Crossbow.Parent = lplr.Character
- wait(.01)
- game:GetService("Players").LocalPlayer.Character.Crossbow.mouse:FireServer(plr.Character.Head.Position)
- end
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v ~= lplr and v.Character.HumanoidRootPart.Velocity.Magnitude < 1 and v.Character.Humanoid.Health ~= 0 then
- if not v.Character:FindFirstChild("ESP") then
- local esp = Instance.new("BoxHandleAdornment",v.Character)
- esp.Name = "ESP"
- esp.Adornee = v.Character.Head
- esp.AlwaysOnTop = true
- esp.ZIndex = 10
- esp.Color3 = Color3.fromRGB(255, 0, 12)
- esp.Size = Vector3.new(2,1,1)
- end
- elseif v.Character.HumanoidRootPart.Velocity.Magnitude > 1 and v.Character:FindFirstChild("ESP") or v.Character:FindFirstChild("ESP") and v.Character.Humanoid.Health == 0 then
- v.Character:FindFirstChild("ESP"):Destroy()
- end
- end
- lplr.Character.JumpCooldown.Disabled = true
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement