Problem with the rocket

When launched, the rocket should fly straight and not spin, but it spins, how can I fix this?

Script:

game.ReplicatedStorage["Ракета(верт)"].onClientEvent:Connect(function(RG1, RG2)
	local function createBullet(RG)
		local rocket = game.ReplicatedStorage.Rocket:Clone()
		rocket.Part1.LinearVelocity.VectorVelocity = RG.CFrame.LookVector * 50
		rocket.Parent = workspace
		rocket.Part1.CFrame = RG.CFrame
		game:GetService("Debris"):AddItem(rocket, 5)
		--[[rocket.Touched:Connect(function(hit)
			if hit.Name == "Bullet" or hit.Name == "Body" then return end

			local humanoid = hit.Parent and hit.Parent:FindFirstChild("Humanoid")
			if humanoid then
				game.ReplicatedStorage["Нанесение урона на литл"]:FireServer(humanoid)
			end
			rocket:Destroy()
		end)--]]
	end

	createBullet(RG1)
	createBullet(RG2)
end)

The part to which all parts are welded:

add BodyGyro to it, set the CFrame of the bodygyro to the missile cframe and it should be fixed

Should this be added to the model or to Part1?

Add a BodyGyro to the Part1, Set the BodyGyro.CFrame to Part1.CFrame. then set the BodyGyro.MaxTorque to Vector3.new(9e9,9e9,9e9)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.