How to use tweenservice to give this object a more curved movement

ight so I have fireflies in my game, and I am moving them with tweenservice. I want to know how to make their movement less straight, and more curved. As you probably know, real fireflies would not fly in a straight line for that long. Here is the script:

local Service = game:GetService("TweenService")
local Info = TweenInfo.new(3)
local Loop = true

repeat
 local Anim = {Position = Vector3.new(math.random(117.523, 125), math.random(17.743, 25), math.random(454.557, 460))}
 
 local Tween = Service:Create(script.Parent, Info, Anim)
 Tween:Play()
 
 wait(2)
 
until Loop == false
2 Likes

You would need to to make specific positions for that. It’s obvious that with only 1 position, your butterfly is going to go straight. In that case, I’d recommend to change the CFrame rather than the position. Though, you might wanna try to change the settings of the TweenService, atm. you’re using the defauly settings. You can learn more on the DevHub.

2 Likes