i am having some issues with my rockets but i have no idea whats causing this to happen, could you guys help me please? https://gyazo.com/8a772f19b88250e2caca0e848a102f25.gif https://gyazo.com/c3c43c70bef1082f006a66885cb16158.gif https://gyazo.com/dd9f597085015c09ae56e0dfde293800.gif https://gyazo.com/d43c5aedc8a7ce8cb22d6d99f9ac059d

repeat
				bodyvel.Velocity = item.HomingPart.CFrame.lookVector * amount.Value
				pcall(function()
					for i,h in pairs(game.Workspace:GetChildren()) do
						local plane
						if h.Name ~= player.Name and not string.match(h:GetFullName(), player.Name) and game.ReplicatedStorage.TemporarlyAircraftStorage:FindFirstChild(h.Name) then
							if h:FindFirstChild("Humanoid") and h:FindFirstChild(h.Name) and not string.match(h:GetFullName(), player.Name) then
								plane = h[h.Name]
							elseif not string.match(h:GetFullName(), player.Name) then
								plane = h
							end
						end
						if plane ~= nil then
							for i,v in pairs(plane:GetChildren()) do
								if v:IsA("Model") and v.PrimaryPart ~= nil and v.PrimaryPart.Transparency < 0.9 and bodyvel ~= nil and bodyvel.Parent ~= nil and (item.HomingPart.Position - v.PrimaryPart.Position).magnitude < 100 then
									if v.PrimaryPart ~= nil and v.Parent:FindFirstChild("PilotSeat") and not v.Parent.PilotSeat.PrimaryPart:FindFirstChild("Spot") then
										bodygyro.CFrame = CFrame.new(item.HomingPart.Position, v.PrimaryPart.Position)
										repeat
											local localspeed = (v.PrimaryPart.Velocity.Magnitude / 350) * 2.5
											if localspeed < 200 then
												localspeed = 200
											end
											bodyvel.Velocity = item.HomingPart.CFrame.lookVector * localspeed
											print("aiming")
											wait(0.01)
											bodygyro.CFrame = CFrame.new(item.HomingPart.Position, v.PrimaryPart.Position)
										until v.PrimaryPart == nil or item == nil or not item:FindFirstChild("HomingPart") or item.HomingPart == nil or (item.HomingPart.Position - v.PrimaryPart.Position).magnitude > 100 or (tick() - timething) > 7.5
										print("ended")
									end
								end
							end
						end
					end
				end)
				wait(0.25)
			until not item:FindFirstChild("MainPart2") or not item:FindFirstChild("HomingPart") or (tick() - timething) > 7
			timething = nil
			amount:Destroy()

3 comments

0

what are the BodyGyro's P and MaxTorque properties set at

0

bodygyro.MaxTorque = Vector3.new(9e9,9e9,9e9) bodyvel.MaxForce = Vector3.new(9e9,9e9,9e9) bodygyro.D = 100

0

bump