If you don’t know what I mean the problem is I want the part’s orientation point to the set target position, The part will move by a linear tween animation and hit a random position in an area of 640x640x320 studs3
local q = asteroid:Clone() -- part
local goal = {Position = Vector3.new(math.random(-320,320),math.random(20,320),math.random(-320,320))}
q.Position = wp.Plate.Position + fp
q.Touched:Connect(function(pp)
if (pp:IsA("BasePart") and pp:IsDescendantOf(wp.Builds)) then
ontouch(q) --explode function
end
end)
Wait(2.2) -- Shoot cooldown
t:Play()
q.Parent = wp -- parented last
Everything worked fine, no errors but I just want to set its CFrame pointed to the random target position given by the target area. Any help on how to do that?