I am attempting to make a game based on the Steam game “Devil Daggers” and I’ve run into an issue. The flying skulls tween directly toward the player and overlap each-other. Since I am using tweens this is except, but how would i make them more like in the video.
the current code
while wait(0) do
script.Parent.Head.CFrame = CFrame.lookAt(script.Parent.Head.Position, root.Position)
game:GetService("TweenService"):Create(script.Parent.Head, TweenInfo.new(3, Enum.EasingStyle.Elastic), {Position = root.Position + Vector3.new(math.random(-2,2),0,math.random(-2,2))}):Play()
local distance = (root.Position - script.Parent.Head.Position).Magnitude
if distance <= 10 then
if canPlay == true then
canPlay = false
script.Parent.Head.Scream:Play()
end
end
end