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!
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!
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.
there using bodypostion not whatever that is.
not tween either as i dont think it is
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.
bruh i just searched up a random tut i forgot to give cred mb i just remember seeing the vid a while ago