--Rocket.Touched:connect(OnTouched)


while script.Parent == Rocket do
	ExplodeClone = Explode:clone()
	ExplodeClone.Name = "Effect"
	ExplodeClone.BrickColor = BrickColor.new("White")
	ExplodeClone.Position = Rocket.Position
	ExplodeClone.Mesh.Scale = Vector3.new(1,1,1)*5
	ExplodeClone.CFrame = ExplodeClone.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-10000,10000)/100,math.random(-10000,10000)/100,math.random(-10000,10000)/100)
	ExplodeClone.Parent = game.Players.LocalPlayer.Character.Torso
	NewScript = Rocket.Trail:clone()
	NewScript.Disabled = false
	NewScript.Parent = ExplodeClone
	if Target.Value ~= nil and Target.Value.Parent ~= nil then
		if Target.Value then idealVelocity = --[[SPEED *]] (Target.Value.Position - Rocket.Position).unit end
		Rocket.Velocity = --[[SPEED *]] (Rocket.Velocity + 0.125 * (idealVelocity - Rocket.Velocity)).unit
		Rocket.CFrame = CFrame.new(Rocket.Position, Rocket.Position + Rocket.Velocity)
	end
	local hit,pos = raycast(Rocket.Position,((Rocket.CFrame * CFrame.new(0,0,-5)).p-Rocket.Position).unit,5)
	if hit then
		OnTouched(hit,pos)
	end
	Rocket.CFrame = Rocket.CFrame * CFrame.new(0,0,-5) * CFrame.Angles(0, 0, math.rad(18))
	game:GetService("RunService").Stepped:wait()
end
