How do I recreate this?

How do I go about recreating this bodyposition thing in this video

it does some type of going up and going down towards the target part, and i don’t know what their doing. i don’t know if theres some type of math formula or something else. Thanks!

2 Likes
local startPos = position
local endPos = position

local direction = endPos - startPos
local duration = 2
local force = direction / duration + Vector3.new(0, game.Workspace.Gravity * duration / 2, 0)

for i = 1,amount of times u want to fly things do
	task.wait(time between the projectiles)
	local clone = thing u want to flick
	clone.Position = startPos
	clone.Parent = workspace
	clone:ApplyImpulse(force * clone.AssemblyMass)
end

Looks like they are using tween service, but im on my phone so I cant provide any code examples right now.

1 Like

there using bodypostion not whatever that is.

1 Like

not tween either as i dont think it is

1 Like

ok
Projectile Physics - Roblox Scripting Tutorial

Suphi Kaner

bro really took the code from the yt vieo and claimed it has he coded it him self ok. give credits mate.

1 Like

bruh i just searched up a random tut i forgot to give cred mb i just remember seeing the vid a while ago

1 Like