-- I didn't make a loop for this since its opensourced, so you can either wrap it in a loop or don't.
local ebt = game:GetService("Players")
local idk = game:GetService("ReplicatedStorage")
local you = ebt.LocalPlayer
local prediction = 3 -- Increase this to change distance shots, without perdiction its hard to get kills on moving targets
-- I cant talk today sorry its like 2 am and tired my grammar is hanging by a thread
local youusetocallmeonmycellphone = {}
for _, player in ipairs(ebt:GetPlayers()) do
if player ~= you and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
table.insert(youusetocallmeonmycellphone, player)
end
end
if #youusetocallmeonmycellphone > 0 then
local randomTarget = youusetocallmeonmycellphone[math.random(1, #youusetocallmeonmycellphone)]
local char = randomTarget.Character
local hrp = char.HumanoidRootPart
local humanoid = char:FindFirstChild("Humanoid")
local targetPos = hrp.Position
if humanoid and humanoid.MoveDirection.Magnitude > 0 then
targetPos = targetPos + (humanoid.MoveDirection * prediction)
end
local Event = idk.Functions.RemoteFunctions.SniperShoot
Event:InvokeServer(
targetPos,
Vector3.new(0, -1, 0),
0
)
else
return
end() Opensource - credit if you use this script
Has movement prediction support to help kill randos - customizable distance
Randomly selects a player and attempts to shoot them
No comments yet. Be the first to comment!
1-- I didn't make a loop for this since its opensourced, so you can either wrap it in a loop or don't.
2local ebt = game:GetService("Players")
3local idk = game:GetService("ReplicatedStorage")
4local you = ebt.LocalPlayer
5
6local prediction = 3 -- Increase this to change distance shots, without perdiction its hard to get kills on moving targets
7-- I cant talk today sorry its like 2 am and tired my grammar is hanging by a thread
8
9local youusetocallmeonmycellphone = {}
10for _, player in ipairs(ebt:GetPlayers()) do
11 if player ~= you and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
12 table.insert(youusetocallmeonmycellphone, player)
13 end
14end
15
16if #youusetocallmeonmycellphone > 0 then
17 local randomTarget = youusetocallmeonmycellphone[math.random(1, #youusetocallmeonmycellphone)]
18 local char = randomTarget.Character
19 local hrp = char.HumanoidRootPart
20 local humanoid = char:FindFirstChild("Humanoid")
21
22 local targetPos = hrp.Position
23 if humanoid and humanoid.MoveDirection.Magnitude > 0 then
24 targetPos = targetPos + (humanoid.MoveDirection * prediction)
25 end
26 local Event = idk.Functions.RemoteFunctions.SniperShoot
27 Event:InvokeServer(
28 targetPos,
29 Vector3.new(0, -1, 0),
30 0
31 )
32else
33 return
34end