Run it
Copy the script and paste it into your executor.
Workspace = :()
RunService = :()
Players = :()
LP = Players.LocalPlayer
SKINS = {
[]=, []=, []=, []=,
[]=, []=, []=, []=,
[]=, []=, []=, []=,
[]=, []=, []=, []=,
[]=, []=, []=, []=,
[]=, []=, []=, []=,
[]=, []=, []=
}
BALL_RADIUS =
MARKER_DIAMETER =
MARKER_THICK =
WALL_RESTITUTION =
MOVE_EPS =
TELEPORT_JUMP =
BOUNCE_VY =
STICK_STUDS =
RAY_REFRESH =
MIN_SPEED =
DESCEND_VY = -
LERP_SPEED =
STEP_DT = /
MAX_STEPS =
MAX_BOUNCES =
folder = .()
folder.Name = (.(, ))
folder.Parent = Workspace
ballData = {}
rayParams = RaycastParams.()
rayParams.FilterType = .RaycastFilterType.Exclude
rayParams.RespectCanCollide =
rayTick =
()
ignore = {folder}
_, c (Workspace:())
c.Name == (SKINS[c.Name] (c:() c:()))
.(ignore, c)
_, pl (Players:())
pl.Character .(ignore, pl.Character)
rayParams.FilterDescendantsInstances = ignore
()
(o)
o o.Parent
o.Name ==
o.Parent ~= Workspace
SKINS[o.Name] (o:() o:())
()
p = .()
p.Name = ..math.(, )
p.Shape = .PartType.Cylinder
p.Size = .(MARKER_THICK, MARKER_DIAMETER, MARKER_DIAMETER)
p.Color = .(, , )
p.Material = .Material.Neon
p.Anchored =
p.CanCollide =
p.CanQuery =
p.CanTouch =
p.CastShadow =
p.Transparency =
p.Parent = folder
p
(ball)
ballData[ball]
ballData[ball] = {
marker = (),
history = {},
lastLanding = ,
displayed = ,
locked = ,
lockUntil =
}
ballData[ball]
(ball)
d = ballData[ball]
d
d.marker d.marker:()
ballData[ball] =
(atXZ)
origin = .(atXZ.X, , atXZ.Z)
hit = Workspace:(origin, .(, -, ), rayParams)
hit
hit.Position.Y + BALL_RADIUS
char = LP.Character
char
hrp = char:()
hum = char:()
hrp
hip = hum hum.HipHeight
(hrp.Position.Y - *hrp.Size.Y - hip) + BALL_RADIUS
(d, ball)
now = ()
pos = ball.Position
hist = d.history
n = #hist
n >
last = hist[n]
dp = (pos - last.p).Magnitude
dp < MOVE_EPS (now - last.t) <
dp > TELEPORT_JUMP
d.history = {}
d.lastLanding =
d.displayed =
d.locked =
d.lockUntil =
n >=
a, b, c = hist[n-], hist[n-], hist[n]
dt1 = b.t - a.t
dt2 = c.t - b.t
dt1 > dt2 >
vy1 = (b.p.Y - a.p.Y) / dt1
vy2 = (c.p.Y - b.p.Y) / dt2
vy1 < -BOUNCE_VY vy2 > BOUNCE_VY
d.history = {c}
d.lastLanding =
d.displayed =
d.locked =
d.lockUntil =
.(hist, {t = now, p = pos})
#hist > now - hist[].t > .(hist, )
#hist > .(hist, )
(d, ball)
av = ball.AssemblyLinearVelocity
av av.Magnitude >
av
hist = d.history
n = #hist
n <
use = .(n, )
start = n - use +
tM =
i = start, n tM = tM + hist[i].t
tM = tM / use
sx, sy, sz, stt = , , ,
i = start, n
dt = hist[i].t - tM
sx = sx + dt * hist[i].p.X
sy = sy + dt * hist[i].p.Y
sz = sz + dt * hist[i].p.Z
stt = stt + dt * dt
stt <
.(sx/stt, sy/stt, sz/stt)
(vel, normal)
vel - * vel:(normal) * normal
(startPos, startVel)
g = Workspace.Gravity
p = startPos
v = startVel
bounces =
groundY = (startPos)
i = , MAX_STEPS
nextV = v + .(, -g, ) * STEP_DT
nextP = p + v * STEP_DT + .(, - * g * STEP_DT * STEP_DT, )
delta = nextP - p
delta.Magnitude >
hit = Workspace:(p, delta, rayParams)
hit
n = hit.Normal
.(n.Y) <
bounces >= MAX_BOUNCES
land = hit.Position + n *
.(land.X, (land), land.Z)
p = hit.Position + n *
v = (v, n) * WALL_RESTITUTION
bounces = bounces +
n.Y >
.(hit.Position.X, hit.Position.Y + BALL_RADIUS, hit.Position.Z)
land = hit.Position + n *
.(land.X, (land), land.Z)
p = nextP
v = nextV
p = nextP
v = nextV
p.Y <= groundY + v.Y < DESCEND_VY
.(p.X, groundY, p.Z)
.(p.X, (p), p.Z)
(ball, dt)
d = (ball)
(d, ball)
vel = (d, ball)
vel vel.Magnitude < MIN_SPEED
d.marker.Transparency =
landing = (ball.Position, vel)
landing
d.marker.Transparency =
now = ()
d.locked now < d.lockUntil
(landing - d.locked).Magnitude < STICK_STUDS *
landing = d.locked
d.locked = landing
d.lockUntil = now +
d.lastLanding (landing - d.lastLanding).Magnitude < STICK_STUDS
landing = d.lastLanding
d.locked = landing
d.lockUntil = now +
d.locked = landing
d.lockUntil = now +
d.lastLanding = landing
d.displayed
d.displayed = landing
d.displayed = d.displayed:(landing, .(LERP_SPEED * dt, , ))
d.marker.CFrame = .(d.displayed) * .(, , .())
d.marker.Transparency =
RunService.Heartbeat:((dt)
rayTick = rayTick +
rayTick >= RAY_REFRESH (); rayTick =
alive = {}
_, c (Workspace:())
(c)
alive[c] =
(c, dt)
ball (ballData)
alive[ball] ball.Parent
(ball)
)
Workspace.ChildAdded:((o)
.(()
(o)
()
)
)Stay safe
Never paste your .ROBLOSECURITY cookie anywhere, and use an alt account with scripts.

Universal