Just like the titles says, I’m looking for a way to prevent my rocket from spinning when I use the rocket propulsion, right now when I fire, it will come at me spinning up and down instead of just maintaining a normal trajectory like a normal missile.
~code~
local rocket = script.Parent
local rocketPropulsion = script.Parent.RocketPropulsion
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
local character = plr.Character
rocketPropulsion.Target = character.Head
coroutine.wrap(function(printoof)
printoof = 10
while printoof > 0 do
print(printoof)
printoof = printoof - 1
wait(1)
end
end)()
wait(10)
rocket.Anchored = false
rocketPropulsion:Fire()
rocketPropulsion.ReachedTarget:Connect(function()
print("reahched target")
local humanoid = character:FindFirstChild("Humanoid")
humanoid:TakeDamage(25)
rocket:Destroy()
end)
end)
Video:
The rocket fires from a position in workspace after 10 seconds ( when it has been clicked).
Thanks!