Positioning help

how can i tween parts in multiple directions within a certain range like in the picture below?

Wdym? Different parts all going in one of those direction or a part that goes in one of those random direction?

Multiple Parts? Like an explosion of Parts in random directions?
Please explain more since you mentioned within a certain range, but your lines are different lengths.

a part that goes in one of those random directions inside a certain range

you can generate a random direction, multiply it by a random range, and call ToWorldSpace to make it relative.

local TweenService = game:GetService("TweenService")
local origin = CFrame new()
local template = Instance.new("Part", workspace)
local rng = Random.new()
local n = 6
local range = 16

for _=1,n do
   TweenService:Create(template:Clone(), TweenInfo.new(), { CFrame = origin:ToWorldSpace(CFrame.new(rng:NextUnitVector() * rng:NextNumber(0, range))) }):Play()
end
1 Like