Trying to make a fighter jet attack thingy where the jet dives into the circle and then quickly turns up.
(Reference picture)
No idea how to make it smoothly dive up, that’s my only issue.
Current code:
task.wait(3)
-----------
local Marker = Instance.new("Part")
Marker.Name = "MousePart"
Marker.Parent = workspace.Parts
Marker.Shape = Enum.PartType.Ball
Marker.Size = Vector3.new(1, 1, 1)
Marker.Color = Color3.fromRGB(255, 216, 97)
Marker.CastShadow = false
Marker.Material = Enum.Material.Neon
Marker.CanCollide = false
Marker.Transparency = 0.8
Marker.Anchored = true
Marker.CanQuery = false
Marker.Position = script.Parent.Position
-----------
local CanTouch = false
local Info = {1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0}
local Properties = {Transparency = 1, Size = Vector3.new(100, 100, 100)}
game.ReplicatedStorage.Events.Remotes.Optimization.ClientTween:FireAllClients(Marker, Info, Properties)
-----------
local CurrentlyFlying = true
local Jet = game.ReplicatedStorage.FighterJet:Clone()
Jet.Parent = workspace.Parts
Jet:SetPrimaryPartCFrame(Marker.CFrame + Vector3.new(0, 700, 0) - Marker.CFrame.LookVector * 1000)
Jet.Root.CFrame = CFrame.new(Jet.Root.Position, Marker.Position)
task.spawn(function()
while CurrentlyFlying == true do
task.wait()
Jet.Root.LinearVelocity.VectorVelocity = Jet.Root.CFrame.LookVector * 500
end
end)
task.wait(2)
-----------