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: