Run it
Copy the script and paste it into your executor.
GRAVITY =
SPEED =
MAX_RANGE =
TRAIL_POINTS =
dt =
maxT =
params = RaycastParams.()
params.FilterType = .RaycastFilterType.Exclude
marker = .()
marker.Size = .(, , )
marker.Shape = .PartType.Ball
marker.Anchored =
marker.CanCollide =
marker.CanQuery =
marker.CanTouch =
marker.Material = .Material.Neon
marker.Color = .(, , )
marker.Position = .(, , )
marker.Parent =
hl = .()
hl.FillColor = .(, , )
hl.OutlineColor = .(, , )
hl.FillTransparency =
hl.Parent = marker
trailFolder = .()
trailFolder.Name =
trailFolder.Parent =
trailParts = {}
i = , TRAIL_POINTS
p = .()
p.Size = .(, , )
p.Shape = .PartType.Ball
p.Anchored =
p.CanCollide =
p.CanQuery =
p.CanTouch =
p.Material = .Material.Neon
p.Transparency = i / TRAIL_POINTS *
p.Color = .( - (i / TRAIL_POINTS) * , , )
p.Position = .(, , )
p.Parent = trailFolder
trailParts[i] = p
player = :().LocalPlayer
env = ()
()
_, p trailParts
p.Position = .(, , )
connection
connection = :().Heartbeat:(()
env.stopplease
connection:()
marker:()
trailFolder:()
env.stopplease =
character = player.Character
character
()
control = character:()
control
tank = control.CntrRig.Value
tank.Name ==
params.FilterDescendantsInstances = {tank}
barrel = tank.Movable.BarrelEnd
origin = barrel.Position
dir = barrel.CFrame.UpVector
v0 = dir * SPEED
lastPos = origin
impact =
impactT =
i = , maxT / dt
t = i * dt
pos = .(
origin.X + v0.X * t,
origin.Y + v0.Y * t - * GRAVITY * t * t,
origin.Z + v0.Z * t
)
dist = (pos - origin).Magnitude
dist > MAX_RANGE
ray = :(lastPos, pos - lastPos, params)
ray
impact = ray.Position
impactT = t
lastPos = pos
impact impactT
i = , TRAIL_POINTS
t = (i / TRAIL_POINTS) * impactT
pos = .(
origin.X + v0.X * t,
origin.Y + v0.Y * t - * GRAVITY * t * t,
origin.Z + v0.Z * t
)
trailParts[i].Position = pos
marker.Position = impact
()
marker.Position = .(, , )
()
marker.Position = .(, , )
()
marker.Position = .(, , )
)you can see the INDIRECT!!!! (NOT DIRECT) fire of tank named Sturmtiger (p.s: 99% of the script made by claude cause im not the best at math)